libsodium/libsodium.spec
Ismail Dönmez cdfda926d6 Accepting request 532593 from home:13ilya:branches:devel:libraries:c_c++
- Refresh spec-file.
- Update to 1.0.15.
  * Release notes: https://github.com/jedisct1/libsodium/releases/tag/1.0.15
  * The default password hashing algorithm is now Argon2id.
  * The pwhash_str_verify() function can still verify Argon2i hashes without any changes,
    and pwhash() can still compute Argon2i hashes as well.
  * The aes128ctr primitive was removed. It was slow, non-standard, not authenticated,
    and didn't seem to be used by any opensource project.
  * Argon2id required at least 3 passes like Argon2i, despite a minimum of 1
    as defined by the OPSLIMIT_MIN constant. This has been fixed.
  * The secretstream construction was slightly changed to be consistent with forthcoming variants.
  * The Javascript and Webassembly versions have been merged, and the module now returns
    a .ready promise that will resolve after the Webassembly code is loaded and compiled.
  * Note that due to these incompatible changes, the library version major was bumped up.

OBS-URL: https://build.opensuse.org/request/show/532593
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsodium?expand=0&rev=60
2017-10-09 07:46:41 +00:00

98 lines
2.9 KiB
RPMSpec

#
# spec file for package libsodium
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org
#
%define lname libsodium23
Name: libsodium
Version: 1.0.15
Release: 0
Summary: Portable NaCl-based crypto library
License: ISC
Group: System/Libraries
Url: https://github.com/jedisct1/libsodium
Source: https://github.com/jedisct1/libsodium/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
%description
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc.NaCl's goal
is to provide all of the core operations needed to build higher-level cryptographic tools.
Sodium is a portable, cross-compilable, installable, packageable fork of NaCl,
with a compatible API.
%package -n %{lname}
Summary: Portable NaCl-based crypto library
Group: System/Libraries
%description -n %{lname}
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc. NaCl's goal
is to provide all of the core operations needed to build higher-level cryptographic tools.
Sodium is a portable, cross-compilable, installable, packageable fork of NaCl,
with a compatible API.
%package devel
Summary: Portable NaCl-based crypto library
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libsodium.
%prep
%setup -q
%build
#%if 0%{?suse_version} > 1320
#%ifarch %{ix86} x86_64
#export CFLAGS="%{optflags} -flto"
#export LDFLAGS="-flto"
#%endif
#%endif
%configure --disable-static
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%defattr(0644,root,root,0755)
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog LICENSE README.markdown THANKS
%{_includedir}/sodium.h
%{_includedir}/sodium
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog