From 45b15e644e49921953d92d9ea85742855eef5d6b Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Sat, 26 Dec 2020 01:13:00 +0100 Subject: [PATCH] Require devtoolset-8-toolchain on EPEL 7 for C++17 support --- libopenmpt.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libopenmpt.spec b/libopenmpt.spec index ef348a8..a681e8b 100644 --- a/libopenmpt.spec +++ b/libopenmpt.spec @@ -27,6 +27,10 @@ BuildRequires: pulseaudio-libs-devel #BuildRequires: SDL-devel #BuildRequires: SDL2-devel +%if 0%{?rhel} && 0%{?rhel} < 8 +BuildRequires: devtoolset-8-toolchain +%endif + %description libopenmpt is a cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream. @@ -61,6 +65,10 @@ sed -i 's/\r$//' LICENSE %build +%if 0%{?rhel} && 0%{?rhel} < 8 +. /opt/rh/devtoolset-8/enable +%endif + %configure \ --disable-static \ --without-sdl --without-sdl2 \