From 7b07d5eba28f7f212b1a82334d156374edf34233 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 24 Jul 2018 16:11:32 +0200 Subject: [PATCH] Add missing BuildRequires on gcc, gcc-c++ No CMAKE_CXX_COMPILER could be found. No CMAKE_C_COMPILER could be found. References: https://bugzilla.redhat.com/show_bug.cgi?id=1603988 Signed-off-by: Igor Gnatenko --- fmt.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmt.spec b/fmt.spec index 1412f81..77af880 100644 --- a/fmt.spec +++ b/fmt.spec @@ -11,9 +11,9 @@ Patch0: fmt_build_doc_system.patch # See https://github.com/fmtlib/fmt/issues/551 Patch1: fmt_test8_segfault.patch -%if 0%{?rhel} BuildRequires: gcc BuildRequires: gcc-c++ +%if 0%{?rhel} && 0%{?rhel} <= 7 BuildRequires: cmake3 %else BuildRequires: cmake @@ -74,7 +74,7 @@ cmakeopts="-DFMT_LIB_DIR=%{_lib} -DFMT_CMAKE_DIR=%{_datarootdir}/cmake/%{name}" %if 0%{?rhel}%{?fedora} == 6 cmakeopts="$cmakeopts -DCMAKE_SKIP_RPATH=OFF" %endif -%if 0%{?rhel} +%if 0%{?rhel} && 0%{?rhel} <= 7 %cmake3 \ %else %cmake \