nettle-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A low-level cryptographic library
  3. Summary(ja): 低レベル暗号化ライブラリ
  4. Name: nettle
  5. Version: 3.8.1
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: LGPLv3+ or GPLv2+
  11. URL: http://www.lysator.liu.se/~nisse/nettle/
  12. Source0: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz
  13. Patch0: nettle-3.4-annocheck.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: gettext-devel
  16. BuildRequires: gmp-devel
  17. BuildRequires: m4
  18. %description
  19. Nettle is a cryptographic library that is designed to fit easily in more
  20. or less any context: In crypto toolkits for object-oriented languages
  21. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  22. kernel space.
  23. %package devel
  24. Summary: Development headers for a low-level cryptographic library
  25. Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ
  26. Group: programming
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: gmp-devel
  29. %description devel
  30. Nettle is a cryptographic library that is designed to fit easily in more
  31. or less any context: In crypto toolkits for object-oriented languages
  32. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  33. kernel space. This package contains kernel headers.
  34. %if %{build_compat32}
  35. %package -n compat32-%{name}
  36. Summary: A low-level cryptographic library
  37. Summary(ja): 低レベル暗号化ライブラリ
  38. Group: system,legacy
  39. Requires: %{name} = %{version}-%{release}
  40. %description -n compat32-%{name}
  41. Nettle is a cryptographic library that is designed to fit easily in more
  42. or less any context: In crypto toolkits for object-oriented languages
  43. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  44. kernel space.
  45. %package -n compat32-%{name}-devel
  46. Summary: Development headers for a low-level cryptographic library
  47. Summary(ja): 低レベル暗号化ライブラリの開発ヘッダ
  48. Group: programming,legacy
  49. Requires: %{name}-devel = %{version}-%{release}
  50. Requires: compat32-%{name} = %{version}-%{release}
  51. Requires: compat32-gmp-devel
  52. %description -n compat32-%{name}-devel
  53. Nettle is a cryptographic library that is designed to fit easily in more
  54. or less any context: In crypto toolkits for object-oriented languages
  55. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  56. kernel space. This package contains compat libraries.
  57. %endif
  58. %debug_package
  59. %prep
  60. %autosetup -p1
  61. %build
  62. autoreconf -ifv
  63. %configure --enable-shared --enable-fat
  64. make %{?_smp_mflags}
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  68. make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  69. mkdir -p $RPM_BUILD_ROOT%{_infodir}
  70. install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
  71. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.*
  72. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.*
  73. rm -rf %{buildroot}/%{_libdir}/*.a
  74. rm -rf %{buildroot}/%{_infodir}/dir
  75. %check
  76. make check
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT
  79. %files
  80. %defattr(-,root,root,-)
  81. %license COPYING*
  82. %doc AUTHORS ChangeLog NEWS README TODO
  83. %{_infodir}/nettle.info.gz
  84. %{_bindir}/nettle-hash
  85. %{_bindir}/nettle-lfib-stream
  86. %{_bindir}/pkcs1-conv
  87. %{_bindir}/sexp-conv
  88. %{_bindir}/nettle-pbkdf2
  89. %{_libdir}/libhogweed.so.*
  90. %{_libdir}/libnettle.so.*
  91. %files devel
  92. %defattr(-,root,root,-)
  93. %doc descore.README nettle.html nettle.pdf
  94. %{_libdir}/libhogweed.so
  95. %{_libdir}/libnettle.so
  96. %{_includedir}/nettle
  97. %{_libdir}/pkgconfig/*
  98. # compat32
  99. %if %{build_compat32}
  100. %files -n compat32-%{name}
  101. %defattr(-, root, root, 0755)
  102. %{_libdir}/libhogweed.so.*
  103. %{_libdir}/libnettle.so.*
  104. %files -n compat32-%{name}-devel
  105. %defattr(-, root, root, 0755)
  106. %{_libdir}/libhogweed.so
  107. %{_libdir}/libnettle.so
  108. %endif
  109. %changelog
  110. * Tue Aug 09 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.8.1-1
  111. - new upstream release.
  112. - dropped install-info scriptlets.
  113. * Tue Jun 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.3-1
  114. - new upstream release.
  115. * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.2-1
  116. - new upstream release.
  117. - dropped ldconfig scriptlets.
  118. * Wed Feb 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.1-1
  119. - new upstream release.
  120. * Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7-1
  121. - new upstream release.
  122. * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.6-1
  123. - new upstream release.
  124. - imported Patch0 from rawhide.
  125. * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.1-1
  126. - new upstream release.
  127. * Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4-1
  128. - new upstream release.
  129. * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2-1
  130. - new upstream release.
  131. * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-1
  132. - new upstream release
  133. * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4
  134. - fixed Requires typo of compat32-nettle-devel package
  135. * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3
  136. - moved nettle to System Environment/Libraries Group
  137. * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2
  138. - add compat32,compat32-devel packages
  139. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1
  140. - update to 2.7.1
  141. * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1
  142. - initial build for VineSeed
  143. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
  144. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  145. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
  146. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  147. * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
  148. - Moved static lib to -static
  149. * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
  150. - Added libraries and ldconfig
  151. * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
  152. - Added provides -static to -devel
  153. * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
  154. - Removed redundant requires
  155. - Removed redundant documentation between packages
  156. - Fixed license tag
  157. - Fixed -devel description
  158. - Added the static library back to -devel
  159. - Added make clean
  160. * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
  161. - First package build.