From c3fd3b960e489348d5b2c8b8f0167760e52ecbd9 Mon Sep 17 00:00:00 2001 From: Taylor Braun-Jones Date: Tue, 26 Feb 2013 00:30:35 -0500 Subject: [PATCH] Only use cmake28 macro for RHEL6 This makes it possible to use the same spec to build on Fedora. It drops any chance of building on RHEL5, but I doubt that was possible anyway. Change-Id: Ia956eb6416504e520962ec2f617e03b40ca18203 --- scripts/ceres-solver.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ceres-solver.spec b/scripts/ceres-solver.spec index f8c7a9d1f..946e5d195 100644 --- a/scripts/ceres-solver.spec +++ b/scripts/ceres-solver.spec @@ -12,7 +12,7 @@ URL: http://code.google.com/p/ceres-solver/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}rc1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -%if (0%{?rhel} <= 6) +%if (0%{?rhel} == 06) BuildRequires: cmake28 %else BuildRequires: cmake @@ -65,7 +65,7 @@ pushd build # Disable the compilation flags that rpmbuild macros try to apply to all # packages because it breaks the build since release 1.5.0rc1 %define optflags "" -%if (0%{?rhel} <= 6) +%if (0%{?rhel} == 06) %{cmake28} .. \ %else %{cmake} .. \