From 666d3be9ced31b01a650cabcf04d08868dcccb44 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 10 Jan 2014 15:26:56 +0100 Subject: libircclient: fix EL-5 build --- libircclient.spec | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libircclient.spec') diff --git a/libircclient.spec b/libircclient.spec index 73a09f9..3b5f43c 100644 --- a/libircclient.spec +++ b/libircclient.spec @@ -8,6 +8,8 @@ License: LGPLv3+ Group: Development/Libraries URL: http://www.ulduzsoft.com/libircclient/ Source0: http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel # Correct install target to use includedir and libdir Patch0: libircclient-1.7-install.patch @@ -48,6 +50,8 @@ make %{?_smp_mflags} %install +rm -rf ${RPM_BUILD_ROOT} + make install DESTDIR=${RPM_BUILD_ROOT} # this header is not supposed to be installed @@ -58,6 +62,10 @@ install -pm 644 src/params.h ${RPM_BUILD_ROOT}%{_includedir}/libirc_params.h install -Dpm 644 man/%{name}.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/%{name}.1 +%clean +rm -rf ${RPM_BUILD_ROOT} + + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -- cgit