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-10-04 12:52:07 +02:00
Version : 5.4.2
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
2014-09-30 00:59:02 +02:00
BuildRequires : extra-cmake-modules
BuildRequires : kauth-devel
2015-01-09 19:41:30 +01:00
BuildRequires : kconfigwidgets-devel
2014-09-30 00:59:02 +02:00
BuildRequires : kcoreaddons-devel
BuildRequires : kf5-filesystem
BuildRequires : ki18n-devel
2015-01-09 19:41:30 +01:00
BuildRequires : kio-devel
2014-09-30 00:59:02 +02:00
BuildRequires : kxmlgui-devel
2015-04-10 20:17:19 +02:00
BuildRequires : pkgconfig(Qt5Core) >= 5.4.0
BuildRequires : pkgconfig(Qt5Designer) >= 5.4.0
BuildRequires : pkgconfig(Qt5Gui) >= 5.4.0
BuildRequires : pkgconfig(Qt5Quick) >= 5.4.0
BuildRequires : pkgconfig(Qt5QuickWidgets) >= 5.4.0
BuildRequires : pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires : pkgconfig(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}
%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