diff --git a/fix-wayland-version-requirement.diff b/fix-wayland-version-requirement.diff new file mode 100644 index 0000000..9c9972b --- /dev/null +++ b/fix-wayland-version-requirement.diff @@ -0,0 +1,13 @@ +Index: kscreenlocker-5.5.0/CMakeLists.txt +=================================================================== +--- kscreenlocker-5.5.0.orig/CMakeLists.txt ++++ kscreenlocker-5.5.0/CMakeLists.txt +@@ -38,7 +38,7 @@ set_package_properties(KF5Wayland PROPER + TYPE REQUIRED + PURPOSE "Required for building screenlocker") + find_package(WaylandScanner) +-find_package(Wayland 1.3 COMPONENTS Client Server) ++find_package(Wayland 1.2.1 COMPONENTS Client Server) + + set_package_properties(Wayland PROPERTIES + TYPE REQUIRED diff --git a/kscreenlocker.spec b/kscreenlocker.spec index d2725e7..57b6098 100644 --- a/kscreenlocker.spec +++ b/kscreenlocker.spec @@ -25,6 +25,8 @@ License: LGPL-2.1+ Group: System/GUI/KDE Url: https://projects.kde.org/kscreenlocker Source: %{name}-%{version}.tar.xz +# PATCH-FIX-OPENSUSE fix-wayland-version-requirement.diff -- Changes wayland requirement from 1.3 to 1.2.1 +Patch0: fix-wayland-version-requirement.diff BuildRequires: cmake >= 2.8.12 BuildRequires: extra-cmake-modules >= 1.8.0 BuildRequires: kf5-filesystem @@ -82,6 +84,10 @@ Development files for Library and components for secure lock screen architecture %lang_package %prep %setup -q -n %{name}-%{version} +%if 0%{?suse_version} == 1315 && !0%{?is_opensuse} +# SLE12 has a patched 1.2.1 wayland with all features KDE needs from up to 1.7.0 +%patch0 -p1 +%endif %build %cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5