[libsodium/el6] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Tue Dec 10 08:16:54 UTC 2013


commit 02029c93a8a96b2c266b2e0e5ec7d9feed9a938e
Author: Christopher Meng <i at cicku.me>
Date:   Tue Dec 10 16:16:14 2013 +0800

    Initial SETUP.

 .gitignore     |    1 +
 libsodium.spec |   73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7e09349 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libsodium-0.4.5.tar.gz
diff --git a/libsodium.spec b/libsodium.spec
new file mode 100644
index 0000000..e3bc925
--- /dev/null
+++ b/libsodium.spec
@@ -0,0 +1,73 @@
+Name:           libsodium
+Version:        0.4.5
+Release:        3%{?dist}
+Summary:        A fork of networking and cryptography library with compatible APIs
+License:        ISC
+URL:            https://github.com/jedisct1/libsodium
+Source0:        http://download.libsodium.org/libsodium/releases/%{name}-%{version}.tar.gz
+
+%description
+Sodium is a portable, cross-compilable, installable, packageable library 
+forked from NaCl(networking and cryptography library), with a compatible API. 
+Its goal is to provide all of the core operations needed to build higher-level
+cryptographic tools.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+This package contains libraries and header files for
+developing applications that use %{name} libraries.
+
+%prep
+%setup -q
+# EPEL6 hack.
+%if 0%{?rhel} == 6
+sed -i 's|_pkg_min_version=0.25|_pkg_min_version=0.23|g' configure
+%endif
+
+%build
+%configure --disable-static --disable-silent-rules
+make %{?_smp_mflags}
+
+%install
+make install INSTALL="install -p" DESTDIR=%{buildroot}
+find %{buildroot} -name '*.la' -delete
+
+%check
+make check
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc AUTHORS ChangeLog LICENSE README.markdown THANKS
+%{_libdir}/libsodium.so.*
+
+%files devel
+%doc test/default/*.{c,h}
+%{_includedir}/sodium.h
+%{_includedir}/sodium/
+%{_libdir}/libsodium.so
+%{_libdir}/pkgconfig/libsodium.pc
+
+%changelog
+* Mon Dec 09 2013 Christopher Meng <rpm at cicku.me> - 0.4.5-3
+- Disable silent build rules.
+- Preserve the timestamp.
+
+* Wed Nov 20 2013 Christopher Meng <rpm at cicku.me> - 0.4.5-2
+- Add doc for devel package.
+- Add support for EPEL6.
+
+* Wed Nov 20 2013 Christopher Meng <rpm at cicku.me> - 0.4.5-1
+- New version.
+
+* Wed Jul 10 2013 Christopher Meng <rpm at cicku.me> - 0.4.2-2
+- Drop useless files.
+- Improve the description.
+
+* Wed Jul 10 2013 Christopher Meng <rpm at cicku.me> - 0.4.2-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..f35b836 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3a97d2c29ec0133e334036e3f19d0741  libsodium-0.4.5.tar.gz


More information about the scm-commits mailing list