[redland-bindings/el6/master] downgrade patches
Thomas Vander Stichele
thomasvs at fedoraproject.org
Fri Mar 4 19:05:38 UTC 2011
commit 96f5174fb8e98926c04b29c4c6fe6c2879d30c6a
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri Mar 4 20:05:27 2011 +0100
downgrade patches
redland-bindings.spec | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/redland-bindings.spec b/redland-bindings.spec
index 5ccc06b..af3415f 100644
--- a/redland-bindings.spec
+++ b/redland-bindings.spec
@@ -17,10 +17,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%{expand:%%define rhelrel %(test -e /etc/redhat-release -a ! -e /etc/fedora-release && perl -p -e 's@\D+([0-9\.]+)\D+@$1@' /etc/redhat-release || echo 0)}
%{expand:%%define rhel %(expr %{rhelrel} \> 0)}
+%{expand:%%define atmostrhel5 %(if [ %{rhelrel} -le 5 ]; then echo 1; else echo 0; fi)}
-# CentOS has MakeMaker in base perl package
-%if %{rhel}
+
+# CentOS 5 has MakeMaker in base perl package
+%if %{atmostrhel5}
%else
BuildRequires: perl-ExtUtils-MakeMaker
%endif
More information about the scm-commits
mailing list