From 44fcd8dd88ea9ecb68f5b8053b9e122384807624 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Jun 06 2012 09:26:05 +0000 Subject: Add conditionals for EPEL5 --- diff --git a/since.spec b/since.spec index d8edf23..c3f5b1e 100644 --- a/since.spec +++ b/since.spec @@ -1,12 +1,15 @@ Name: since Version: 1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Stateful tail replacement Group: Applications/File License: GPLv3+ URL: http://welz.org.za/projects/%{name} Source0: http://welz.org.za/projects/%{name}/%{name}-%{version}.tar.gz +%if 0%{?el5} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%endif %description Since is a Unix utility similar to tail. Unlike tail, since only shows @@ -20,6 +23,9 @@ growing log files. make CFLAGS='%{optflags} -DVERSION=\"%{version}\"' %{?_smp_mflags} %install +%if 0%{?el5} +rm -rf $RPM_BUILD_ROOT +%endif make install prefix=$RPM_BUILD_ROOT/%{_prefix} INSTALL='install -Dp' chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1 @@ -29,7 +35,15 @@ chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1 %doc COPYING README %{_mandir}/man1/%{name}.1* +%if 0%{?el5} +%clean +rm -rf $RPM_BUILD_ROOT +%endif + %changelog +* Wed Jun 06 2012 Till Maas - 1.1-5 +- Add conditionals for EPEL5 + * Sat Jan 14 2012 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild