[libcutl/el5] Adding condition for using EPEL Boost 1.41 on EL5

Dave Johansen daveisfera at fedoraproject.org
Fri Jul 26 03:53:17 UTC 2013


commit de3092584e9f4df11559c3c7509b6846f738eda5
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Thu Jul 25 20:53:03 2013 -0700

    Adding condition for using EPEL Boost 1.41 on EL5

 libcutl.spec |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libcutl.spec b/libcutl.spec
index 6bf4504..df6c189 100644
--- a/libcutl.spec
+++ b/libcutl.spec
@@ -13,8 +13,14 @@ Patch0:         libcutl_no_boost_license.patch
 # See: http://fedoraproject.org/wiki/EPEL:Packaging#BuildRoot_tag
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# If building on Fedora or RHEL 6/7
+%if 0%{?rhel}%{?fedora} >= 6
 # Use the system Boost instead of the internal one
 BuildRequires: boost-devel
+%else
+# Otherwise, on RHEL 5 use the EPEL Boost 1.41 instead of the internal one
+BuildRequires: boost141-devel
+%endif
 # Uses pkgconfig
 BuildRequires: pkgconfig
 
@@ -40,7 +46,14 @@ developing applications that use %{name}.
 
 
 %build
+# If building on Fedora or RHEL 6/7
+%if 0%{?rhel}%{?fedora} >= 6
+# Use the system Boost instead of the internal one
 %configure --disable-static --with-external-boost
+%else
+# Otherwise, on RHEL 5 use the EPEL Boost 1.41 instead of the internal one
+%configure --disable-static --with-external-boost --with-boost=/usr/include/boost141
+%endif
 make %{?_smp_mflags}
 
 


More information about the scm-commits mailing list