mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
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:
@@ -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} .. \
|
||||
|
||||
Reference in New Issue
Block a user