[vala: 12/12] Conditionally declare %clean so that the same spec can be used on EL-6
Michel Alexandre Salim
salimma at fedoraproject.org
Sun Sep 12 13:54:14 UTC 2010
commit 1b40128ed25637f89244493727ba227414d579bc
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Sun Sep 12 15:52:32 2010 +0200
Conditionally declare %clean so that the same spec can be used on EL-6
vala.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vala.spec b/vala.spec
index cfc7ba8..9f672aa 100644
--- a/vala.spec
+++ b/vala.spec
@@ -159,6 +159,12 @@ mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
cp -p emacs-vala/*.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
+%if 0%{?fedora} >= 13
+%else
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
More information about the scm-commits
mailing list