nettle-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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.10
  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. %files
  81. %license COPYING*
  82. %doc AUTHORS ChangeLog NEWS README
  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. %doc descore.README nettle.html nettle.pdf
  93. %{_libdir}/libhogweed.so
  94. %{_libdir}/libnettle.so
  95. %{_includedir}/nettle
  96. %{_libdir}/pkgconfig/*
  97. # compat32
  98. %if %{build_compat32}
  99. %files -n compat32-%{name}
  100. %{_libdir}/libhogweed.so.*
  101. %{_libdir}/libnettle.so.*
  102. %files -n compat32-%{name}-devel
  103. %{_libdir}/libhogweed.so
  104. %{_libdir}/libnettle.so
  105. %endif
  106. %changelog
  107. * Thu Jun 27 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.10-1
  108. - new upstream release.
  109. * Tue Jul 04 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.9.1-1
  110. - new upstream release.
  111. * Tue Aug 09 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.8.1-1
  112. - new upstream release.
  113. - dropped install-info scriptlets.
  114. * Tue Jun 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.3-1
  115. - new upstream release.
  116. * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.2-1
  117. - new upstream release.
  118. - dropped ldconfig scriptlets.
  119. * Wed Feb 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7.1-1
  120. - new upstream release.
  121. * Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.7-1
  122. - new upstream release.
  123. * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.6-1
  124. - new upstream release.
  125. - imported Patch0 from rawhide.
  126. * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.1-1
  127. - new upstream release.
  128. * Thu Nov 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4-1
  129. - new upstream release.
  130. * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2-1
  131. - new upstream release.
  132. * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-1
  133. - new upstream release
  134. * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4
  135. - fixed Requires typo of compat32-nettle-devel package
  136. * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3
  137. - moved nettle to System Environment/Libraries Group
  138. * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2
  139. - add compat32,compat32-devel packages
  140. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1
  141. - update to 2.7.1
  142. * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1
  143. - initial build for VineSeed
  144. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  146. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
  147. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  148. * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
  149. - Moved static lib to -static
  150. * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
  151. - Added libraries and ldconfig
  152. * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
  153. - Added provides -static to -devel
  154. * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
  155. - Removed redundant requires
  156. - Removed redundant documentation between packages
  157. - Fixed license tag
  158. - Fixed -devel description
  159. - Added the static library back to -devel
  160. - Added make clean
  161. * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
  162. - First package build.