nettle-vl.spec 4.5 KB

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