From 055f39dbad48738c68642aec4c7cd921a5841ec4 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 13 Jan 2022 12:22:38 +0100 Subject: [PATCH] CentOS 7: require devtoolset-11-gcc-c++ --- icinga2.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index 3ce7023..4b10e47 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -118,8 +118,17 @@ BuildRequires: libyajl-devel %endif BuildRequires: libedit-devel BuildRequires: ncurses-devel +%if "%{_vendor}" == "redhat" && (0%{?el7} || 0%{?rhel} == 7 || "%{?dist}" == ".el7") + # Requires devtoolset-11 scl + %define scl_name devtoolset-11 + %define scl_enable scl enable %{scl_name} -- +BuildRequires: %{scl_name}-binutils +BuildRequires: %{scl_name}-gcc-c++ +BuildRequires: %{scl_name}-libstdc++-devel +%else BuildRequires: gcc-c++ BuildRequires: libstdc++-devel +%endif BuildRequires: openssl-devel BuildRequires: bison BuildRequires: cmake