diff --git a/qqc2-desktop-style.spec b/qqc2-desktop-style.spec index b3d35f1..e325be5 100644 --- a/qqc2-desktop-style.spec +++ b/qqc2-desktop-style.spec @@ -38,6 +38,12 @@ BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: qt5-qtquickcontrols2-devel Requires: qt5-qtquickcontrols2%{?_isa} +# WORKAROUND FTBFS +%if 0%{?rhel}==7 +BuildRequires: devtoolset-7-toolchain +BuildRequires: devtoolset-7-gcc-c++ +%endif + %description This is a style for QtQuickControls 2 that uses QWidget's QStyle for painting, making possible to achieve an higher degree of consistency @@ -49,6 +55,10 @@ between QWidget-based and QML-based apps. %build +%if 0%{?rhel}==7 +. /opt/rh/devtoolset-7/enable +%endif + mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} ..