Jonas Kvinge 2024-01-11 20:38:40 +00:00 committed by Git OBS Bridge
parent 7b5fb1cb94
commit a782da6410

View File

@ -28,9 +28,9 @@ Source: https://files.strawberrymusicplayer.org/%{name}-%{version}.tar.x
BuildRequires: appstream-glib
BuildRequires: cmake
BuildRequires: desktop-file-utils
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150500
BuildRequires: gcc11
BuildRequires: gcc11-c++
%if 0%{?sle_version} == 150500 || 0%{?sle_version} == 150600
BuildRequires: gcc13
BuildRequires: gcc13-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
@ -110,9 +110,9 @@ Features:
%setup -q
%build
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150500
export CC="gcc-11"
export CXX="g++-11"
%if 0%{?sle_version} == 150500 || 0%{?sle_version} == 150600
export CC="gcc-13"
export CXX="g++-13"
%endif
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"