libgcrypt-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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.8.5
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: GPLv2+
  9. URL: https://www.gnupg.org/related_software/libgcrypt/index.html
  10. Source0: https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
  11. Source1: https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
  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. Packager: iwaim
  19. %description
  20. This is a general purpose cryptographic library based on the code from
  21. GnuPG. It provides functions for all cryptograhic building blocks:
  22. symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
  23. algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
  24. all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
  25. integer functions, random numbers and a lot of supporting functions.
  26. %package devel
  27. Summary: Development files for libgcrypt
  28. Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: libgpg-error-devel
  32. %description devel
  33. Static libraries and header files from libgcrypt.
  34. %package -n compat32-%{name}
  35. Summary: A cryptographic library based on the code from GnuPG.
  36. Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
  37. Group: System Environment/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. %description -n compat32-%{name}
  40. This is a general purpose cryptographic library based on the code from
  41. GnuPG. It provides functions for all cryptograhic building blocks:
  42. symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
  43. algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
  44. all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
  45. integer functions, random numbers and a lot of supporting functions.
  46. %package -n compat32-%{name}-devel
  47. Summary: Development files for libgcrypt
  48. Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
  49. Group: Development/Libraries
  50. Requires: compat32-%{name} = %{version}-%{release}
  51. Requires: %{name}-devel = %{version}-%{release}
  52. Requires: compat32-libgpg-error-devel
  53. %description -n compat32-%{name}-devel
  54. Static libraries and header files from libgcrypt.
  55. %prep
  56. %setup -q
  57. %build
  58. %configure --disable-static
  59. make
  60. %install
  61. [ "%{buildroot}" != / ] && rm -rf %{buildroot}
  62. %makeinstall
  63. rm -f %{buildroot}%{_infodir}/dir
  64. ## remove unuse files
  65. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  66. %clean
  67. [ "%{buildroot}" != / ] && rm -rf %{buildroot}
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %post devel
  71. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz ||:
  72. %preun devel
  73. if [ $1 = 0 ]; then
  74. /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir ||:
  75. fi
  76. %post -n compat32-%{name} -p /sbin/ldconfig
  77. %postun -n compat32-%{name} -p /sbin/ldconfig
  78. %files
  79. %defattr(-,root,root)
  80. %{_bindir}/dumpsexp
  81. %{_bindir}/hmac256
  82. %{_bindir}/mpicalc
  83. %{_libdir}/*.so.*
  84. %{_mandir}/man1/hmac256.1.gz
  85. %files devel
  86. %defattr(-,root,root)
  87. %doc README* NEWS
  88. %{_bindir}/libgcrypt-config
  89. %{_includedir}/*
  90. %{_libdir}/*.so
  91. %{_libdir}/pkgconfig/*.pc
  92. %{_datadir}/aclocal/libgcrypt.m4
  93. %{_infodir}/*
  94. # compat32
  95. %if %{build_compat32}
  96. %files -n compat32-%{name}
  97. %defattr(-,root,root)
  98. %{_libdir}/*.so.*
  99. %files -n compat32-%{name}-devel
  100. %defattr(-,root,root)
  101. %{_libdir}/*.so
  102. %{_libdir}/pkgconfig/*.pc
  103. %endif
  104. %changelog
  105. * Sun Mar 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.8.5-1
  106. - updated to 1.8.5.
  107. * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.8.4-1
  108. - updated to 1.8.4.
  109. * Thu Mar 01 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.8.2-1
  110. - updated to 1.8.2.
  111. * Mon Mar 20 2017 IWAI, Masaharu <iwaim.sub@gmail.com> - 1.7.6-1
  112. - update to 1.7.6
  113. - update URL tag
  114. - add Packager tag
  115. * Fri Apr 22 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.6.5-1
  116. - new upstream release.
  117. * Sat Nov 28 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.4-1
  118. - new upstream release
  119. * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.6.0-1
  120. - new upstream release
  121. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.3-2
  122. - rebuild with VineSeed environment
  123. * Sat Aug 10 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1
  124. - new upstream release
  125. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
  126. - new upstream release
  127. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3
  128. - added compat32 package for x86_64 arch support
  129. - added --disable-static %%configure option
  130. * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2
  131. - removed *.la
  132. * Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
  133. - new upstream release
  134. * Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5
  135. - new upstream release
  136. - used _dist_release macro
  137. * Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
  138. - new upstream release
  139. * Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
  140. - new upstream release
  141. - changed Group to System Environment/Libraries
  142. * Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1
  143. - new upstream release
  144. * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1
  145. - new upstream release
  146. - fix dependencies
  147. - add BuildRequires: libgpg-error-devel >= 0.5
  148. - add Requires: libgpg-error
  149. - add Requires: libgpg-error-devel for devel package
  150. * Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  151. - new upstream release
  152. * Sun Mar 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1
  153. - initial build