diff --git a/strawberry.spec b/strawberry.spec index 1cecb70..2e91911 100644 --- a/strawberry.spec +++ b/strawberry.spec @@ -40,7 +40,7 @@ BuildRequires: libboost_headers-devel BuildRequires: make BuildRequires: pkgconfig BuildRequires: update-desktop-files -%if 0%{?sle_version} >= 150400 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400 BuildRequires: cmake(Qt6Concurrent) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6DBus) @@ -86,7 +86,7 @@ BuildRequires: pkgconfig(protobuf) BuildRequires: pkgconfig(sqlite3) >= 3.9 BuildRequires: pkgconfig(taglib) >= 1.11.1 -%if 0%{?sle_version} >= 150400 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400 Requires: qt6-sql-sqlite %else Requires: libQt5Sql5-sqlite @@ -126,7 +126,7 @@ export CXX="g++-11" export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" %cmake -DBUILD_WERROR=OFF \ -%if 0%{?sle_version} >= 150400 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400 -DQT_MAJOR_VERSION=6 %else -DQT_MAJOR_VERSION=5