summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-09-28 09:23:22 +0200
committerRemi Collet <fedora@famillecollet.com>2014-09-28 09:23:22 +0200
commit29fddb80d099eb62231340f83775a14de0adfcf8 (patch)
tree0bd26fcbdf93bd5a77f714bd3b24600754e435ce
parentb498b42bbbca6dc2ce774bf5acd9d7176067c26f (diff)
libsodium-last: fix EL5 build
-rw-r--r--libsodium-last.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/libsodium-last.spec b/libsodium-last.spec
index 45860de..fc5dc5a 100644
--- a/libsodium-last.spec
+++ b/libsodium-last.spec
@@ -10,6 +10,7 @@ Name: %{libname}-last
Version: 1.0.0
Release: 1%{?dist}
Summary: The Sodium crypto library
+Group: System Environment/Libraries
License: ISC
URL: http://libsodium.org/
Source0: http://download.libsodium.org/libsodium/releases/%{libname}-%{version}.tar.gz
@@ -36,7 +37,8 @@ This package can be installed beside system %{libname}.
%package devel
Summary: Development files for %{name}
-Requires: %{name}%{?_isa} = %{version}-%{release}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
%if "%{libname}" != "%{name}"
Conflicts: %{libname}-devel < %{version}
Provides: %{libname}-devel = %{version}-%{release}
@@ -60,7 +62,8 @@ make %{_smp_mflags}
%install
-%make_install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/%{libname}.la
@@ -69,17 +72,23 @@ rm -f %{buildroot}%{_libdir}/%{libname}.la
make check
+%clean
+rm -rf %{buildroot}
+
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
+%defattr (-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/%{libname}.so.13*
%files devel
+%defattr (-,root,root,-)
%doc AUTHORS ChangeLog README.markdown THANKS
%doc test/default/*.{c,h}
%{_includedir}/sodium.h