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
diff --git a/scripts/ceres-solver.spec b/scripts/ceres-solver.spec
index f8c7a9d..946e5d1 100644
--- a/scripts/ceres-solver.spec
+++ b/scripts/ceres-solver.spec
@@ -12,7 +12,7 @@
 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 @@
 # 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} .. \