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
This commit is contained in:
Taylor Braun-Jones
2013-02-26 00:30:35 -05:00
parent b73148b9f3
commit c3fd3b960e
+2 -2
View File
@@ -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} .. \