2015-11-27 21:13:26 +01:00
|
|
|
#
|
|
|
|
# spec file for package kscreenlocker
|
|
|
|
#
|
2017-01-13 17:40:37 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-11-27 21:13:26 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-11-27 21:32:51 +01:00
|
|
|
%bcond_without lang
|
2015-11-27 21:13:26 +01:00
|
|
|
Name: kscreenlocker
|
2017-08-22 23:15:36 +02:00
|
|
|
Version: 5.10.5
|
2015-11-27 21:13:26 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library and components for secure lock screen architecture
|
2015-12-22 16:37:48 +01:00
|
|
|
License: GPL-2.0+
|
2015-11-27 21:13:26 +01:00
|
|
|
Group: System/GUI/KDE
|
|
|
|
Url: https://projects.kde.org/kscreenlocker
|
2017-06-06 19:41:26 +02:00
|
|
|
Source: http://download.kde.org/stable/plasma/%{version}/kscreenlocker-%{version}.tar.xz
|
2015-12-05 02:05:07 +01:00
|
|
|
# PATCH-FIX-OPENSUSE fix-wayland-version-requirement.diff -- Changes wayland requirement from 1.3 to 1.2.1
|
|
|
|
Patch0: fix-wayland-version-requirement.diff
|
2017-08-31 09:35:10 +02:00
|
|
|
# PATCH-FIX-UPSTREAM 0001-Don-t-dissallow-open-with-write-flag-syscall-on-NVID.patch
|
|
|
|
Patch1: 0001-Don-t-dissallow-open-with-write-flag-syscall-on-NVID.patch
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: cmake >= 2.8.12
|
|
|
|
BuildRequires: extra-cmake-modules >= 1.8.0
|
|
|
|
BuildRequires: kf5-filesystem
|
2015-11-27 21:21:06 +01:00
|
|
|
BuildRequires: pam-config
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: cmake(KF5Crash) >= 5.15.0
|
|
|
|
BuildRequires: cmake(KF5Declarative) >= 5.15.0
|
|
|
|
BuildRequires: cmake(KF5GlobalAccel) >= 5.15.0
|
2016-03-05 20:53:30 +01:00
|
|
|
BuildRequires: cmake(KF5I18n) >= 5.15.0
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: cmake(KF5IdleTime) >= 5.15.0
|
|
|
|
BuildRequires: cmake(KF5KCMUtils) >= 5.15.0
|
2016-03-05 20:53:30 +01:00
|
|
|
BuildRequires: cmake(KF5Notifications) >= 5.15.0
|
|
|
|
BuildRequires: cmake(KF5Solid) >= 5.15.0
|
2016-06-16 18:46:54 +02:00
|
|
|
BuildRequires: cmake(KF5TextWidgets) >= 5.15.0
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: cmake(KF5Wayland)
|
2016-03-05 20:53:30 +01:00
|
|
|
BuildRequires: cmake(KF5WindowSystem) >= 5.15.0
|
|
|
|
BuildRequires: cmake(KF5XmlGui) >= 5.15.0
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: cmake(Qt5Quick) >= 5.5.0
|
|
|
|
BuildRequires: cmake(Qt5QuickWidgets) >= 5.5.0
|
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.5.0
|
|
|
|
BuildRequires: cmake(Qt5Widgets) >= 5.5.0
|
|
|
|
BuildRequires: cmake(Qt5X11Extras) >= 5.5.0
|
2017-05-16 13:56:18 +02:00
|
|
|
BuildRequires: pkgconfig(libseccomp)
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(wayland-server)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-keysyms)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
Requires(post): pam-config
|
2017-06-15 11:22:56 +02:00
|
|
|
Requires(post): /usr/bin/killall
|
2015-11-27 21:21:06 +01:00
|
|
|
Recommends: %{name}-lang
|
2015-11-27 21:13:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library and components for secure lock screen architecture.
|
|
|
|
|
|
|
|
%package -n libKScreenLocker5
|
|
|
|
Summary: Library and components for secure lock screen architecture
|
|
|
|
Group: System/GUI/KDE
|
|
|
|
|
|
|
|
%description -n libKScreenLocker5
|
|
|
|
Library and components for secure lock screen architecture.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Library and components for secure lock screen architecture - development files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libKScreenLocker5 = %{version}
|
|
|
|
Requires: cmake(Qt5Core) >= 5.5.0
|
|
|
|
Requires: cmake(Qt5X11Extras) >= 5.5.0
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for Library and components for secure lock screen architecture.
|
|
|
|
|
2015-11-27 21:21:06 +01:00
|
|
|
%lang_package
|
2015-11-27 21:13:26 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2015-12-05 02:05:07 +01:00
|
|
|
%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
|
2017-08-31 09:35:10 +02:00
|
|
|
%patch1 -p1
|
2015-11-27 21:13:26 +01:00
|
|
|
|
|
|
|
%build
|
2016-07-06 18:37:59 +02:00
|
|
|
%cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
2015-11-27 21:13:26 +01:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2016-07-06 18:37:59 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%kf5_find_lang
|
|
|
|
%endif
|
2015-11-27 21:13:26 +01:00
|
|
|
|
2017-05-16 13:56:18 +02:00
|
|
|
%pre
|
|
|
|
# TODO: Add a check for kscreenlocker_greet version, once available.
|
|
|
|
# Upstream told that that would not be possible, but upstream is unreasonable.
|
|
|
|
if [ $1 = 2 ]; then
|
|
|
|
touch /run/kscreenlocker_restart
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2015-11-27 21:13:26 +01:00
|
|
|
%post
|
|
|
|
# boo#931296
|
|
|
|
/usr/sbin/pam-config -d --unix2 || :
|
|
|
|
/usr/sbin/pam-config -a --unix || :
|
|
|
|
/sbin/ldconfig
|
2017-06-14 22:16:49 +02:00
|
|
|
if [ $1 = 2 ] && [ -f /run/kscreenlocker_restart ]; then
|
2017-06-15 15:13:42 +02:00
|
|
|
/usr/bin/killall -TERM kscreenlocker_greet || :
|
2017-05-16 13:56:18 +02:00
|
|
|
rm /run/kscreenlocker_restart
|
|
|
|
fi
|
|
|
|
exit 0
|
2015-11-27 21:13:26 +01:00
|
|
|
|
|
|
|
%post -n libKScreenLocker5 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libKScreenLocker5 -p /sbin/ldconfig
|
|
|
|
|
2015-11-27 21:21:06 +01:00
|
|
|
%if %{with lang}
|
2016-07-06 18:37:59 +02:00
|
|
|
%files lang -f %{name}.lang
|
2015-11-27 21:21:06 +01:00
|
|
|
%doc COPYING*
|
|
|
|
%endif
|
|
|
|
|
2015-11-27 21:13:26 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_libdir}/libexec/kcheckpass
|
|
|
|
%{_kf5_libdir}/libexec/kscreenlocker_greet
|
|
|
|
%{_kf5_servicesdir}/
|
|
|
|
%{_kf5_sharedir}/kconf_update/
|
|
|
|
%{_kf5_plugindir}/
|
|
|
|
%{_kf5_notifydir}/
|
|
|
|
%{_kf5_sharedir}/ksmserver/
|
|
|
|
|
|
|
|
%files -n libKScreenLocker5
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_libdir}/libKScreenLocker.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_libdir}/libKScreenLocker.so
|
|
|
|
%{_kf5_prefix}/include/KScreenLocker/
|
|
|
|
%{_kf5_libdir}/cmake/ScreenSaverDBusInterface/
|
|
|
|
%{_kf5_libdir}/cmake/KScreenLocker/
|
|
|
|
%{_kf5_sharedir}/dbus-1/interfaces/
|
|
|
|
|
|
|
|
%changelog
|