[python-gencpp/el6: 2/2] Use cmake28 for rhel
rmattes
rmattes at fedoraproject.org
Sun Jul 21 17:10:53 UTC 2013
commit 82afea0ea1eacc4137c10fc8fbed96ab8f716080
Author: Rich Mattes <richmattes at gmail.com>
Date: Sun Jul 21 13:10:16 2013 -0400
Use cmake28 for rhel
python-gencpp.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-gencpp.spec b/python-gencpp.spec
index 01ef1c6..0a6eea2 100644
--- a/python-gencpp.spec
+++ b/python-gencpp.spec
@@ -14,7 +14,11 @@ Source0: https://github.com/ros/%{stackname}/archive/%{commit}/%{stacknam
Patch0: ros-%{stackname}-langs.patch
BuildArch: noarch
+if 0%{?rhel}
+BuildRequires: cmake28
+%else
BuildRequires: cmake
+%endif
BuildRequires: python-setuptools
BuildRequires: catkin-devel
BuildRequires: python-genmsg-devel
@@ -39,7 +43,12 @@ Requires: python-genmsg-devel
%build
mkdir build
pushd build
-%cmake -DSETUPTOOLS_DEB_LAYOUT=OFF ..
+%if 0%{?rhel}
+%cmake28 \
+%else
+%cmake \
+%endif
+ -DSETUPTOOLS_DEB_LAYOUT=OFF ..
popd
%install
More information about the scm-commits
mailing list