Accepting request 1146475 from GNOME:Next

- Explicitly use gcc 13 on SLE.

OBS-URL: https://build.opensuse.org/request/show/1146475
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/shared-mime-info?expand=0&rev=106
This commit is contained in:
Dominique Leuenberger 2024-02-14 09:12:13 +00:00 committed by Git OBS Bridge
parent 4f97cf5c9d
commit 9d70ec71d9
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 12 23:45:56 UTC 2024 - Michael Gorse <mgorse@suse.com>
- Explicitly use gcc 13 on SLE.
-------------------------------------------------------------------
Sun Nov 12 11:19:19 UTC 2023 - Christophe Marin <christophe@krop.fr>

View File

@ -1,7 +1,7 @@
#
# spec file for package shared-mime-info
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,7 +27,13 @@ URL: https://gitlab.freedesktop.org/xdg/shared-mime-info
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
Source1: macros.shared-mime-info
%define usegcc13 0%{?sle_version} && 0%{?sle_version} <= 160000
%if %usegcc13
BuildRequires: gcc13-c++
%else
BuildRequires: c++_compiler
%endif
BuildRequires: glib2-devel
BuildRequires: libxml2-devel
# needed for xmllint
@ -54,6 +60,10 @@ This package contains:
%autosetup -p1
%build
%if %usegcc13
export CC=gcc-13
export CXX=g++-13
%endif
%meson
%meson_build