diff --git a/strawberry.spec b/strawberry.spec index 2998e20..042f20c 100644 --- a/strawberry.spec +++ b/strawberry.spec @@ -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"