fixes for rhel

This commit is contained in:
Christoph Junghans 2016-11-20 16:42:14 -07:00
parent 4631ba8ffa
commit 791e948ac0

View File

@ -10,7 +10,7 @@ BuildArch: noarch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: cmake BuildRequires: %{?fedora:cmake >= 3.0}%{?rhel:cmake3 >= 3.0}
%description %description
cereal is a header-only C++11 serialization library. cereal takes arbitrary cereal is a header-only C++11 serialization library. cereal takes arbitrary
@ -39,7 +39,7 @@ sed -i 's/-Werror//' CMakeLists.txt
%build %build
mkdir %{_target_platform} mkdir %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{cmake} .. -DSKIP_PORTABILITY_TEST=ON %{?fedora:%{cmake}}%{?rhel:%{cmake3}} .. -DSKIP_PORTABILITY_TEST=ON
%make_build %make_build
%install %install