libgcrypt15-vl.spec 5.0 KB

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