From 29fddb80d099eb62231340f83775a14de0adfcf8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 28 Sep 2014 09:23:22 +0200 Subject: libsodium-last: fix EL5 build --- libsodium-last.spec | 13 +++++++++++-- 1 file 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 -- cgit