nettle-vl.spec 6.5 KB

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