[flexiport/el6] Use cmake28 on el6
rmattes
rmattes at fedoraproject.org
Tue Oct 16 05:11:05 UTC 2012
commit 6e40c4918eb46de215c4cf4c58d59fe12ea333e2
Author: Rich Mattes <richmattes at gmail.com>
Date: Tue Oct 16 01:10:43 2012 -0400
Use cmake28 on el6
flexiport.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/flexiport.spec b/flexiport.spec
index 1264f41..f6fdbcf 100644
--- a/flexiport.spec
+++ b/flexiport.spec
@@ -12,7 +12,11 @@ Source0: https://github.com/gbiggs/%{name}/tarball/1b6103da/gbiggs-%{name
# Submitted upstream:
# https://github.com/gbiggs/flexiport/issues/2
Patch0: flexiport-2.0.0-gcc47.patch
+%if 0%{?rhel}
+BuildRequires: cmake28
+%else
BuildRequires: cmake
+%endif
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: python-sphinx
@@ -39,7 +43,12 @@ sed -i 's/extensions/#extensions/' doc/conf.py.in
sed -i 's/\"lib\"/\"%{_lib}\"/' CMakeLists.txt
%build
-%cmake -DBUILD_EXAMPLES=OFF .
+%if 0%{?rhel}
+%cmake28 \
+%else
+%cmake \
+%endif
+ -DBUILD_EXAMPLES=OFF .
make %{?_smp_mflags}
More information about the scm-commits
mailing list