File kcm_sddm.spec of Package kcm_sddm

# spec file for package kcm_sddm
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%bcond_without lang
Name:           kcm_sddm
Version:        5.12.7
Release:        0
Summary:        A sddm control module for KDE
License:        GPL-2.0
Group:          System/GUI/KDE
# PATCH-FIX-OPENSUSE set-default-session-to-plasma5-for-autologin.patch boo#951886 -- set the default autologin session to plasma5.desktop
Patch1:         set-default-session-to-plasma5-for-autologin.patch
Patch2:         0002-Support-default.session-symlink.patch
Patch3:         0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch
Patch4:         remove-wayland-suffix.patch
BuildRequires:  extra-cmake-modules >= 1.0.0
BuildRequires:  kf5-filesystem
BuildRequires:  pkgconfig
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5Auth)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5NewStuff)
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
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xcb-shm)
BuildRequires:  pkgconfig(xcursor)
Supplements:    packageand(sddm:plasma5-workspace)
Recommends:     %{name}-lang

SDDM control module for KDE. It provides a graphical frontend for the


%setup -q -n sddm-kcm-%{version}
%autopatch -p1

  %cmake_kf5 -d build

  %kf5_makeinstall -C build

%if %{with lang}
  %find_lang %{name} %{name}.lang

%if %{with lang}
%files lang -f %{name}.lang

%config %{_kf5_configdir}/sddmtheme.knsrc
%config %{_kf5_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf