diff --git a/gmic.changes b/gmic.changes index 9cbf133..43bb664 100644 --- a/gmic.changes +++ b/gmic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 21:43:55 UTC 2025 - Christophe Marin + +- Use GCC 13 on Leap 15 + ------------------------------------------------------------------- Wed Jan 8 13:06:49 UTC 2025 - Marcus Rueckert diff --git a/gmic.spec b/gmic.spec index 2c30edb..0198c16 100644 --- a/gmic.spec +++ b/gmic.spec @@ -63,10 +63,15 @@ BuildRequires: krita # # /SECTION # -BuildRequires: cmake >= 3.14.0 +BuildRequires: cmake >= 3.16.0 BuildRequires: dos2unix BuildRequires: extra-cmake-modules BuildRequires: fftw3-threads-devel +%if 0%{?suse_version} == 1500 +# Qt 6 requires c++-17, we'll use the latest version available on Leap 15 +BuildRequires: gcc13-c++ +BuildRequires: gcc13-PIE +%endif BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig BuildRequires: update-desktop-files @@ -171,6 +176,10 @@ This package contains shared data files for the various gmic frontends. dos2unix src/gmic_libc.* %build +%if 0%{?suse_version} == 1500 +export CC=gcc-13 CXX=g++-13 +%endif + # Build gmic # Starting with gmic 3.1.0, the gmic dev replaced their CMake build system with a non-configurable Makefile... sed -i 's#LIB ?= lib#LIB ?= %{_lib}#' src/Makefile