From 01a9e83570eb0b7544b0f13c0cd6fa966356c6f8 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Sep 16 2010 10:40:49 +0000 Subject: Conditionally handle el5 builds --- 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} .