Jonas Kvinge 2022-07-25 21:31:45 +00:00 committed by Git OBS Bridge
parent 49ae4de1db
commit 78df349c9c

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
BuildRequires: gcc10
BuildRequires: gcc10-c++
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150500
BuildRequires: gcc11
BuildRequires: gcc11-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
@ -121,9 +121,9 @@ Features:
%setup -q
%build
%if 0%{?sle_version} == 150400
export CC="gcc-10"
export CXX="g++-10"
%if 0%{?sle_version} == 150400 || 0%{?sle_version} == 150500
export CC="gcc-11"
export CXX="g++-11"
%endif
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"