From 58ec60858bcefddcabcd8d0880e481ebac4a86f4 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Feb 17 2019 14:44:06 +0000 Subject: Fixed EPEL7 conditions. --- diff --git a/json.spec b/json.spec index 68e4669..4ee4b09 100644 --- a/json.spec +++ b/json.spec @@ -1,6 +1,6 @@ %global debug_package %{nil} -%if 0%{?rhel} == 7 +%if 0%{?rhel} && 0%{?rhel} == 7 %global ctbin ctest3 %else %global ctbin ctest @@ -18,7 +18,7 @@ Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: ninja-build BuildRequires: gcc-c++ -%if 0%{?rhel} == 7 +%if 0%{?rhel} && 0%{?rhel} == 7 BuildRequires: cmake3 %else BuildRequires: cmake @@ -55,7 +55,7 @@ rm -f test/src/unit-allocator.cpp %build pushd %{_target_platform} -%if 0%{?rhel} == 7 +%if 0%{?rhel} && 0%{?rhel} == 7 %cmake3 -G Ninja \ %else %cmake -G Ninja \