move the static library to libsodium-static [release 1.0.3-2mamba;Fri Sep 25 2015]

This commit is contained in:
Davide Madrisan 2024-01-06 05:48:21 +01:00
parent c89cdd2319
commit 9711586cdd
2 changed files with 84 additions and 0 deletions

View File

@ -1,2 +1,6 @@
# libsodium # 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.

80
libsodium.spec Normal file
View File

@ -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 <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
* 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