forked from pool/libsodium
Dirk Mueller
71f9841a5c
- Update to 1.0.17 - Bug fix: sodium_pad() didn't properly support block sizes >= 256 bytes. - JS/WebAssembly: some old iOS versions can't instantiate the WebAssembly module; fall back to Javascript on these. - JS/WebAssembly: compatibility with newer Emscripten versions. - Bug fix: crypto_pwhash_scryptsalsa208sha256_str_verify() and crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()didn't returnEINVAL` on input strings with a short length, unlike their high-level counterpart. - Added a workaround for Visual Studio 2010 bug causing CPU features not to be detected. - Portability improvements. - Test vectors from Project Wycheproof have been added. - New low-level APIs for arithmetic mod the order of the prime order group: - crypto_core_ed25519_scalar_random(), crypto_core_ed25519_scalar_reduce(), - crypto_core_ed25519_scalar_invert(), crypto_core_ed25519_scalar_negate(), - crypto_core_ed25519_scalar_complement(), crypto_core_ed25519_scalar_add() and crypto_core_ed25519_scalar_sub(). - New low-level APIs for scalar multiplication without clamping: crypto_scalarmult_ed25519_base_noclamp() and crypto_scalarmult_ed25519_noclamp(). These new APIs are especially useful for blinding. - sodium_sub() has been implemented. - Support for WatchOS has been added. - getrandom(2) is now used on FreeBSD 12+. - The nonnull attribute has been added to all relevant prototypes. - More reliable AVX512 detection. - Javascript/Webassembly builds now use dynamic memory growth. OBS-URL: https://build.opensuse.org/request/show/670712 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsodium?expand=0&rev=70
96 lines
3.0 KiB
RPMSpec
96 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package libsodium
|
|
#
|
|
# Copyright (c) 2019 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 23
|
|
%define lname %{name}%{sover}
|
|
Name: libsodium
|
|
Version: 1.0.17
|
|
Release: 0
|
|
Summary: Portable NaCl-based crypto library
|
|
License: ISC
|
|
Group: System/Libraries
|
|
URL: https://github.com/jedisct1/libsodium
|
|
Source0: https://github.com/jedisct1/libsodium/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
Source1: https://github.com/jedisct1/libsodium/releases/download/%{version}/%{name}-%{version}.tar.gz.sig
|
|
Source2: %{name}.keyring
|
|
Source99: baselibs.conf
|
|
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
|
|
# Do _NOT_ change CFLAGS
|
|
# See https://github.com/jedisct1/libsodium/issues/604
|
|
%configure \
|
|
--disable-static \
|
|
--disable-silent-rules
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
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}
|
|
%license LICENSE
|
|
%{_libdir}/%{name}.so.%{sover}*
|
|
|
|
%files devel
|
|
%doc AUTHORS ChangeLog README.markdown THANKS
|
|
%{_includedir}/sodium.h
|
|
%{_includedir}/sodium
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|