Switch to GCC 13 for Leap builds for packages that can't be built with the default compiler
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=110
This commit is contained in:
parent
af1871a225
commit
29ed6df228
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 31 14:34:55 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Switch to the latest GCC version available in Leap for packages
|
||||
that can't build with the default compiler
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 15 11:12:14 UTC 2023 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
%endif
|
||||
# The default Leap compiler is too old for building AppStream-qt6. use the same compiler for both flavors
|
||||
%if 0%{?suse_version} == 1500
|
||||
%bcond_without gcc12
|
||||
%bcond_without gcc13
|
||||
%endif
|
||||
%define rname AppStream
|
||||
%define libappstream_sover 5
|
||||
@ -51,9 +51,9 @@ Patch2: 0001-content-rating-Fix-missing-or-wrong-value-descriptio.patch
|
||||
Patch3: 0001-Fix-lib-name-for-Qt5-link-target.patch
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
%if %{with gcc12}
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%if %{with gcc13}
|
||||
BuildRequires: gcc13
|
||||
BuildRequires: gcc13-c++
|
||||
%endif
|
||||
BuildRequires: gdk-pixbuf-loader-rsvg
|
||||
BuildRequires: gettext
|
||||
@ -224,8 +224,8 @@ GObject introspection bindings for interfaces provided by AppStream.
|
||||
%define options -Dqt5=true -Dcompose=true -Dvapi=%{build_vapi}
|
||||
%endif
|
||||
|
||||
%if %{with gcc12}
|
||||
export CC=gcc-12 CXX=g++-12
|
||||
%if %{with gcc13}
|
||||
export CC=gcc-13 CXX=g++-13
|
||||
%endif
|
||||
|
||||
%meson %{common_options} %{options}
|
||||
|
Loading…
Reference in New Issue
Block a user