libgcrypt-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A cryptographic library based on the code from GnuPG.
  3. Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
  4. Name: libgcrypt
  5. Version: 1.4.3
  6. Release: 3%{?_dist_release}
  7. URL: http://www.gnu.org/directory/security/libgcrypt.html
  8. Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
  9. Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
  10. License: GPLv2+
  11. Group: System Environment/Libraries
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: libgpg-error-devel >= 0.5
  14. Requires: libgpg-error
  15. Requires(post,preun): /sbin/install-info
  16. %description
  17. This is a general purpose cryptographic library based on the code from
  18. GnuPG. It provides functions for all cryptograhic building blocks:
  19. symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
  20. algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
  21. all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
  22. integer functions, random numbers and a lot of supporting functions.
  23. %package devel
  24. Summary: Development files for libgcrypt
  25. Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: libgpg-error-devel
  29. %description devel
  30. Static libraries and header files from libgcrypt.
  31. %package -n compat32-%{name}
  32. Summary: A cryptographic library based on the code from GnuPG.
  33. Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
  34. Group: System Environment/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. %description -n compat32-%{name}
  37. This is a general purpose cryptographic library based on the code from
  38. GnuPG. It provides functions for all cryptograhic building blocks:
  39. symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
  40. algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
  41. all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
  42. integer functions, random numbers and a lot of supporting functions.
  43. %package -n compat32-%{name}-devel
  44. Summary: Development files for libgcrypt
  45. Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
  46. Group: Development/Libraries
  47. Requires: compat32-%{name} = %{version}-%{release}
  48. Requires: %{name}-devel = %{version}-%{release}
  49. Requires: compat32-libgpg-error-devel
  50. %description -n compat32-%{name}-devel
  51. Static libraries and header files from libgcrypt.
  52. %prep
  53. %setup -q
  54. %build
  55. %configure --disable-static
  56. make
  57. %install
  58. [ "%{buildroot}" != / ] && rm -rf %{buildroot}
  59. %makeinstall
  60. rm -f %{buildroot}%{_infodir}/dir
  61. ## remove unuse files
  62. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  63. %clean
  64. [ "%{buildroot}" != / ] && rm -rf %{buildroot}
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %post devel
  68. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz ||:
  69. %preun devel
  70. if [ $1 = 0 ]; then
  71. /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir ||:
  72. fi
  73. %post -n compat32-%{name} -p /sbin/ldconfig
  74. %postun -n compat32-%{name} -p /sbin/ldconfig
  75. %files
  76. %defattr(-,root,root)
  77. %{_bindir}/dumpsexp
  78. %{_bindir}/hmac256
  79. %{_libdir}/*.so.*
  80. %files devel
  81. %defattr(-,root,root)
  82. %doc README* NEWS
  83. %{_bindir}/libgcrypt-config
  84. %{_includedir}/*
  85. %{_libdir}/*.so
  86. %{_datadir}/aclocal/libgcrypt.m4
  87. %{_infodir}/*
  88. # compat32
  89. %if %{build_compat32}
  90. %files -n compat32-%{name}
  91. %defattr(-,root,root)
  92. %{_libdir}/*.so.*
  93. %files -n compat32-%{name}-devel
  94. %defattr(-,root,root)
  95. %{_libdir}/*.so
  96. %endif
  97. %changelog
  98. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3
  99. - added compat32 package for x86_64 arch support
  100. - added --disable-static %%configure option
  101. * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2
  102. - removed *.la
  103. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
  104. - new upstream release
  105. * Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5
  106. - new upstream release
  107. - used _dist_release macro
  108. * Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
  109. - new upstream release
  110. * Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
  111. - new upstream release
  112. - changed Group to System Environment/Libraries
  113. * Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1
  114. - new upstream release
  115. * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1
  116. - new upstream release
  117. - fix dependencies
  118. - add BuildRequires: libgpg-error-devel >= 0.5
  119. - add Requires: libgpg-error
  120. - add Requires: libgpg-error-devel for devel package
  121. * Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  122. - new upstream release
  123. * Sun Mar 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1
  124. - initial build