[bti/el5/master: 21/23] Conditionally handle el5 builds

Michel Alexandre Salim salimma at fedoraproject.org
Fri Sep 17 08:37:44 UTC 2010


commit 01a9e83570eb0b7544b0f13c0cd6fa966356c6f8
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Thu Sep 16 12:40:49 2010 +0200

    Conditionally handle el5 builds

 bti.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/bti.spec b/bti.spec
index 4eddf93..f6862bc 100644
--- a/bti.spec
+++ b/bti.spec
@@ -11,8 +11,11 @@ Source1:        README.Fedora
 Patch0:         bti-028-readline5.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-# still supporting EL-5, rename to libcurl-devel once this changes
-BuildRequires:  curl-devel compat-readline5-devel
+%if 0%{?el5}
+BuildRequires:  curl-devel readline-devel
+%else
+BuildRequires:  libcurl-devel compat-readline5-devel
+%endif
 BuildRequires:  liboauth-devel libxml2-devel pcre-devel
 #Requires:       
 
@@ -23,7 +26,10 @@ and fast manner to annoy the whole world.
 
 %prep
 %setup -q
+%if 0%{?el5}
+%else
 %patch0 -p1 -b .readline5
+%endif
 cp -p %{SOURCE1} .
 
 


More information about the scm-commits mailing list