[packages/libsodium] - new

qboosh qboosh at pld-linux.org
Sun Nov 3 15:11:31 CET 2013


commit 05a81f1c0977833633287c004b37ccd8dc1fe70e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 3 15:11:32 2013 +0100

    - new

 libsodium.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 107 insertions(+)
---
diff --git a/libsodium.spec b/libsodium.spec
new file mode 100644
index 0000000..f4be8eb
--- /dev/null
+++ b/libsodium.spec
@@ -0,0 +1,107 @@
+#
+# Conditional build:
+%bcond_without	tests		# don't perform "make check"
+#
+Summary:	Portable NaCl-based crypto library
+Summary(pl.UTF-8):	Przenośna biblioteka kryptograficzna oparta na NaCl
+Name:		libsodium
+Version:	0.4.5
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	http://download.libsodium.org/libsodium/releases/%{name}-%{version}.tar.gz
+# Source0-md5:	3a97d2c29ec0133e334036e3f19d0741
+URL:		https://github.com/jedisct1/libsodium
+BuildRequires:	pkgconfig >= 1:0.25
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+NaCl (<http://nacl.cr.yp.to/>, 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.
+
+%description -l pl.UTF-8
+NaCl (<http://nacl.cr.yp.to/>, wymawiane jako "sól") to nowa szybka,
+łatwa w użyciu biblioteka do komunikacji sieciowej, szyfrowania,
+odszyfrowywania, podpisów itp.
+
+Celem NaCl jest zapewnienie wszystkich głównych operacji niezbędnych
+do tworzenia narzędzi kryptograficznych wyższego poziomu.
+
+Sodium to przenośne, instalowalne i pakietowalne odgałęzienie NaCl ze
+zgodnym API.
+
+%package devel
+Summary:	Header files for libsodium library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libsodium
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for libsodium library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libsodium.
+
+%package static
+Summary:	Static libsodium library
+Summary(pl.UTF-8):	Statyczna biblioteka libsodium
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libsodium library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libsodium.
+
+%prep
+%setup -q
+
+%build
+# because of bug in ld.bfd (crashes with double free)
+CFLAGS="%{rpmcflags} -fuse-ld=gold"
+%configure \
+	--disable-silent-rules
+
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsodium.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog LICENSE README.markdown THANKS
+%attr(755,root,root) %{_libdir}/libsodium.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsodium.so.4
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsodium.so
+%{_includedir}/sodium.h
+%{_includedir}/sodium
+%{_pkgconfigdir}/libsodium.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsodium.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsodium.git/commitdiff/05a81f1c0977833633287c004b37ccd8dc1fe70e



More information about the pld-cvs-commit mailing list