[python-application/el6] Keep %clean section on RHEL

Michel Alexandre Salim salimma at fedoraproject.org
Wed Feb 1 16:33:25 UTC 2012


commit 0c076126118f78405a0fd730bc028f4f90ca882f
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Wed Feb 1 17:32:32 2012 +0100

    Keep %clean section on RHEL

 python-application.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/python-application.spec b/python-application.spec
index 947e7d2..2a52f35 100644
--- a/python-application.spec
+++ b/python-application.spec
@@ -35,6 +35,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
 
+%if 0%{?rhel}
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
+
 %files
 %defattr(-,root,root,-)
 %doc LICENSE ChangeLog NEWS PKG-INFO README examples


More information about the scm-commits mailing list