libsodium/libsodium.spec

93 lines
2.7 KiB
RPMSpec
Raw Normal View History

Name: libsodium
Version: 1.0.8
Release: 1mamba
Summary: A modern and easy-to-use crypto library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
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
* Mon Jan 25 2016 Automatic Build System <autodist@mambasoft.it> 1.0.8-1mamba
- automatic version update by autodist
* Wed Nov 04 2015 Automatic Build System <autodist@mambasoft.it> 1.0.6-1mamba
- automatic version update by autodist
* Sun Oct 25 2015 Automatic Build System <autodist@mambasoft.it> 1.0.5-1mamba
- automatic version update by autodist
* Sun Oct 18 2015 Automatic Build System <autodist@mambasoft.it> 1.0.4-1mamba
- automatic version update by autodist
* Fri Sep 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 1.0.3-2mamba
- move the static library to libsodium-static
* Fri Sep 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 1.0.3-1mamba
- package created by autospec