From 3e43d9c2133e7e3fa5512c907f960670a37c3be5db5307a9e08ee7816c589bf5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= <ismail@i10z.com>
Date: Wed, 14 May 2014 12:53:20 +0000
Subject: [PATCH] - 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
---
 0.5.0.tar.gz           |  3 +++
 libsodium-0.4.5.tar.gz |  3 ---
 libsodium.changes      | 23 +++++++++++++++++++++--
 libsodium.spec         | 14 +++++++++-----
 4 files changed, 33 insertions(+), 10 deletions(-)
 create mode 100644 0.5.0.tar.gz
 delete mode 100644 libsodium-0.4.5.tar.gz

diff --git a/0.5.0.tar.gz b/0.5.0.tar.gz
new file mode 100644
index 0000000..4661ffc
--- /dev/null
+++ b/0.5.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f18e556447f9baebad6a90cbf23c426fc6211a186cb5ccd721cdf862da5e735e
+size 1270470
diff --git a/libsodium-0.4.5.tar.gz b/libsodium-0.4.5.tar.gz
deleted file mode 100644
index 0204ad3..0000000
--- a/libsodium-0.4.5.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:7ad5202df53eeac0eb29b064ae5d05b65d82b2fc1c082899c9c6a09b0ee1ac32
-size 540467
diff --git a/libsodium.changes b/libsodium.changes
index 2beab8e..f39c419 100644
--- a/libsodium.changes
+++ b/libsodium.changes
@@ -1,8 +1,27 @@
+-------------------------------------------------------------------
+Wed May 14 12:40:08 UTC 2014 - idonmez@suse.com
+
+- 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
+
 -------------------------------------------------------------------
 Fri May  2 11:44:43 UTC 2014 - i@marguerite.su
 
-- initial version 0.4.5
-  * Restore compatibility with OSX <= 10.6 
+- Update to version 0.4.5
+  * Restore compatibility with OSX <= 10.6
 
 -------------------------------------------------------------------
 Tue Oct 22 08:41:03 UTC 2013 - idonmez@suse.com
diff --git a/libsodium.spec b/libsodium.spec
index 5c756f3..10cd684 100644
--- a/libsodium.spec
+++ b/libsodium.spec
@@ -16,15 +16,18 @@
 #
 
 
-%define lname libsodium4
+%define lname libsodium10
 Name:           libsodium
-Version:        0.4.5
+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/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source:         https://github.com/jedisct1/libsodium/archive/%{version}.tar.gz
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -60,6 +63,7 @@ to compile and develop applications that use libsodium.
 %setup -q
 
 %build
+./autogen.sh
 %configure --disable-static
 make %{?_smp_mflags}
 
@@ -77,13 +81,13 @@ make check
 
 %files -n %{lname}
 %defattr(0644,root,root,0755)
-%{_libdir}/libsodium.so.4*
+%{_libdir}/libsodium.so.*
 
 %files devel
 %defattr(-,root,root)
 %doc AUTHORS ChangeLog LICENSE README.markdown THANKS
 %{_includedir}/sodium.h
 %{_includedir}/sodium
-%{_libdir}/lib*.so
+%{_libdir}/libsodium.so
 
 %changelog