From 9ccfb528687d6f5c75bddf8da870817538040bbc07233faccbbe5a0bb67362bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 11 Sep 2013 11:02:49 +0000 Subject: [PATCH] - Initial release for build.opensuse.org OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsodium?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + libsodium-0.4.3.tar.gz | 3 ++ libsodium.changes | 5 +++ libsodium.spec | 86 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libsodium-0.4.3.tar.gz create mode 100644 libsodium.changes create mode 100644 libsodium.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libsodium-0.4.3.tar.gz b/libsodium-0.4.3.tar.gz new file mode 100644 index 0000000..2aac9f8 --- /dev/null +++ b/libsodium-0.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599ce19ae6ace2d30aee353b931088f720713c4e1d0b2918ed46de1914fb6042 +size 523169 diff --git a/libsodium.changes b/libsodium.changes new file mode 100644 index 0000000..8f9d8a3 --- /dev/null +++ b/libsodium.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Sep 11 10:58:48 UTC 2013 - idonmez@suse.com + +- Initial release for build.opensuse.org + diff --git a/libsodium.spec b/libsodium.spec new file mode 100644 index 0000000..49dbb27 --- /dev/null +++ b/libsodium.spec @@ -0,0 +1,86 @@ +# +# spec file for package libsodium +# +# 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 libsodium4 +Name: libsodium +Version: 0.4.3 +Release: 0 +License: ISC +Summary: Portable NaCl-based crypto library +Url: https://github.com/jedisct1/libsodium +Group: System/Libraries +Source: https://github.com/jedisct1/libsodium/releases/download/%{version}/%{name}-%{version}.tar.gz +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 +%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.4* + +%files devel +%defattr(-,root,root) +%doc AUTHORS ChangeLog LICENSE README +%{_includedir}/sodium.h +%{_includedir}/sodium +%{_libdir}/lib*.so + +%changelog