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 <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-24 16:11:32 +02:00
parent 66efef1448
commit 7b07d5eba2
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -11,9 +11,9 @@ Patch0: fmt_build_doc_system.patch
# See https://github.com/fmtlib/fmt/issues/551 # See https://github.com/fmtlib/fmt/issues/551
Patch1: fmt_test8_segfault.patch Patch1: fmt_test8_segfault.patch
%if 0%{?rhel}
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: cmake3 BuildRequires: cmake3
%else %else
BuildRequires: cmake BuildRequires: cmake
@ -74,7 +74,7 @@ cmakeopts="-DFMT_LIB_DIR=%{_lib} -DFMT_CMAKE_DIR=%{_datarootdir}/cmake/%{name}"
%if 0%{?rhel}%{?fedora} == 6 %if 0%{?rhel}%{?fedora} == 6
cmakeopts="$cmakeopts -DCMAKE_SKIP_RPATH=OFF" cmakeopts="$cmakeopts -DCMAKE_SKIP_RPATH=OFF"
%endif %endif
%if 0%{?rhel} %if 0%{?rhel} && 0%{?rhel} <= 7
%cmake3 \ %cmake3 \
%else %else
%cmake \ %cmake \