- Build marble with GCC 13 on Leap 15

OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/marble?expand=0&rev=286
This commit is contained in:
Christophe Marin 2024-03-01 20:40:06 +00:00 committed by Git OBS Bridge
parent 81d391890f
commit 71d57d44cc
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 1 20:23:17 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Build marble with GCC 13 on Leap 15
-------------------------------------------------------------------
Fri Feb 23 14:00:47 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@ -33,6 +33,10 @@ Source2: applications.keyring
%endif
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
%if 0%{?suse_version} == 1500
BuildRequires: gcc13-c++
BuildRequires: gcc13-PIE
%endif
BuildRequires: libqt5-qtlocation-devel
BuildRequires: libshp-devel
BuildRequires: perl
@ -160,9 +164,14 @@ The astronomy library for the satellites plugin.
%build
export SUSE_ASNEEDED=0
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%if 0%{?suse_version} == 1500
export CXX=g++-13
%endif
%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
%cmake_kf5 -d build -- -DBUILD_MARBLE_TESTS=NO -DMOBILE=OFF -DQT_PLUGINS_DIR=%{_kf5_plugindir}
%cmake_build