Init package
This commit is contained in:
parent
e52d46ce8e
commit
5bbd434864
18
kde
Normal file
18
kde
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#%PAM-1.0
|
||||||
|
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
|
||||||
|
auth substack system-auth
|
||||||
|
auth include postlogin
|
||||||
|
account required pam_nologin.so
|
||||||
|
account include system-auth
|
||||||
|
password include system-auth
|
||||||
|
# pam_selinux.so close should be the first session rule
|
||||||
|
session required pam_selinux.so close
|
||||||
|
session required pam_loginuid.so
|
||||||
|
session optional pam_console.so
|
||||||
|
# pam_selinux.so open should only be followed by sessions to be executed in the user context
|
||||||
|
session required pam_selinux.so open
|
||||||
|
session required pam_namespace.so
|
||||||
|
session optional pam_keyinit.so force revoke
|
||||||
|
session include system-auth
|
||||||
|
session include postlogin
|
||||||
|
#-session optional pam_ck_connector.so
|
||||||
BIN
plasma-workspace-5.25.5.tar.xz
Normal file
BIN
plasma-workspace-5.25.5.tar.xz
Normal file
Binary file not shown.
78
plasma-workspace-konsole-in-contextmenu.patch
Normal file
78
plasma-workspace-konsole-in-contextmenu.patch
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
diff -Nurr plasma-workspace-5.24.90-new/containmentactions/contextmenu/menu.cpp plasma-workspace-5.24.90/containmentactions/contextmenu/menu.cpp
|
||||||
|
--- plasma-workspace-5.24.90-new/containmentactions/contextmenu/menu.cpp 2022-05-21 16:42:05.980661922 +0200
|
||||||
|
+++ plasma-workspace-5.24.90/containmentactions/contextmenu/menu.cpp 2022-05-21 16:47:43.503606798 +0200
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
#include <KGlobalAccel>
|
||||||
|
#include <KIO/CommandLauncherJob>
|
||||||
|
#include <KLocalizedString>
|
||||||
|
+#include <KTerminalLauncherJob>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QIcon>
|
||||||
|
|
||||||
|
@@ -29,6 +30,7 @@
|
||||||
|
|
||||||
|
ContextMenu::ContextMenu(QObject *parent, const QVariantList &args)
|
||||||
|
: Plasma::ContainmentActions(parent, args)
|
||||||
|
+ , m_runKonsoleAction(nullptr)
|
||||||
|
, m_session(new SessionManagement(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@@ -61,6 +63,7 @@
|
||||||
|
<< QStringLiteral("configure shortcuts")
|
||||||
|
<< QStringLiteral("_sep1")
|
||||||
|
<< QStringLiteral("_context")
|
||||||
|
+ << QStringLiteral("_run_konsole")
|
||||||
|
<< QStringLiteral("_run_command")
|
||||||
|
<< QStringLiteral("add widgets")
|
||||||
|
<< QStringLiteral("_add panel")
|
||||||
|
@@ -97,6 +100,10 @@
|
||||||
|
m_runCommandAction->setShortcut(KGlobalAccel::self()->globalShortcut(QStringLiteral("krunner.desktop"), QStringLiteral("_launch")).value(0));
|
||||||
|
connect(m_runCommandAction, &QAction::triggered, this, &ContextMenu::runCommand);
|
||||||
|
|
||||||
|
+ m_runKonsoleAction = new QAction(i18n("Konsole"), this);
|
||||||
|
+ m_runKonsoleAction->setIcon(QIcon::fromTheme("utilities-terminal"));
|
||||||
|
+ connect(m_runKonsoleAction, &QAction::triggered, this, &ContextMenu::runKonsole);
|
||||||
|
+
|
||||||
|
m_lockScreenAction = new QAction(i18nc("plasma_containmentactions_contextmenu", "Lock Screen"), this);
|
||||||
|
m_lockScreenAction->setIcon(QIcon::fromTheme(QStringLiteral("system-lock-screen")));
|
||||||
|
m_lockScreenAction->setShortcut(KGlobalAccel::self()->globalShortcut(QStringLiteral("ksmserver"), QStringLiteral("Lock Session")).value(0));
|
||||||
|
@@ -179,6 +186,8 @@
|
||||||
|
if (KAuthorized::authorizeAction(QStringLiteral("run_command")) && KAuthorized::authorize(QStringLiteral("run_command"))) {
|
||||||
|
return m_runCommandAction;
|
||||||
|
}
|
||||||
|
+ } else if (name == QLatin1String("_run_konsole")) {
|
||||||
|
+ return m_runKonsoleAction;
|
||||||
|
} else if (name == QLatin1String("_lock_screen")) {
|
||||||
|
if (KAuthorized::authorizeAction(QStringLiteral("lock_screen"))) {
|
||||||
|
return m_lockScreenAction;
|
||||||
|
@@ -212,6 +221,13 @@
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
+void ContextMenu::runKonsole()
|
||||||
|
+{
|
||||||
|
+ auto job = new KTerminalLauncherJob(QString());
|
||||||
|
+ job->setWorkingDirectory(QDir::homePath());
|
||||||
|
+ job->start();
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void ContextMenu::runCommand()
|
||||||
|
{
|
||||||
|
if (!KAuthorized::authorizeAction(QStringLiteral("run_command"))) {
|
||||||
|
diff -Nurr plasma-workspace-5.24.90-new/containmentactions/contextmenu/menu.h plasma-workspace-5.24.90/containmentactions/contextmenu/menu.h
|
||||||
|
--- plasma-workspace-5.24.90-new/containmentactions/contextmenu/menu.h 2022-05-21 16:42:05.980661922 +0200
|
||||||
|
+++ plasma-workspace-5.24.90/containmentactions/contextmenu/menu.h 2022-05-21 16:48:39.122597718 +0200
|
||||||
|
@@ -29,11 +29,13 @@
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
void runCommand();
|
||||||
|
+ void runKonsole();
|
||||||
|
void startLogout();
|
||||||
|
void configureDisplays();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QAction *m_runCommandAction = nullptr;
|
||||||
|
+ QAction *m_runKonsoleAction = nullptr;
|
||||||
|
QAction *m_lockScreenAction = nullptr;
|
||||||
|
QAction *m_logoutAction = nullptr;
|
||||||
|
QAction *m_configureDisplaysAction = nullptr;
|
||||||
574
plasma-workspace.spec
Normal file
574
plasma-workspace.spec
Normal file
@ -0,0 +1,574 @@
|
|||||||
|
# Bootstrap?
|
||||||
|
%global bootstrap 1
|
||||||
|
|
||||||
|
%global kf5_version_min 5.82.0
|
||||||
|
|
||||||
|
# Don't control wayland by default
|
||||||
|
%bcond_without wayland_default
|
||||||
|
# But systemdBoot
|
||||||
|
%bcond_with systemdBoot
|
||||||
|
|
||||||
|
Name: plasma-workspace
|
||||||
|
Summary: Plasma workspace, applications and applets
|
||||||
|
Version: 5.25.5
|
||||||
|
Release: 1
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://invent.kde.org/plasma/%{name}
|
||||||
|
|
||||||
|
%global revision %(echo %{version} | cut -d. -f3)
|
||||||
|
%if %{revision} >= 50
|
||||||
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2).50
|
||||||
|
%global stable unstable
|
||||||
|
%else
|
||||||
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
||||||
|
%global stable stable
|
||||||
|
%endif
|
||||||
|
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
# filter qml/plugins provides
|
||||||
|
%global __provides_exclude_from ^(%{_kf5_qmldir}/.*\\.so|%{_kf5_qtplugindir}/.*\\.so)$
|
||||||
|
|
||||||
|
Source10: kde
|
||||||
|
Source11: startkderc
|
||||||
|
Source40: ssh-agent.conf
|
||||||
|
Source41: spice-vdagent.conf
|
||||||
|
|
||||||
|
Patch100: plasma-workspace-konsole-in-contextmenu.patch
|
||||||
|
|
||||||
|
# udev
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: dbusmenu-qt5-devel
|
||||||
|
BuildRequires: libGL-devel
|
||||||
|
BuildRequires: mesa-libGLES-devel
|
||||||
|
BuildRequires: libSM-devel
|
||||||
|
BuildRequires: libX11-devel
|
||||||
|
BuildRequires: libXau-devel
|
||||||
|
BuildRequires: libXdmcp-devel
|
||||||
|
BuildRequires: libxkbfile-devel
|
||||||
|
BuildRequires: libXcomposite-devel
|
||||||
|
BuildRequires: libXdamage-devel
|
||||||
|
BuildRequires: libXrender-devel
|
||||||
|
BuildRequires: libXfixes-devel
|
||||||
|
BuildRequires: libXrandr-devel
|
||||||
|
BuildRequires: libXcursor-devel
|
||||||
|
BuildRequires: libXtst-devel
|
||||||
|
BuildRequires: libXft-devel
|
||||||
|
BuildRequires: libxcb-devel
|
||||||
|
BuildRequires: xcb-util-keysyms-devel
|
||||||
|
BuildRequires: xcb-util-image-devel
|
||||||
|
BuildRequires: xcb-util-renderutil-devel
|
||||||
|
BuildRequires: xcb-util-wm-devel
|
||||||
|
BuildRequires: xcb-util-devel
|
||||||
|
BuildRequires: glib2-devel
|
||||||
|
BuildRequires: fontconfig-devel
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: libusb-devel
|
||||||
|
BuildRequires: libbsd-devel
|
||||||
|
BuildRequires: pam-devel
|
||||||
|
BuildRequires: lm_sensors-devel
|
||||||
|
BuildRequires: pciutils-devel
|
||||||
|
BuildRequires: pipewire-devel
|
||||||
|
BuildRequires: libraw1394-devel
|
||||||
|
BuildRequires: gpsd-devel
|
||||||
|
BuildRequires: libqalculate-devel
|
||||||
|
%global kf5_pim 1
|
||||||
|
BuildRequires: kf5-kholidays-devel
|
||||||
|
BuildRequires: kf5-prison-devel
|
||||||
|
|
||||||
|
BuildRequires: qt5-qtbase-devel >= 5.15
|
||||||
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||||
|
BuildRequires: qt5-qtx11extras-devel
|
||||||
|
BuildRequires: qt5-qtscript-devel
|
||||||
|
BuildRequires: qt5-qtdeclarative-devel
|
||||||
|
BuildRequires: qt5-qtsvg-devel
|
||||||
|
BuildRequires: qt5-qtwayland-devel
|
||||||
|
BuildRequires: phonon-qt5-devel
|
||||||
|
|
||||||
|
BuildRequires: kf5-rpm-macros >= %{kf5_version_min}
|
||||||
|
BuildRequires: systemd
|
||||||
|
BuildRequires: extra-cmake-modules
|
||||||
|
BuildRequires: kf5-baloo-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kactivities-stats-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-karchive-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kcmutils-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kcrash-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kdbusaddons-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kdeclarative-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kdesu-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kdoctools-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kglobalaccel-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kguiaddons-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kidletime-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kinit-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kitemmodels-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kjsembed-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-knewstuff-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-knotifications-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-knotifyconfig-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kpeople-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-krunner-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-ktexteditor-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-ktextwidgets-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kunitconversion-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kwallet-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kxmlrpcclient-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-networkmanager-qt-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-plasma-devel >= %{kf5_version_min}
|
||||||
|
Requires: kf5-plasma%{?_isa} >= %{_kf5_version}
|
||||||
|
BuildRequires: kf5-threadweaver-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kded-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kirigami2-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: kf5-kquickcharts-devel >= %{kf5_version_min}
|
||||||
|
|
||||||
|
BuildRequires: kf5-kwayland-devel >= %{kf5_version_min}
|
||||||
|
BuildRequires: wayland-devel >= 1.3.0
|
||||||
|
BuildRequires: libkscreen-qt5-devel >= %{majmin_ver}
|
||||||
|
BuildRequires: libksysguard-devel >= %{majmin_ver}
|
||||||
|
BuildRequires: kscreenlocker-devel >= %{majmin_ver}
|
||||||
|
BuildRequires: kwin-devel >= %{majmin_ver}
|
||||||
|
BuildRequires: layer-shell-qt-devel >= %{majmin_ver}
|
||||||
|
|
||||||
|
BuildRequires: PackageKit-Qt5-devel
|
||||||
|
BuildRequires: qt5-qtbase-static
|
||||||
|
|
||||||
|
BuildRequires: kuserfeedback-devel
|
||||||
|
BuildRequires: plasma-wayland-protocols-devel
|
||||||
|
|
||||||
|
BuildRequires: chrpath
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
|
BuildRequires: kf5-kactivities-devel
|
||||||
|
BuildRequires: cmake(AppStreamQt) >= 0.10.4
|
||||||
|
|
||||||
|
Conflicts: kio-extras < 5.4.0
|
||||||
|
Requires: %{name}-geolocation = %{version}-%{release}
|
||||||
|
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libkworkspace5%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: policycoreutils
|
||||||
|
|
||||||
|
# for libkdeinit5_*
|
||||||
|
%{?kf5_kinit_requires}
|
||||||
|
Requires: kactivitymanagerd%{?_isa} >= %{majmin_ver}
|
||||||
|
Requires: khotkeys%{?_isa} >= %{majmin_ver}
|
||||||
|
Requires: ksystemstats%{?_isa} >= %{majmin_ver}
|
||||||
|
Requires: kf5-baloo >= %{kf5_version_min}
|
||||||
|
Requires: kf5-kded >= %{kf5_version_min}
|
||||||
|
Requires: kf5-kdoctools >= %{kf5_version_min}
|
||||||
|
Requires: kf5-kglobalaccel >= %{kf5_version_min}
|
||||||
|
Requires: kf5-kxmlrpcclient >= %{kf5_version_min}
|
||||||
|
Requires: kf5-kquickcharts >= %{kf5_version_min}
|
||||||
|
Requires: qt5-qtquickcontrols
|
||||||
|
Requires: qt5-qtgraphicaleffects
|
||||||
|
|
||||||
|
# PulseAudio
|
||||||
|
Recommends: plasma-pa >= %{majmin_ver}
|
||||||
|
Requires: kf5-frameworkintegration
|
||||||
|
|
||||||
|
# krunner
|
||||||
|
Recommends: plasma-milou >= %{majmin_ver}
|
||||||
|
|
||||||
|
# need to avoid this dep when bootstrapping
|
||||||
|
%if ! 0%{?bootstrap}
|
||||||
|
# Power management
|
||||||
|
Requires: powerdevil >= %{majmin_ver}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Requires: dbus
|
||||||
|
Requires: dbus-tools
|
||||||
|
Requires: coreutils
|
||||||
|
Requires: socat
|
||||||
|
Requires: xmessage
|
||||||
|
Requires: qt5-qttools
|
||||||
|
|
||||||
|
Requires: iceauth xrdb xprop
|
||||||
|
|
||||||
|
Requires: systemd
|
||||||
|
Requires: oxygen-sound-theme >= %{majmin_ver}
|
||||||
|
Requires: polkit-kde >= %{majmin_ver}
|
||||||
|
Requires: maliit-keyboard
|
||||||
|
|
||||||
|
%if %{with systemdBoot}
|
||||||
|
Requires: (uresourced if systemd-oomd-defaults)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# plasma-desktop provides plasmashell(desktop)
|
||||||
|
%if 0%{?bootstrap}
|
||||||
|
Provides: plasmashell = %{version}
|
||||||
|
%else
|
||||||
|
Requires: plasmashell >= %{majmin_ver}
|
||||||
|
%endif
|
||||||
|
Obsoletes: plasma-workspace < 5.4.2-2
|
||||||
|
|
||||||
|
Provides: desktop-notification-daemon
|
||||||
|
Obsoletes: plasma-workspace < 5.3.2-8
|
||||||
|
|
||||||
|
# digitalclock applet
|
||||||
|
%if ! 0%{?bootstrap}
|
||||||
|
BuildRequires: pkgconfig(iso-codes)
|
||||||
|
%endif
|
||||||
|
Requires: iso-codes
|
||||||
|
Obsoletes: plasma-workspace < 5.19.5-2
|
||||||
|
|
||||||
|
# Require Xorg/Wayland sessions appropriately
|
||||||
|
%if ! %{with wayland_default}
|
||||||
|
Recommends: %{name}-wayland = %{version}-%{release}
|
||||||
|
Requires: %{name}-xorg = %{version}-%{release}
|
||||||
|
%else
|
||||||
|
Requires: %{name}-wayland = %{version}-%{release}
|
||||||
|
Recommends: %{name}-xorg = %{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Plasma 5 libraries and runtime components
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Summary: Common files for %{name}
|
||||||
|
|
||||||
|
%description common
|
||||||
|
%{name}.
|
||||||
|
|
||||||
|
%package -n libkworkspace5
|
||||||
|
Summary: Runtime libkworkspace5 library
|
||||||
|
Obsoletes: plasma-workspace < 5.4.2-2
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n libkworkspace5
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Summary: Runtime libraries for %{name}
|
||||||
|
Obsoletes: plasma-workspace < 5.4.2-2
|
||||||
|
#Requires: %%{name}%%{?_isa} = %%{version}-%%{release}
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
Provides: plasma-packagestructure = %{version}-%{release}
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libkworkspace5%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation and user manuals for %{name}
|
||||||
|
License: GFDL
|
||||||
|
Obsoletes: plasma-workspace-doc < 5.3.1-2
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Documentation and user manuals for %{name}.
|
||||||
|
|
||||||
|
%package geolocation
|
||||||
|
Summary: Plasma5 geolocation components
|
||||||
|
Obsoletes: plasma-workspace < 5.4.2-2
|
||||||
|
Requires: %{name}-geolocation-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description geolocation
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package geolocation-libs
|
||||||
|
Summary: Plasma5 geolocation runtime libraries
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
Requires: %{name}-geolocation = %{version}-%{release}
|
||||||
|
|
||||||
|
%description geolocation-libs
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package wayland
|
||||||
|
Summary: Wayland support for Plasma
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: kwin-wayland >= %{majmin_ver}
|
||||||
|
Requires: kwayland-integration%{?_isa} >= %{majmin_ver}
|
||||||
|
Requires: xorg-x11-server-Xwayland
|
||||||
|
Requires: qt5-qtwayland%{?_isa}
|
||||||
|
Requires: qt5-qttools
|
||||||
|
Recommends: xdg-desktop-portal-kde >= %{majmin_ver}
|
||||||
|
|
||||||
|
%description wayland
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package x11
|
||||||
|
Summary: Xorg support for Plasma
|
||||||
|
Obsoletes: %{name}-xorg < 5.20.90-2
|
||||||
|
Provides: %{name}-xorg = %{version}-%{release}
|
||||||
|
Provides: %{name}-xorg%{?_isa} = %{version}-%{release}
|
||||||
|
Obsoletes: %{name} < 5.19.5-2
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: kwin-x11 >= %{majmin_ver}
|
||||||
|
Requires: xorg-x11-server-Xorg
|
||||||
|
Requires: xsetroot
|
||||||
|
|
||||||
|
%description x11
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%patch100 -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir %{_target_platform}
|
||||||
|
pushd %{_target_platform}
|
||||||
|
%{cmake_kf5} .. \
|
||||||
|
%{?with_wayland_default:-DPLASMA_WAYLAND_DEFAULT_SESSION:BOOL=ON}
|
||||||
|
popd
|
||||||
|
%make_build -C %{_target_platform}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||||
|
|
||||||
|
chrpath --delete %{buildroot}%{_kf5_qtplugindir}/phonon_platform/kde.so
|
||||||
|
|
||||||
|
install -m644 -p -D %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/kde
|
||||||
|
|
||||||
|
%if %{with systemdBoot}
|
||||||
|
# Make kdestart use systemd
|
||||||
|
install -m644 -p -D %{SOURCE11} %{buildroot}%{_sysconfdir}/xdg/startkderc
|
||||||
|
%endif
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_userunitdir}/plasma-core.target.d/
|
||||||
|
mkdir -p %{buildroot}%{_userunitdir}/plasma-workspace@.target.d/
|
||||||
|
|
||||||
|
install -m644 -p -D %{SOURCE40} %{buildroot}%{_userunitdir}/plasma-core.target.d/ssh-agent.conf
|
||||||
|
install -m644 -p -D %{SOURCE41} %{buildroot}%{_userunitdir}/plasma-core.target.d/spice-vdagent.conf
|
||||||
|
|
||||||
|
%find_lang all --with-html --all-name
|
||||||
|
|
||||||
|
grep "%{_kf5_docdir}" all.lang > %{name}-doc.lang
|
||||||
|
grep libkworkspace.mo all.lang > libkworkspace5.lang
|
||||||
|
cat *.lang | sort | uniq -u > %{name}.lang
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.{klipper,plasmashell,systemmonitor}.desktop
|
||||||
|
|
||||||
|
%post
|
||||||
|
%ifnarch riscv64
|
||||||
|
setsebool -P selinuxuser_execmod 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files common
|
||||||
|
%license LICENSES
|
||||||
|
# No breeze
|
||||||
|
%exclude %{_datadir}/sddm/themes/breeze/
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%{_kf5_bindir}/gmenudbusmenuproxy
|
||||||
|
%{_kf5_bindir}/kcminit
|
||||||
|
%{_kf5_bindir}/kcminit_startup
|
||||||
|
%{_kf5_bindir}/klipper
|
||||||
|
%{_kf5_bindir}/krunner
|
||||||
|
%{_kf5_bindir}/ksmserver
|
||||||
|
%{_kf5_bindir}/ksplashqml
|
||||||
|
%{_kf5_bindir}/plasmashell
|
||||||
|
%{_kf5_bindir}/plasmawindowed
|
||||||
|
%{_kf5_bindir}/plasma_session
|
||||||
|
%{_kf5_bindir}/plasma-apply-*
|
||||||
|
%{_kf5_bindir}/plasma-interactiveconsole
|
||||||
|
%{_kf5_bindir}/plasma-shutdown
|
||||||
|
%{_kf5_bindir}/plasma_waitforname
|
||||||
|
%{_kf5_bindir}/systemmonitor
|
||||||
|
%{_kf5_bindir}/xembedsniproxy
|
||||||
|
%{_kf5_bindir}/kcolorschemeeditor
|
||||||
|
%{_kf5_bindir}/kde-systemd-start-condition
|
||||||
|
%{_kf5_bindir}/kfontinst
|
||||||
|
%{_kf5_bindir}/kfontview
|
||||||
|
%{_kf5_bindir}/lookandfeeltool
|
||||||
|
%{_kf5_qmldir}/org/kde/*
|
||||||
|
%{_libexecdir}/baloorunner
|
||||||
|
%{_libexecdir}/ksmserver-logout-greeter
|
||||||
|
%{_libexecdir}/kf5/kauth/fontinst*
|
||||||
|
%{_libexecdir}/kfontprint
|
||||||
|
%{_libexecdir}/plasma-changeicons
|
||||||
|
%{_libexecdir}/plasma-dbus-run-session-if-needed
|
||||||
|
%{_kf5_datadir}/ksplash/
|
||||||
|
%{_kf5_datadir}/plasma/avatars/
|
||||||
|
%{_kf5_datadir}/plasma/plasmoids/
|
||||||
|
%{_kf5_datadir}/plasma/services/
|
||||||
|
%{_kf5_datadir}/plasma/wallpapers/
|
||||||
|
%dir %{_kf5_datadir}/plasma/look-and-feel/
|
||||||
|
%{_kf5_datadir}/plasma/look-and-feel/org.kde.breeze.desktop/
|
||||||
|
%{_kf5_datadir}/plasma/look-and-feel/org.kde.breezedark.desktop/
|
||||||
|
%{_kf5_datadir}/plasma/look-and-feel/org.kde.breezetwilight.desktop/
|
||||||
|
%{_kf5_datadir}/solid/
|
||||||
|
%{_kf5_datadir}/kstyle/
|
||||||
|
%if %{with systemdBoot}
|
||||||
|
%{_sysconfdir}/xdg/startkderc
|
||||||
|
%endif
|
||||||
|
%{_sysconfdir}/xdg/autostart/*.desktop
|
||||||
|
%{_datadir}/icons/hicolor/*/*/*font*.png
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/preferences-desktop-font-installer.svgz
|
||||||
|
%{_datadir}/desktop-directories/*.directory
|
||||||
|
%{_datadir}/dbus-1/services/*.service
|
||||||
|
%{_datadir}/dbus-1/system-services/org.kde.fontinst.service
|
||||||
|
%{_datadir}/dbus-1/system.d/org.kde.fontinst.conf
|
||||||
|
%{_datadir}/knsrcfiles/*.knsrc
|
||||||
|
%{_datadir}/kfontinst/icons/hicolor/*/actions/*font*.png
|
||||||
|
%{_datadir}/konqsidebartng/virtual_folders/services/fonts.desktop
|
||||||
|
%{_datadir}/krunner/dbusplugins/plasma-runner-baloosearch.desktop
|
||||||
|
%{_datadir}/kxmlgui5/kfontview/kfontviewpart.rc
|
||||||
|
%{_datadir}/kxmlgui5/kfontview/kfontviewui.rc
|
||||||
|
%{_kf5_datadir}/kservices5/ServiceMenus/installfont.desktop
|
||||||
|
%{_kf5_datadir}/kservices5/ServiceMenus/setaswallpaper.desktop
|
||||||
|
%{_kf5_datadir}/kservices5/*.desktop
|
||||||
|
%{_kf5_datadir}/kservicetypes5/*.desktop
|
||||||
|
%{_kf5_datadir}/knotifications5/*.notifyrc
|
||||||
|
%{_kf5_datadir}/config.kcfg/*
|
||||||
|
%{_kf5_datadir}/kio_desktop/
|
||||||
|
%{_kf5_datadir}/kconf_update/delete_cursor_old_default_size.pl
|
||||||
|
%{_kf5_datadir}/kconf_update/delete_cursor_old_default_size.upd
|
||||||
|
%{_kf5_datadir}/kconf_update/icons_remove_effects.upd
|
||||||
|
%{_kf5_datadir}/kconf_update/style_widgetstyle_default_breeze.pl
|
||||||
|
%{_kf5_datadir}/kconf_update/style_widgetstyle_default_breeze.upd
|
||||||
|
%{_kf5_metainfodir}/*.xml
|
||||||
|
%{_kf5_datadir}/applications/kcm_*
|
||||||
|
%{_kf5_datadir}/applications/org.kde.klipper.desktop
|
||||||
|
%{_kf5_datadir}/applications/org.kde.plasmashell.desktop
|
||||||
|
%{_kf5_datadir}/applications/org.kde.systemmonitor.desktop
|
||||||
|
%{_kf5_datadir}/applications/org.kde.kcolorschemeeditor.desktop
|
||||||
|
%{_kf5_datadir}/applications/org.kde.kfontview.desktop
|
||||||
|
%{_kf5_datadir}/applications/org.kde.plasmawindowed.desktop
|
||||||
|
%{_kf5_datadir}/qlogging-categories5/*.categories
|
||||||
|
%{_sysconfdir}/xdg/plasmanotifyrc
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_autostart/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_translations/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_colors/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_cursortheme/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_desktoptheme/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_feedback/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_fonts/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_lookandfeel/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_nightcolor/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_notifications/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_style/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_users/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_icons/
|
||||||
|
%{_kf5_datadir}/kpackage/kcms/kcm_formats/
|
||||||
|
%{_kf5_datadir}/polkit-1/actions/org.kde.fontinst.policy
|
||||||
|
%{_userunitdir}/*.service
|
||||||
|
%{_userunitdir}/plasma-core.target
|
||||||
|
%dir %{_userunitdir}/plasma-core.target.d/
|
||||||
|
%{_userunitdir}/plasma-core.target.d/ssh-agent.conf
|
||||||
|
%{_userunitdir}/plasma-core.target.d/spice-vdagent.conf
|
||||||
|
%{_userunitdir}/plasma-workspace.target
|
||||||
|
%{_userunitdir}/plasma-workspace-wayland.target
|
||||||
|
%{_userunitdir}/plasma-workspace-x11.target
|
||||||
|
%dir %{_userunitdir}/plasma-workspace@.target.d/
|
||||||
|
%config(noreplace) %{_sysconfdir}/pam.d/kde
|
||||||
|
|
||||||
|
%files doc -f %{name}-doc.lang
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n libkworkspace5
|
||||||
|
|
||||||
|
%files -n libkworkspace5 -f libkworkspace5.lang
|
||||||
|
%{_libdir}/libkworkspace5.so.5*
|
||||||
|
|
||||||
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
|
%files libs
|
||||||
|
%{_sysconfdir}/xdg/taskmanagerrulesrc
|
||||||
|
%{_libdir}/libcolorcorrect.so.*
|
||||||
|
%{_libdir}/libtaskmanager.so.*
|
||||||
|
%{_libdir}/libweather_ion.so.*
|
||||||
|
%{_libdir}/libkrdb.so
|
||||||
|
%{_libdir}/libnotificationmanager.*
|
||||||
|
%{_libdir}/libkfontinst*
|
||||||
|
%{_kf5_qtplugindir}/plasma/applets/
|
||||||
|
%{_kf5_qtplugindir}/plasma/dataengine/
|
||||||
|
%if 0%{?kf5_pim}
|
||||||
|
%{_kf5_qtplugindir}/plasmacalendarplugins/
|
||||||
|
%endif
|
||||||
|
%{_kf5_qtplugindir}/*.so
|
||||||
|
%exclude %{_kf5_qtplugindir}/plasma/dataengine/plasma_engine_geolocation.so
|
||||||
|
%exclude %{_kf5_qtplugindir}/plasma/geolocationprovider/plasma-geolocation-gps.so
|
||||||
|
%exclude %{_kf5_qtplugindir}/plasma/geolocationprovider/plasma-geolocation-ip.so
|
||||||
|
%dir %{_kf5_qtplugindir}/phonon_platform/
|
||||||
|
%{_kf5_qtplugindir}/phonon_platform/kde.so
|
||||||
|
%{_kf5_qtplugindir}/kpackage/packagestructure/*.so
|
||||||
|
%{_kf5_plugindir}/kio/*.so
|
||||||
|
%{_kf5_plugindir}/kded/*.so
|
||||||
|
%{_kf5_plugindir}/krunner/*
|
||||||
|
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_*.so
|
||||||
|
%{_libdir}/kconf_update_bin/krunnerhistory
|
||||||
|
%{_libdir}/kconf_update_bin/krunnerglobalshortcuts
|
||||||
|
%{_kf5_qtplugindir}/kf5/parts/kfontviewpart.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_applauncher.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_contextmenu.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_paste.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_switchdesktop.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_switchwindow.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/containmentactions/plasma_containmentactions_switchactivity.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/kcminit/kcm_fonts_init.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/kcminit/kcm_style_init.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/kcms/systemsettings_qwidgets/kcm_fontinst.so
|
||||||
|
%{_libexecdir}/plasma-sourceenv.sh
|
||||||
|
%{_kf5_datadir}/kconf_update/krunnerhistory.upd
|
||||||
|
%{_kf5_datadir}/kconf_update/krunnerglobalshortcuts2.upd
|
||||||
|
%{_kf5_datadir}/kglobalaccel/org.kde.krunner.desktop
|
||||||
|
|
||||||
|
%files geolocation
|
||||||
|
%{_kf5_qtplugindir}/plasma/dataengine/plasma_engine_geolocation.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/geolocationprovider/plasma-geolocation-gps.so
|
||||||
|
%{_kf5_qtplugindir}/plasma/geolocationprovider/plasma-geolocation-ip.so
|
||||||
|
|
||||||
|
%ldconfig_scriptlets geolocation-libs
|
||||||
|
|
||||||
|
%files geolocation-libs
|
||||||
|
%{_libdir}/libplasma-geolocation-interface.so.5*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libcolorcorrect.so
|
||||||
|
%{_libdir}/libweather_ion.so
|
||||||
|
%{_libdir}/libtaskmanager.so
|
||||||
|
%{_libdir}/libplasma-geolocation-interface.so
|
||||||
|
%{_libdir}/libkworkspace5.so
|
||||||
|
%dir %{_includedir}/plasma/
|
||||||
|
%{_includedir}/colorcorrect/
|
||||||
|
%{_includedir}/plasma/weather/
|
||||||
|
%{_includedir}/kworkspace5/
|
||||||
|
%{_includedir}/plasma/geolocation/
|
||||||
|
%{_includedir}/taskmanager/
|
||||||
|
%{_includedir}/notificationmanager/
|
||||||
|
%{_libdir}/cmake/KRunnerAppDBusInterface/
|
||||||
|
%{_libdir}/cmake/KSMServerDBusInterface/
|
||||||
|
%{_libdir}/cmake/LibColorCorrect
|
||||||
|
%{_libdir}/cmake/LibKWorkspace/
|
||||||
|
%{_libdir}/cmake/LibTaskManager/
|
||||||
|
%{_libdir}/cmake/LibNotificationManager/
|
||||||
|
%{_datadir}/dbus-1/interfaces/*.xml
|
||||||
|
|
||||||
|
%files wayland
|
||||||
|
%{_kf5_bindir}/startplasma-wayland
|
||||||
|
%if ! %{with wayland_default}
|
||||||
|
%{_datadir}/wayland-sessions/plasmawayland.desktop
|
||||||
|
%else
|
||||||
|
%{_datadir}/wayland-sessions/plasma.desktop
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files x11
|
||||||
|
%{_kf5_bindir}/startplasma-x11
|
||||||
|
%if 0%{?startkde}
|
||||||
|
%{_kf5_bindir}/startkde
|
||||||
|
%endif
|
||||||
|
%if ! %{with wayland_default}
|
||||||
|
%{_datadir}/xsessions/plasma.desktop
|
||||||
|
%else
|
||||||
|
%{_datadir}/xsessions/plasmax11.desktop
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 15 2022 misaka00251 <misaka00251@misakanet.cn> - 5.25.5-1
|
||||||
|
- Init package
|
||||||
4
plasma-workspace.yaml
Normal file
4
plasma-workspace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: KDE/plasma-workspace
|
||||||
|
tag_prefix: "^v"
|
||||||
|
separator: "."
|
||||||
2
spice-vdagent.conf
Normal file
2
spice-vdagent.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Unit]
|
||||||
|
Wants=spice-vdagent.service
|
||||||
3
ssh-agent.conf
Normal file
3
ssh-agent.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[Unit]
|
||||||
|
Before=ssh-agent.service
|
||||||
|
Wants=ssh-agent.service
|
||||||
2
startkderc
Normal file
2
startkderc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[General]
|
||||||
|
systemdBoot=true
|
||||||
Loading…
x
Reference in New Issue
Block a user