From 791e948ac049aa93a6498d0c112ff3fa52172b04 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Sun, 20 Nov 2016 16:42:14 -0700 Subject: [PATCH] fixes for rhel --- cereal.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cereal.spec b/cereal.spec index 176c4a4..fd096f0 100644 --- a/cereal.spec +++ b/cereal.spec @@ -10,7 +10,7 @@ BuildArch: noarch BuildRequires: gcc-c++ BuildRequires: boost-devel -BuildRequires: cmake +BuildRequires: %{?fedora:cmake >= 3.0}%{?rhel:cmake3 >= 3.0} %description cereal is a header-only C++11 serialization library. cereal takes arbitrary @@ -39,7 +39,7 @@ sed -i 's/-Werror//' CMakeLists.txt %build mkdir %{_target_platform} pushd %{_target_platform} -%{cmake} .. -DSKIP_PORTABILITY_TEST=ON +%{?fedora:%{cmake}}%{?rhel:%{cmake3}} .. -DSKIP_PORTABILITY_TEST=ON %make_build %install