SHA256
1
0
forked from pool/libsodium
libsodium/libsodium.spec
Ismail Dönmez 3e43d9c213 - Update to version 0.5.0
* sodium_mlock()/sodium_munlock() have been introduced.
   * Added high-level wrappers for crypto_box and crypto_secretbox
   * Added crypto_pwhash_scryptxsalsa208sha256* functions
   * Salsa20 and ed25519 implementations now support overlapping
     inputs/keys/outputs
   * The poly1305-53 implementation has been replaced with Floodyberry's
     poly1305-donna32 and poly1305-donna64 implementations
   * sodium_hex2bin() has been added to complement sodium_bin2hex()
   * crypto_auth_hmac_sha512() has been implemented
   * sha256 and sha512 now have a streaming interface
   * hmacsha256, hmacsha512 and hmacsha512256 now support keys of
     arbitrary length, and have a streaming interface
   * crypto_verify_64() has been implemented
   * CPU features are now detected at runtime
- Update to version 0.4.5
  * Restore compatibility with OSX <= 10.6

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsodium?expand=0&rev=8
2014-05-14 12:53:20 +00:00

94 lines
2.8 KiB
RPMSpec

#
# spec file for package libsodium
#
# Copyright (c) 2014 SUSE LINUX Products 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 libsodium10
Name: libsodium
Version: 0.5.0
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/archive/%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
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
./autogen.sh
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
%check
make 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
%changelog