[since/el5] Add conditionals for EPEL5

Till Maas till at fedoraproject.org
Wed Jun 6 09:26:55 UTC 2012


commit 44fcd8dd88ea9ecb68f5b8053b9e122384807624
Author: Till Maas <opensource at till.name>
Date:   Wed Jun 6 11:26:05 2012 +0200

    Add conditionals for EPEL5

 since.spec |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)
---
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 <opensource at till.name> - 1.1-5
+- Add conditionals for EPEL5
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list