diff --git a/README.md b/README.md index db06c5a..78ad6bf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libsodium +Sodium is a new, easy-to-use software library for encryption, decryption, signatures, password hashing and more. +It is a portable, cross-compilable, installable, packageable fork of NaCl, with a compatible API, and an extended API to improve usability even further. +Its goal is to provide all of the core operations needed to build higher-level cryptographic tools. + diff --git a/libsodium.spec b/libsodium.spec new file mode 100644 index 0000000..5790388 --- /dev/null +++ b/libsodium.spec @@ -0,0 +1,80 @@ +Name: libsodium +Version: 1.0.3 +Release: 2mamba +Summary: A modern and easy-to-use crypto library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://github.com/jedisct1/libsodium +Source: http://download.libsodium.org/libsodium/releases/libsodium-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Sodium is a new, easy-to-use software library for encryption, decryption, signatures, password hashing and more. +It is a portable, cross-compilable, installable, packageable fork of NaCl, with a compatible API, and an extended API to improve usability even further. +Its goal is to provide all of the core operations needed to build higher-level cryptographic tools. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package static +Summary: Static %{name} library +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static %{name} library. + +%debug_package + +%prep +%setup -q + +%build +%configure --disable-silent-rules +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libsodium.so.* +%doc AUTHORS LICENSE THANKS + +%files devel +%defattr(-,root,root) +%{_includedir}/sodium.h +%{_includedir}/sodium +%{_libdir}/libsodium.la +%{_libdir}/libsodium.so +%{_libdir}/pkgconfig/libsodium.pc +%doc ChangeLog README README.markdown + +%files static +%defattr(-,root,root) +%{_libdir}/libsodium.a + +%changelog +* Fri Sep 25 2015 Davide Madrisan 1.0.3-2mamba +- move the static library to libsodium-static + +* Fri Sep 25 2015 Davide Madrisan 1.0.3-1mamba +- package created by autospec