2014-09-30 00:59:02 +02:00
#
# spec file for package kcm_sddm
#
2015-02-11 20:51:28 +01:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2014-09-30 00:59:02 +02: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-04-10 20:16:04 +02:00
%bcond_without lang
2014-09-30 00:59:02 +02:00
Name : kcm_sddm
Summary : A sddm control module for KDE
2014-11-18 20:03:16 +01:00
License : GPL-2.0
2014-09-30 00:59:02 +02:00
Group : System/GUI/KDE
2015-12-15 18:58:40 +01:00
Version : 5.5.1
2014-09-30 00:59:02 +02:00
Release : 0
2014-11-18 20:03:16 +01:00
Url : https://projects.kde.org/projects/kdereview/sddm-kcm/repository
Source : sddm-kcm-%{version} .tar.xz
2015-10-25 22:24:03 +01:00
# PATCH-FIX-OPENSUSE set-default-session-to-plasma5-for-autologin.patch boo#951886 wbauer@tmo.at -- set the default autologin session to plasma5.desktop
Patch : set-default-session-to-plasma5-for-autologin.patch
2015-11-29 03:47:34 +01:00
BuildRequires : extra-cmake-modules >= 1.0.0
2014-09-30 00:59:02 +02:00
BuildRequires : kf5-filesystem
2015-11-29 03:47:34 +01:00
BuildRequires : cmake(KF5Auth)
BuildRequires : cmake(KF5ConfigWidgets)
BuildRequires : cmake(KF5CoreAddons)
BuildRequires : cmake(KF5I18n)
BuildRequires : cmake(KF5KIO)
BuildRequires : cmake(KF5XmlGui)
BuildRequires : cmake(Qt5Core) >= 5.4.0
BuildRequires : cmake(Qt5Designer) >= 5.4.0
BuildRequires : cmake(Qt5Gui) >= 5.4.0
BuildRequires : cmake(Qt5Quick) >= 5.4.0
BuildRequires : cmake(Qt5QuickWidgets) >= 5.4.0
BuildRequires : cmake(Qt5Widgets) >= 5.4.0
BuildRequires : cmake(Qt5X11Extras) >= 5.4.0
2014-09-30 00:59:02 +02:00
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xcb)
BuildRequires : pkgconfig(xcb-image)
BuildRequires : pkgconfig(xcb-shm)
# cmakelists broken upstream, /home/abuild/rpmbuild/BUILD/sddm-kcm-0.0.0.1/src/cursortheme/thememodel.cpp:34:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
BuildRequires : pkgconfig(xcursor)
2015-04-11 20:56:22 +02:00
%if %{with lang}
2015-01-09 19:46:02 +01:00
Recommends: %{name} -lang
2015-04-11 20:56:22 +02:00
%endif
2015-04-28 01:55:17 +02:00
Supplements: packageand(sddm:plasma5-workspace)
2014-09-30 00:59:02 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
SDDM control module for KDE. It provides a graphical frontend for the
sddm.
2015-01-09 19:46:02 +01:00
%lang_package
2014-09-30 00:59:02 +02:00
%prep
%setup -q -n sddm-kcm-%{version}
2015-10-25 22:24:03 +01:00
%patch -p1
2014-09-30 00:59:02 +02:00
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
2015-01-09 19:46:02 +01:00
echo " s e t B a d n e s s ( ' s u s e - d b u s - u n a u t h o r i z e d - s e r v i c e ' , 0 ) " > $RPM_SOURCE_DIR /%name-rpmlintrc
2015-04-11 20:56:22 +02:00
%if %{with lang}
2015-01-09 19:46:02 +01:00
%find_lang %{name} %{name} .lang
2015-04-11 20:56:22 +02:00
%endif
2015-01-09 19:46:02 +01:00
2015-04-11 20:56:22 +02:00
%if %{with lang}
2015-01-09 19:46:02 +01:00
%files lang -f %{name}.lang
2015-04-11 20:56:22 +02:00
%endif
2014-09-30 00:59:02 +02:00
%files
%defattr (-,root,root)
%doc README
%{_kf5_servicesdir}/
%{_kf5_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
2014-11-18 20:03:16 +01:00
%config %{_kf5_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
2014-09-30 00:59:02 +02:00
%{_kf5_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
%{_kf5_libdir}/libexec/
%{_kf5_plugindir}/
%{_kf5_sharedir}/sddm-kcm/
%changelog