File libsodium4.spec of Package libsodium
#
# spec file for package libsodium
#
# Copyright (c) 2013 Markus Kolb, Innsbruck, Austria.
#
# 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/
#
# See also http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
Name: libsodium4
Version: 0.4.2
Release: 0
Summary: Easy-to-use high-speed library for network, encryption, signatures
License: ISC
Group: System/Libraries
Url: https://github.com/jedisct1/libsodium
Source0: libsodium-%{version}.tar.gz
#BuildRequires:
#Requires:
%description
Sodium is a portable, cross-compilable, installable, packageable
fork of NaCl, with a compatible API.
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.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n libsodium-%{version}
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc
%{_includedir}/*
%{_libdir}/*.so
%changelog