Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
libsodium
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
libsodium.spec
@@ -0,0 +1,244 @@ +# +# spec file for package libsodium +# +# Copyright (c) 2016 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 lname libsodium18 +Name: libsodium +Version: 1.0.10 +Release: 53.1 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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}/libsodium.so.* + +%files devel +%defattr(-,root,root) +%doc AUTHORS ChangeLog LICENSE README.markdown THANKS +%{_includedir}/sodium.h +%{_includedir}/sodium +%{_libdir}/libsodium.so +%{_libdir}/pkgconfig/libsodium.pc + +%changelog +* Tue Apr 5 2016 idonmez@suse.com +- Update to version 1.0.10 + * Compile fix update for older GCCs +* Sat Apr 2 2016 idonmez@suse.com +- Update to version 1.0.9 + * A detached API was added to the ChaCha20-Poly1305 and AES256-GCM + implementations. + * The Argon2i password hashing function was added, and is accessible + directly and through a new, high-level crypto_pwhash API. + The scrypt function remains available as well. + * A speed-record AVX2 implementation of BLAKE2b was added. + * Countermeasures for Ed25519 signatures malleability have been + added to match the irtf-cfrg-eddsa draft. + * The HChaCha20 core function was implemented (crypto_core_hchacha20()). + * No-op stubs were added for all AES256-GCM public functions even + when compiled on non-Intel platforms. + * crypt_generichash_blake2b_statebytes() was added. + * New macros were added for the IETF variant of the ChaCha20-Poly1305 + construction. +* Fri Dec 25 2015 idonmez@suse.com +- Update to version 1.0.8 + * Handle the case where the CPU supports AVX, but we are running + on an hypervisor with AVX disabled/not supported. + * Faster (2x) scalarmult_base() when using the ref10 implementation. +* Tue Dec 8 2015 idonmez@suse.com +- Update to version 1.0.7 + * Sandy2x, the fastest Curve25519 implementation ever, + has been merged in, and is automatically used on CPUs + supporting the AVX instructions set. + * An SSE2 optimized implementation of Poly1305 was added, + and is twice as fast as the portable one. + * An SSSE3 optimized implementation of ChaCha20 was added, + and is twice as fast as the portable one. + * Faster sodium_increment() for common nonce sizes. + * New helper functions have been added: sodium_is_zero() + and sodium_add(). +* Tue Dec 1 2015 idonmez@suse.com +- Follow upstream's lead and compile with -flto for > 13.2 on x86 + and x86-64. +* Mon Nov 2 2015 idonmez@suse.com +- Update to 1.0.6 + * Optimized implementations of Blake2 have been added for modern + Intel platforms. crypto_generichash() is now faster than MD5 and + SHA1 implementations while being far more secure. + * The crypto_sign_edwards25519sha512batch_*() functions have been + tagged as deprecated. + * sodium_compare() now works as documented, and compares numbers + in little-endian format instead of behaving like memcmp(). + * sodium_runtime_has_ssse3() and sodium_runtime_has_sse41() have + been added. +* Wed Oct 21 2015 idonmez@suse.com +- Now that gcc 5.2 is available on TW, remove the ARMv7 workaround. +* Sun Oct 18 2015 idonmez@suse.com +- Update to 1.0.4 + * Support for AES256-GCM has been added. This requires a CPU with + the aesni and pclmul extensions, and is accessible via the + crypto_aead_aes256gcm_*() functions. + * ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has + been implemented as crypto_stream_chacha20_ietf(), + crypto_stream_chacha20_ietf_xor() and crypto_stream_chacha20_ietf_xor_ic(). + An IETF-compatible version of ChaCha20Poly1305 is available as + crypto_aead_chacha20poly1305_ietf_npubbytes(), + crypto_aead_chacha20poly1305_ietf_encrypt() and + crypto_aead_chacha20poly1305_ietf_decrypt(). + * The sodium_increment() helper function has been added, to increment + an arbitrary large number (such as a nonce). + * The sodium_compare() helper function has been added, to compare + arbitrary large numbers (such as nonces, in order to prevent replay attacks). +* Wed May 13 2015 mpluskal@suse.com +- Update to 1.0.3 + * In addition to sodium_bin2hex(), sodium_hex2bin() is now a + constant-time function. + * crypto_stream_xsalsa20_ic() has been added. + * crypto_generichash_statebytes(), crypto_auth_*_statebytes() + and crypto_hash_*_statebytes() have been added in order to + retrieve the size of structures keeping states from foreign + languages. + * The JavaScript target doesn't require /dev/urandom or an + external randombytes() implementation any more. Other minor + Emscripten-related improvements have been made in order to + support libsodium.js + * Custom randombytes implementations do not need to provide + their own implementation of randombytes_uniform() any more. + randombytes_stir() and randombytes_close() can also be NULL + pointers if they are not required. + * On Linux, getrandom(2) is being used instead of directly + accessing /dev/urandom, if the kernel supports this system + call. + * crypto_box_seal() and crypto_box_seal_open() have been added. + * A solutions for Visual Studio 2015 was added. +* Fri Jan 16 2015 idonmez@suse.com +- Update to version 1.0.2 + * The _easy and _detached APIs now support precalculated keys + * sodium_free() can now be called on regions with PROT_NONE + protection. + * Memory allocation functions can now be used on operating systems + with no memory protection. +* Wed Sep 24 2014 idonmez@suse.com +- Update to version 1.0.0 + * The API and ABI are now stable.