nettle271-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define sname nettle
  3. Name: nettle271
  4. Version: 2.7.1
  5. Release: 5%{?_dist_release}
  6. Summary: A low-level cryptographic library
  7. Summary(ja): 低レベル暗号化ライブラリ
  8. Group: System Environment/Libraries
  9. License: LGPLv2+
  10. URL: http://www.lysator.liu.se/~nisse/nettle/
  11. Source0: http://www.lysator.liu.se/~nisse/archive/%{sname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gmp-devel
  14. BuildRequires: m4
  15. Requires(post): /sbin/install-info
  16. Requires(preun): /sbin/install-info
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %if %{build_compat32}
  20. %package -n compat32-%{name}
  21. Summary: A low-level cryptographic library
  22. Summary(ja): 低レベル暗号化ライブラリ
  23. Group: System Environment/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %endif
  26. %description
  27. Nettle is a cryptographic library that is designed to fit easily in more
  28. or less any context: In crypto toolkits for object-oriented languages
  29. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  30. kernel space.
  31. %if %{build_compat32}
  32. %description -n compat32-%{name}
  33. Nettle is a cryptographic library that is designed to fit easily in more
  34. or less any context: In crypto toolkits for object-oriented languages
  35. (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
  36. kernel space.
  37. %endif
  38. %prep
  39. %setup -q -n %{sname}-%{version}
  40. %build
  41. %configure --enable-shared
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  46. make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  47. #/usr/bin/iconv -f iso8859-1 -t utf-8 README > README.conv && /bin/mv -f README.conv README
  48. #/usr/bin/iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && /bin/mv -f ChangeLog.conv ChangeLog
  49. #/usr/bin/iconv -f iso8859-1 -t utf-8 nettle.info > nettle.info.conv && /bin/mv -f nettle.info.conv nettle.info
  50. mkdir -p $RPM_BUILD_ROOT%{_infodir}
  51. install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
  52. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.*
  53. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.*
  54. rm -rf %{buildroot}/%{_libdir}/*.a
  55. rm -rf %{buildroot}/%{_infodir}/dir
  56. %check
  57. make check
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %files
  61. %defattr(-,root,root,-)
  62. %doc AUTHORS ChangeLog COPYING.LIB NEWS README TODO
  63. # %{_infodir}/nettle.info.gz
  64. # %{_bindir}/nettle-hash
  65. # %{_bindir}/nettle-lfib-stream
  66. # %{_bindir}/pkcs1-conv
  67. # %{_bindir}/sexp-conv
  68. %{_libdir}/libhogweed.so.*
  69. %{_libdir}/libnettle.so.*
  70. # compat32
  71. %if %{build_compat32}
  72. %files -n compat32-%{name}
  73. %defattr(-, root, root, 0755)
  74. %{_libdir}/libhogweed.so.*
  75. %{_libdir}/libnettle.so.*
  76. %endif
  77. %post
  78. /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %if %{build_compat32}
  81. %post -n compat32-%{name} -p /sbin/ldconfig
  82. %postun -n compat32-%{name} -p /sbin/ldconfig
  83. %endif
  84. %changelog
  85. * Mon Dec 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.1-5
  86. - compatible package nettle271
  87. * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-4
  88. - fixed Requires typo of compat32-nettle-devel package
  89. * Sun Oct 26 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.7.1-3
  90. - moved nettle to System Environment/Libraries Group
  91. * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2
  92. - add compat32,compat32-devel packages
  93. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1
  94. - update to 2.7.1
  95. * Fri Dec 02 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.4-1
  96. - initial build for VineSeed
  97. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  99. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  101. * Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
  102. - Moved static lib to -static
  103. * Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
  104. - Added libraries and ldconfig
  105. * Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
  106. - Added provides -static to -devel
  107. * Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
  108. - Removed redundant requires
  109. - Removed redundant documentation between packages
  110. - Fixed license tag
  111. - Fixed -devel description
  112. - Added the static library back to -devel
  113. - Added make clean
  114. * Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
  115. - First package build.