[python-application] Keep %clean section on RHEL

Michel Alexandre Salim salimma at fedoraproject.org
Wed Feb 1 16:38:45 UTC 2012


commit 39eb7a299bb9607dadd0e767b396d10eca83e112
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 8d609f2..19a18e9 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