From 8bd41e7e389e2edc8fd129f62f0dc04c53cbb48b65f9435b95b7e97a6c7718b2 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Sat, 10 Feb 2024 18:49:20 +0000 Subject: [PATCH] Accepting request 1145692 from home:Kieltux:branches:games - Use gcc12 for openSUSE Leap, fixes building OBS-URL: https://build.opensuse.org/request/show/1145692 OBS-URL: https://build.opensuse.org/package/show/games/pentobi?expand=0&rev=27 --- pentobi.changes | 5 +++++ pentobi.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pentobi.changes b/pentobi.changes index ecb5bea..a9dc349 100644 --- a/pentobi.changes +++ b/pentobi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 10 15:58:02 UTC 2024 - Carsten Ziepke + +- Use gcc12 for openSUSE Leap, fixes building + ------------------------------------------------------------------- Wed Feb 7 11:41:45 UTC 2024 - Andrea Manzini diff --git a/pentobi.spec b/pentobi.spec index 0269949..19f4902 100644 --- a/pentobi.spec +++ b/pentobi.spec @@ -27,7 +27,6 @@ Source: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar BuildRequires: cmake >= 3.18 BuildRequires: docbook-xsl-stylesheets BuildRequires: extra-cmake-modules -BuildRequires: gcc-c++ BuildRequires: itstool BuildRequires: kio-devel BuildRequires: libxslt-tools @@ -46,6 +45,12 @@ Requires(postun): hicolor-icon-theme Requires(postun): update-desktop-files # unresolvable: nothing provides pkgconfig(Qt6WebView) ExclusiveArch: x86_64 aarch64 +%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse} +BuildRequires: gcc12 +BuildRequires: gcc12-c++ +%else +BuildRequires: gcc-c++ +%endif %description Pentobi is a computer opponent for the board game Blokus with @@ -57,6 +62,10 @@ save and load games along with comments and move variations. %setup -q %build +%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse} +export CC="gcc-12" +export CXX="g++-12" +%endif %cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON . %make_jobs VERBOSE=1