libsodium-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define ver 1.0.12
  2. %define rel 1
  3. Summary: a modern and easy-to-use crypto library
  4. Summary(ja): モダンで手軽に使える暗号化ライブラリー
  5. Name: libsodium
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: %{name}-%{version}.tar.gz
  9. License: ISC
  10. Group: System Environment/Libraries
  11. URL: https://github.com/jedisct1/libsodium
  12. #BuildRequires:
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: iwaim
  17. %description
  18. Sodium is a new, easy-to-use software library for encryption, decryption,
  19. signatures, password hashing and more.
  20. It is a portable, cross-compilable, installable, packageable fork of NaCl,
  21. with a compatible API, and an extended API to improve usability even further.
  22. Its goal is to provide all of the core operations needed to build
  23. higher-level cryptographic tools.
  24. %package devel
  25. Summary: Development files for %{name}
  26. Summary(ja): %{name} の開発ファイル
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. %description devel
  30. The %{name}-devel package contains libraries and header files for
  31. developing applications that use %{name}.
  32. %prep
  33. %setup -q
  34. %build
  35. ./autogen.sh
  36. %configure --enable-shared --disable-static
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  41. %{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}/libsodium.la
  42. %clean
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %check
  45. make check
  46. %post -p /sbin/ldconfig
  47. %postun -p /sbin/ldconfig
  48. %files
  49. %defattr(-,root,root)
  50. %doc LICENSE AUTHORS ChangeLog THANKS README.*
  51. %{_libdir}/libsodium.so.*
  52. %files devel
  53. %defattr(-,root,root)
  54. %doc LICENSE AUTHORS ChangeLog THANKS README.*
  55. %{_libdir}/pkgconfig/libsodium.pc
  56. %{_libdir}/libsodium.so
  57. %{_includedir}/sodium.h
  58. %{_includedir}/sodium
  59. %changelog
  60. * Mon Jun 5 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.0.12-1
  61. - initial build for Vine Linux