Plasma 6.1.5. sddm-kcm6 needed a patch change.

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/sddm-kcm6?expand=0&rev=27
This commit is contained in:
Christophe Marin 2024-09-11 07:58:06 +00:00 committed by Git OBS Bridge
commit ed0afc085c
15 changed files with 551 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,45 @@
From bc12001cb93b29799bc7cbbf963e4b793c008032 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Wed, 20 Mar 2024 09:38:27 +0100
Subject: [PATCH] Remove some features with questionable security
- Don't allow installing third-party themes from the store
- Don't recommend to clear the kwallet password
---
src/ui/Advanced.qml | 1 -
src/ui/main.qml | 7 -------
2 files changed, 8 deletions(-)
diff --git a/src/ui/Advanced.qml b/src/ui/Advanced.qml
index 8be5d81..3d05eea 100644
--- a/src/ui/Advanced.qml
+++ b/src/ui/Advanced.qml
@@ -36,7 +36,6 @@ Kirigami.Page {
// to appear when the user checks the checkbox, not all the
// time when the checkbox is checked.
if (checked && kcm.KDEWalletAvailable()) {
- autologinMessage.visible = true;
}
}
}
diff --git a/src/ui/main.qml b/src/ui/main.qml
index c30dd1f..e8b3bdd 100644
--- a/src/ui/main.qml
+++ b/src/ui/main.qml
@@ -34,13 +34,6 @@ KCM.GridViewKCM {
text: i18nc("@action:button", "Install From File…")
icon.name: "document-import"
onTriggered: themeDialog.open()
- },
- NewStuff.Action {
- text: i18nc("@action:button as in, \"get new SDDM themes\"", "Get New…")
- configFile: "sddmtheme.knsrc"
- onEntryEvent: function(entry, event) {
- kcm.themesModel.populate();
- }
}
]
header: Kirigami.InlineMessage {
--
2.43.2

View File

@ -0,0 +1,42 @@
From 015348caa1e8dd7f9c3b1490c6457017ec1b134e Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Tue, 11 Jul 2017 13:13:13 +0200
Subject: [PATCH] Support default.session symlink
Display it under a different name, otherwise it is indistinguishable from
a normal session. Use it as default when the combobox is disabled.
---
src/sessionmodel.cpp | 6 ++++++
src/ui/Advanced.qml | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
Index: sddm-kcm-6.1.5/src/sessionmodel.cpp
===================================================================
--- sddm-kcm-6.1.5.orig/src/sessionmodel.cpp
+++ sddm-kcm-6.1.5/src/sessionmodel.cpp
@@ -95,6 +95,12 @@ void SessionModel::loadDir(const QString
isHidden = line.mid(7).toLower() == QLatin1String("true");
}
}
+
+ if (session == QLatin1String( "default.desktop" )) {
+ si->name = tr("(System Default)");
+ isHidden = false;
+ }
+
if (!isHidden) {
// add to sessions list
d->sessions.push_back(si);
Index: sddm-kcm-6.1.5/src/ui/Advanced.qml
===================================================================
--- sddm-kcm-6.1.5.orig/src/ui/Advanced.qml
+++ sddm-kcm-6.1.5/src/ui/Advanced.qml
@@ -38,7 +38,7 @@ Kirigami.Page {
kcm.sddmSettings.session = autologinSession.currentText
} else {
kcm.sddmSettings.user = ""
- kcm.sddmSettings.session = ""
+ kcm.sddmSettings.session = "default.desktop"
}
// Deliberately imperative because we only want the message

View File

@ -0,0 +1,91 @@
From faaff11bc4aaddc471bc3ee2d0a79d72f4a0cda7 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Tue, 19 Jan 2021 20:45:33 +0100
Subject: [PATCH] Read and write autologin user to
/etc/sysconfig/displaymanager
That's where SDDM reads from.
---
sddmauthhelper.cpp | 30 ++++++++++++++++++++++++++++++
src/sddmsettingsbase.cpp | 6 ++++--
2 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/sddmauthhelper.cpp b/sddmauthhelper.cpp
index dea06ef..8f453a8 100644
--- a/sddmauthhelper.cpp
+++ b/sddmauthhelper.cpp
@@ -17,6 +17,8 @@
#include <QMimeDatabase>
#include <QMimeType>
#include <QSharedPointer>
+#include <QSaveFile>
+#include <QRegularExpression>
#include <KArchive>
#include <KConfig>
@@ -281,6 +283,34 @@ ActionReply SddmAuthHelper::save(const QVariantMap &args)
QString groupName = configFields[1];
QString keyName = configFields[2];
+ if (groupName == QLatin1String("Autologin") && keyName == QLatin1String("User")) {
+ QString sysconfFileName = QStringLiteral("/etc/sysconfig/displaymanager");
+ QFile sysconf(sysconfFileName);
+ QSaveFile newconf(sysconfFileName);
+ if (!sysconf.open(QIODevice::ReadOnly) || !newconf.open(QIODevice::WriteOnly)) {
+ return ActionReply::HelperErrorReply();
+ }
+
+ QString sysconfData = QString::fromUtf8(sysconf.readAll());
+ if (sysconfData.isEmpty()) {
+ return ActionReply::HelperErrorReply();
+ }
+
+ QRegularExpression re(QStringLiteral("^DISPLAYMANAGER_AUTOLOGIN=.*$"), QRegularExpression::MultilineOption);
+ auto match = re.match(sysconfData);
+ if (!match.hasMatch()) {
+ return ActionReply::HelperErrorReply();
+ }
+
+ sysconfData.replace(match.capturedStart(), match.capturedLength(),
+ QStringLiteral("DISPLAYMANAGER_AUTOLOGIN=\"%0\"").arg(iterator.value().toString()));
+
+ QByteArray newData = sysconfData.toUtf8();
+ if (newconf.write(newData) != newData.length() || !newconf.commit()) {
+ return ActionReply::HelperErrorReply();
+ }
+ }
+
// if there is an identical keyName in "sddm.conf" we want to delete it so SDDM doesn't read from the old file
// hierarchically SDDM prefers "etc/sddm.conf" to "/etc/sddm.conf.d/some_file.conf"
diff --git a/src/sddmsettingsbase.cpp b/src/sddmsettingsbase.cpp
index a928823..74ab3c9 100644
--- a/src/sddmsettingsbase.cpp
+++ b/src/sddmsettingsbase.cpp
@@ -9,6 +9,7 @@
#include <QDebug>
#include <QDir>
+#include <QSettings>
#include <algorithm>
@@ -45,12 +46,13 @@ unsigned int SddmSettingsBase::defaultMaximumUid() const
QString SddmSettingsBase::defaultUser() const
{
- return m_defaultConfig->group("AutoLogin").readEntry("User");
+ QSettings sysconfSettings(QStringLiteral("/etc/sysconfig/displaymanager"), QSettings::IniFormat);
+ return sysconfSettings.value(QStringLiteral("DISPLAYMANAGER_AUTOLOGIN")).toString();
}
QString SddmSettingsBase::defaultSession() const
{
- return m_defaultConfig->group("AutoLogin").readEntry("Session");
+ return m_defaultConfig->group("AutoLogin").readEntry("Session", "default.desktop");
}
bool SddmSettingsBase::defaultRelogin() const
--
2.41.0

View File

@ -0,0 +1,39 @@
From 5ac4a6e63e3dfb143f24f4ae9ca50b3295f4c0fa Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Sat, 7 Jul 2018 20:34:44 +0200
Subject: [PATCH] Don't add a (Wayland) suffix to Wayland sessions
It got removed from sddm as well.
---
src/sessionmodel.cpp | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/sessionmodel.cpp b/src/sessionmodel.cpp
index 9b00fa6..a4dfee1 100644
--- a/src/sessionmodel.cpp
+++ b/src/sessionmodel.cpp
@@ -47,6 +47,7 @@ SessionModel::~SessionModel()
void SessionModel::loadDir(const QString &path, SessionType type)
{
+ Q_UNUSED(type);
QDir dir(path);
dir.setNameFilters(QStringList() << QStringLiteral("*.desktop"));
dir.setFilter(QDir::Files);
@@ -77,13 +78,6 @@ void SessionModel::loadDir(const QString &path, SessionType type)
if (line.startsWith(QLatin1String("Name="))) {
si->name = line.mid(5);
- if (type == SessionTypeWayland) {
- // we want to exactly match the SDDM prompt which is formatted in this way
- // with the exact same check
- if (!si->name.endsWith(QLatin1String(" (Wayland)"))) {
- si->name = i18nc("%1 is the name of a session", "%1 (Wayland)", si->name);
- }
- }
}
if (line.startsWith(QLatin1String("Exec="))) {
si->exec = line.mid(5);
--
2.41.0

BIN
plasma.keyring Normal file

Binary file not shown.

3
sddm-kcm-6.1.3.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0cf14ce1254ffb697502a92d7e22125e6d44bb08e75e61ffdf584265ebc2aced
size 98800

16
sddm-kcm-6.1.3.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmaWVVgACgkQ11dEg7tX
sY1TtA/9HMfJ6zjeigZ2jwDSf72XowcAHOyW79pyVRMqOcrXnaSF0nSujnF12+L9
cMD/Ui/T9D1U5JytQzmWux9TrMmQfuS2lzd/poqmdXFqGp9sbx8hZvKNoDwvgCqM
ssiNRmb6OqQZgdBSgossAFDa7RZVvvGJ+ie/A/cpA/eddAHBBpd9wptgtts+TTBg
Bm6JeBcRZxiFWMyh43BHaAW2C49bbYjxuGatHOhQ4MyXJR5jasFBkCXlNo8tbJ6w
WL1RzVg+sKnxwNKOwrdSkCSVy1LS75c3D8tqGB6a0eKQNE1tYOfZVnEAFEIl8opX
F38kRZroN3nOKGe7feBgMOysOCSVVxahq3EhC58xbgHfg5QaDEdj2dJJ53wSsqtE
NYB1acs0am/27zCXNfcx5uiPepoEnYQTovqwR/2WLHQ1pOp+mUqzunUvFcEQJM0u
0xrijVnNA/pgxVCLhPs8iJNEykOzIsmOPRXU4wMdv5r1qiqgYVJsjXZGaw6LcK8o
XEgBUPTSNNGEjaUZIXM/HTXOploM06eAJBhU4MtVyXkB/mi4YHo2Os4LMc9lruBI
3kTxCnHE8lakAQyouvNXz/csyLbJrvBfuESeUK+aOBMk8Oqrp1HoFe35trZybvgO
qOai6IPoH3IMiaFliuPK1D0MlD3wptksJYfrCTTXzTndnjtXIls=
=aEKs
-----END PGP SIGNATURE-----

3
sddm-kcm-6.1.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:204f6099ecb140eb588ce9074ffcc1442112e291d2cddee86c31983c9f4e14a0
size 98828

16
sddm-kcm-6.1.4.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmayGN8ACgkQ11dEg7tX
sY2i+RAAtz5CylpVWyTq16N8EEWcc79Y8W4tSTbpyHZ0NE/NDoahG5ZMbhQrnqSy
ezUzqKdIhMfBYh5lBUZ7cOJwxiqgyfCIJiXP3IXGlehewZUqBZIqIy77kszCsbYy
yavjXmNPDJRTzi7NffkbUmLdXFJUqIzKmw1BKC7Obepn2szhJczdGn6Bwi7vDFD1
1DTDRGTuSjYmnIxXfyzCjsQ156sM6cwXfeSCZ9Efl09R6f2JpyNTOEhZ7yBPEz0p
MAtEPSNpeQBnXsKwuPRauHPYuIcEC6+HtKg1HhqlWe12A7m23ncZFV457kZBE3Xh
ovTgDkcB/ySKN5mJ8DoclcAPfF+Mm8qWfcRXmxIjldCNV2SXh1RnVpPNUahilV6h
i2MXtFYB1c4b1oh6AVuN53Pwdjb0+97vgB3KHdOxs0qe9lkV40j+4YN89z2eiAzj
3BqHlu79ctmbXlV0kpxweE3Kfmw5kgNtlRG4DL6CnTgXveQPb2IB7B3CEisChuce
BGDX/j7/fjCUxT+IerVpFTATZFXADoSMQV1SgTl72FVB09mD1M+JLsyuk6kN6tSx
CRJJJq3djdCcwerR5Lw9CqEltiIoQ6PG1KkOCBWW0nbMFzT2yEeF+APUKJDr6jDL
iDr2vdjUNF3Fp4FhX30YgrZbL8JmW3f8CGemRbW1THJLZVE2qYw=
=R0Hk
-----END PGP SIGNATURE-----

3
sddm-kcm-6.1.5.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:009235174d372079ee3aadf51e0bd7da1a382d1852ae65b0b96710b226698e9c
size 98940

16
sddm-kcm-6.1.5.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE4KPrIC+OV1KOE+cv11dEg7tXsY0FAmbgCSMACgkQ11dEg7tX
sY3g8BAAkQ0PPxo/mh/vgtgy4r4RfgFPhsPagUXbh0SKuLmlNNlwBlxwXqxoYfbh
ORqTpZyjX0dw+kLXMsjkAGcQy6yZlJXQXaOkGZDAJxN5B2rXm4yMlYho9CI0Xnjd
YF8TS3TQeSAOZ1iwjK3oxpw99Dc+7aUuXprCbYqwwNDrgNpIrpU4Gyj40UTAK39M
vPy6x8VcDLNuROKlHy31niKWGf8saLbeNJf74RPOJDbotGiFYj9T7pSCkX3+/txY
2/C/kcbI1XP4VPFFOafvSZd18yAEKqSHD8N9fwQ0dQxQLD/z3714OZPZ5TSn4+mc
AnMn9fSTBIrkHAe9bs/niAYnH48i3Pgurdxnu9kbXWaNOKY1T4l8xPR/kEvqQRX4
m7CjpH9Z2CZkoNdasIOhP9tfrAUWo2hBIbMTv2PfhbwGZvfisRxZWbnIDYMPm16k
Q/ktQ4YiHC3zfSAFs2JgBnUZMbkso6d4Wv9IQtrzi9JwciEnL5aWNT4Y2Qg6hZYO
778vGhgifxDtx+4qRdskHHTRND1CnMY05jdCOkYLKUBvnoAiPTywmxuvUTko0fUe
DPkU568eksz8aIFUyMKkGKLkxrcaIu5hL3HPMcGlrMtH+JS2UE++it14A6c1zfft
HwIWn/3Hb09vxMY+EQqwgbrxGem6Ld5SYD7zEAjtNyYvZBdtrzU=
=Ktp0
-----END PGP SIGNATURE-----

160
sddm-kcm6.changes Normal file
View File

@ -0,0 +1,160 @@
-------------------------------------------------------------------
Tue Sep 10 14:55:32 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.5:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.5
- Changes since 6.1.4:
* Fix needssave state management (kde#490937)
* update version for new release
- Rebase 0001-Support-default.session-symlink.patch
-------------------------------------------------------------------
Tue Aug 6 13:29:11 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.4:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.4
- Changes since 6.1.3:
* update version for new release
* Fix visual window artifact
-------------------------------------------------------------------
Tue Jul 16 13:25:43 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.3:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.3
- Changes since 6.1.2:
* update version for new release
-------------------------------------------------------------------
Tue Jul 2 17:34:35 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.2:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.2
- Changes since 6.1.1:
* update version for new release
-------------------------------------------------------------------
Tue Jun 25 17:15:57 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.1:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.1
- Changes since 6.1.0:
* update version for new release
-------------------------------------------------------------------
Thu Jun 13 10:59:01 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.1.0:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.1.0
- Changes since 6.0.90:
* update version for new release
-------------------------------------------------------------------
Sat May 25 11:20:16 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.90:
* New feature release
* For more details see https://kde.org/announcements/plasma/6/6.0.90
- Changes since 6.0.5:
* update version for new release
* Move sddm user check to a new function in authhelper
* Mark risky KNS content
* Reset cursor theme and size to defaults if they are unset in Plasma
* Allow unsetting values when syncing Plasma settings
* Adapt to Qt6 QVariant::isNull() changes
* Sync the current kwin output configuration
-------------------------------------------------------------------
Wed May 22 07:43:23 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.5:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.5
- Changes since 6.0.4:
* update version for new release
-------------------------------------------------------------------
Wed Apr 17 08:13:58 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.4:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.4
- Changes since 6.0.3:
* update version for new release
-------------------------------------------------------------------
Tue Mar 26 18:07:01 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.3:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.3
- Changes since 6.0.2:
* update version for new release
* Sync the current kwin output configuration
* Reset cursor theme and size to defaults if they are unset in Plasma
* Allow unsetting values when syncing Plasma settings
* Adapt to Qt6 QVariant::isNull() changes
-------------------------------------------------------------------
Wed Mar 20 08:44:42 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Add patch to disable some questionable features (bsc#1217188):
* 0001-Remove-some-features-with-questionable-security.patch
-------------------------------------------------------------------
Wed Mar 13 09:10:41 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.2:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.2
- Changes since 6.0.1:
* update version for new release
-------------------------------------------------------------------
Wed Mar 6 08:40:34 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.1:
* New bugfix release
* For more details see https://kde.org/announcements/plasma/6/6.0.1
- Changes since 6.0.0:
* update version for new release
-------------------------------------------------------------------
Mon Mar 4 18:52:32 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Add Provides/Obsoletes to replace Plasma 5
-------------------------------------------------------------------
Wed Feb 21 18:36:41 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 6.0.0:
* New bugfix release
* Release announcement not available yet
- Changes since 5.93.0:
* update version for new release
-------------------------------------------------------------------
Wed Jan 31 17:38:30 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.93.0 (6.0 RC 2):
* New bugfix release
* See https://kde.org/announcements/megarelease/6/rc2/ for details
- No code changes since 5.92.0
-------------------------------------------------------------------
Mon Jan 15 21:09:17 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.92.0 (6.0 RC 1)
* For more details please see:
https://kde.org/announcements/megarelease/6/rc1/
-------------------------------------------------------------------
Fri Aug 25 08:27:48 UTC 2023 - Christophe Marin <christophe@krop.fr>
- Init sddm-kcm6

93
sddm-kcm6.spec Normal file
View File

@ -0,0 +1,93 @@
#
# spec file for package sddm-kcm6
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define kf6_version 6.2.0
%define qt6_version 6.6.0
%define rname sddm-kcm
%bcond_without released
Name: sddm-kcm6
Version: 6.1.5
Release: 0
Summary: A sddm control module for KDE
License: GPL-2.0-only
URL: https://projects.kde.org/projects/kdereview/sddm-kcm/repository
Source: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/plasma/%{version}/%{rname}-%{version}.tar.xz.sig
Source2: plasma.keyring
%endif
# PATCH-FIX-OPENSUSE
Patch1: 0001-Support-default.session-symlink.patch
Patch2: 0002-Read-and-write-autologin-user-to-etc-sysconfig-displ.patch
Patch3: 0003-Don-t-add-a-Wayland-suffix-to-Wayland-sessions.patch
# PATCH-FEATURE (?)-OPENSUSE
Patch4: 0001-Remove-some-features-with-questionable-security.patch
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: pkgconfig
BuildRequires: cmake(KF6Archive) >= %{kf6_version}
BuildRequires: cmake(KF6Auth) >= %{kf6_version}
BuildRequires: cmake(KF6CoreAddons) >= %{kf6_version}
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
BuildRequires: cmake(KF6KCMUtils) >= %{kf6_version}
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
BuildRequires: cmake(KF6NewStuff) >= %{kf6_version}
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
BuildRequires: cmake(Qt6Quick) >= %{qt6_version}
BuildRequires: cmake(Qt6QuickWidgets) >= %{qt6_version}
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
Supplements: (sddm and plasma6-workspace)
Provides: kcm_sddm = %{version}
Obsoletes: kcm_sddm < %{version}
Obsoletes: kcm_sddm-lang < %{version}
%description
SDDM control module for Plasma. It provides a graphical frontend for the SDDM.
%lang_package
%prep
%autosetup -p1 -n %{rname}-%{version}
%build
%cmake_kf6
%kf6_build
%install
%kf6_install
%find_lang kcm_sddm
%files
%doc README.md
%license LICENSES/*
%{_kf6_bindir}/sddmthemeinstaller
%{_kf6_applicationsdir}/kcm_sddm.desktop
%{_kf6_dbuspolicydir}/org.kde.kcontrol.kcmsddm.conf
%{_kf6_knsrcfilesdir}/sddmtheme.knsrc
%{_kf6_plugindir}/plasma/kcms/systemsettings/kcm_sddm.so
%{_kf6_sharedir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
%{_kf6_sharedir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
%{_kf6_libexecdir}/kauth/kcmsddm_authhelper
%files lang -f kcm_sddm.lang
%changelog