@ -2,7 +2,7 @@
# repo or arch where there's no package that would provide plasmashell
#global bootstrap 1
%global kf5_version_min 5.82 .0
%global kf5_version_min 5.9 8.0
# Control wayland by default
%if (0%{?rhel} && 0%{?rhel} < 9)
@ -12,7 +12,7 @@
%endif
# Control sddm wayland by default
%if (0%{?fedora} && 0%{?fedora} < 37 ) || (0%{?rhel} && 0%{?rhel} < 9)
%if (0%{?fedora} && 0%{?fedora} < 38 ) || (0%{?rhel} && 0%{?rhel} < 9)
%bcond_with sddm_wayland_default
%else
%bcond_without sddm_wayland_default
@ -27,8 +27,8 @@
Name: plasma-workspace
Summary: Plasma workspace, applications and applets
Version: 5.24.6
Release: 2 %{?dist}
Version: 5.26.4.1
Release: 1 %{?dist}
License: GPLv2+
URL: https://invent.kde.org/plasma/%{name}
@ -52,10 +52,6 @@ Source10: kde
Source11: startkderc
Source15: fedora.desktop
# backported breeze sddm from plasma 5.24.80~pre
# lets us apply patches to fix the sddm theme
Source19: sddm-theme-5.24.80~pre.tar.gz
# breeze fedora sddm theme components
# includes f25-based preview (better than breeze or nothing at least)
Source20: breeze-fedora-0.2.tar.gz
@ -71,13 +67,15 @@ Source41: spice-vdagent.conf
## upstreamable Patches
## downstream Patches
Patch100: plasma-workspace-konsole-in-contextmenu.patch
Patch101: plasma-workspace-5.24.0-set-fedora-default-look-and-feel.patch
# default to folderview (instead of desktop) containment, see also
# https://mail.kde.org/pipermail/distributions/2016-July/000133.html
# and example,
# https://github.com/notmart/artwork-lnf-netrunner-core/blob/master/usr/share/plasma/look-and-feel/org.kde.netrunner-core.desktop/contents/defaults
Patch105: plasma-workspace-5.21.90-folderview_layout.patch
# default to enable open terminal action
Patch106: plasma-workspace-5.25.90-enable-open-terminal-action.patch
# default to enable the lock/logout actions
Patch107: plasma-workspace-5.25.90-enable-lock-logout-action.patch
# udev
BuildRequires: zlib-devel
@ -120,16 +118,18 @@ BuildRequires: libqalculate-devel
%global kf5_pim 1
BuildRequires: kf5-kholidays-devel
BuildRequires: kf5-prison-devel
BuildRequires: libicu-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: polkit-qt5-1-devel
BuildRequires: kf5-rpm-macros >= %{kf5_version_min}
BuildRequires: systemd-rpm-macros
@ -148,7 +148,6 @@ 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}
# konsole patch
BuildRequires: kf5-kio-devel >= %{kf5_version_min}
BuildRequires: kf5-kjsembed-devel >= %{kf5_version_min}
BuildRequires: kf5-knewstuff-devel >= %{kf5_version_min}
@ -163,7 +162,7 @@ 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}
Requires: kf5-plasma%{?_isa} >= %{kf5_version_mi n}
BuildRequires: kf5-threadweaver-devel >= %{kf5_version_min}
BuildRequires: kf5-kded-devel >= %{kf5_version_min}
BuildRequires: kf5-kirigami2-devel >= %{kf5_version_min}
@ -187,7 +186,11 @@ BuildRequires: qt5-qtbase-static
BuildRequires: kuserfeedback-devel
BuildRequires: plasma-wayland-protocols-devel
BuildRequires: plasma-breeze-devel >= %{version}
# Commented out and hardcoded on the next line exclusively due to a re-spin
# with an extra .1 in the version
# Revert when possible (possibly on the next plasma-workspace release)
#BuildRequires: plasma-breeze-devel >= %{version}
BuildRequires: plasma-breeze-devel >= 5.25.3
BuildRequires: chrpath
BuildRequires: desktop-file-utils
@ -261,14 +264,12 @@ Requires: iceauth xrdb xprop
Requires: kde-settings-plasma
# Default look-and-feel theme
%global default_lookandfeel org.fedoraproject.fedora.desktop
Requires: plasma-lookandfeel-fedora = %{version}-%{release}
Requires: desktop-backgrounds-compat
Requires: systemd
# Oxygen
Requires: oxygen-sound-theme >= %{majmin_ver}
Requires: oxygen-sounds >= %{majmin_ver}
# PolicyKit authentication agent
Requires: polkit-kde >= %{majmin_ver}
@ -280,6 +281,10 @@ Requires: maliit-keyboard
Requires: (uresourced if systemd-oomd-defaults)
%endif
# needed for task manager thumbnails under wayland and for things like
# screenshare portal
BuildRequires: kpipewire-devel
# Require any plasmashell (plasma-desktop provides plasmashell(desktop))
%if 0%{?bootstrap}
Provides: plasmashell = %{version}
@ -383,7 +388,7 @@ Requires: %{name}-geolocation = %{version}-%{release}
Summary: SDDM breeze theme
# upgrade path, when sddm-breeze was split out
Obsoletes: plasma-workspace < 5.3.2-8
Requires: kf5-plasma >= %{_ kf5_version}
Requires: kf5-plasma >= %{kf5_version_mi n}
# Background.qml:import QtQuick
Requires: qt5-qtquickcontrols
# on-screen keyboard
@ -393,8 +398,10 @@ Recommends: qt5-qtvirtualkeyboard
# org.kde.plasma.workspace.keyboardlayout
Requires: %{name} = %{version}-%{release}
# /usr/share/backgrounds/default.png
%if 0%{?fedora}
BuildRequires: desktop-backgrounds-compat
Requires: desktop-backgrounds-compat
%endif
%if 0%{?rhel}
Requires: system-logos
%endif
@ -462,27 +469,15 @@ BuildArch: noarch
%prep
%setup -q -a 19 -a 20
## upstream patches
## upstreamable patches
## downstream patches
%patch100 -p1 -b .konsole-in-contextmenu
# XXX: This is horribly broken and needs fixes upstream -- ngompa
%patch101 -p1 -b .set-fedora-default-look-and-feel
sed -i -e "s|@DEFAULT_LOOKANDFEEL@|%{?default_lookandfeel}%{!?default_lookandfeel:org.kde.breeze.desktop}|g" \
shell/packageplugins/lookandfeel/lookandfeel.cpp startkde/startplasma.cpp
%patch105 -p1
%autosetup -a 20 -p1
# Populate initial lookandfeel package
cp -a lookandfeel lookandfeel.fedora
cp -a lookandfeel/org.kde.breeze lookandfeel/org.fedoraproject.fedora
# Overwrite settings to configure twilight mode
cp -a lookandfeel.twilight/* lookandfeel.fedora
install -m 0644 %{SOURCE15} lookandfeel.fedora/metadata.desktop
cat >> CMakeLists.txt <<EOL
plasma_install_package(lookandfeel .fedora org.fedoraproject.fedora.desktop look-and-feel lookandfeel)
cp -a lookandfeel/org.kde.breezetwilight/* lookandfeel/org.fedoraproject.fedora
install -m 0644 %{SOURCE15} lookandfeel/org.fedoraproject.fedora/metadata.desktop
cat >> lookandfeel/CMakeLists.txt <<EOL
plasma_install_package(org.fedoraproject.fedora org.fedoraproject.fedora.desktop look-and-feel lookandfeel)
EOL
@ -518,11 +513,9 @@ ln -sf %{_datadir}/backgrounds/default.png \
%{buildroot}%{_datadir}/sddm/themes/01-breeze-fedora/components/artwork/background.png
install -m644 -p breeze-fedora/* \
%{buildroot}%{_datadir}/sddm/themes/01-breeze-fedora/
%if 0%{?fedora} >= 34
# Set Fedora distro vendor logo
sed -i -e 's|^showlogo=.*$|showlogo=shown|g' %{buildroot}%{_datadir}/sddm/themes/01-breeze-fedora/theme.conf
sed -i -e 's|^logo=.*$|logo=%{_datadir}/pixmaps/fedora_whitelogo.svg|g' %{buildroot}%{_datadir}/sddm/themes/01-breeze-fedora/theme.conf
%endif
# move sddm configuration snippet to the right place
mkdir -p %{buildroot}%{_prefix}/lib/sddm
@ -580,6 +573,7 @@ fi
%{_kf5_bindir}/plasma_session
%{_kf5_bindir}/plasma-apply-*
%{_kf5_bindir}/plasma-interactiveconsole
%{_kf5_bindir}/plasma-localegen-helper
%{_kf5_bindir}/plasma-shutdown
%{_kf5_bindir}/plasma_waitforname
%{_kf5_bindir}/systemmonitor
@ -596,8 +590,8 @@ fi
%{_libexecdir}/kfontprint
%{_libexecdir}/plasma-changeicons
%{_libexecdir}/plasma-dbus-run-session-if-needed
%{_kf5_datadir}/ksplash/
%{_kf5_datadir}/plasma/avatars/
%{_kf5_datadir}/plasma/nightcolor/
%{_kf5_datadir}/plasma/plasmoids/
%{_kf5_datadir}/plasma/services/
%{_kf5_datadir}/plasma/wallpapers/
@ -616,7 +610,9 @@ fi
%{_datadir}/desktop-directories/*.directory
%{_datadir}/dbus-1/services/*.service
%{_datadir}/dbus-1/system-services/org.kde.fontinst.service
%{_datadir}/dbus-1/system-services/org.kde.localegenhelper.service
%{_datadir}/dbus-1/system.d/org.kde.fontinst.conf
%{_datadir}/dbus-1/system.d/org.kde.localegenhelper.conf
%{_datadir}/knsrcfiles/*.knsrc
%{_datadir}/kfontinst/icons/hicolor/*/actions/*font*.png
%{_datadir}/konqsidebartng/virtual_folders/services/fonts.desktop
@ -624,7 +620,7 @@ fi
%{_datadir}/kxmlgui5/kfontview/kfontviewpart.rc
%{_datadir}/kxmlgui5/kfontview/kfontviewui.rc
%{_kf5_datadir}/kservices5/ServiceMenus/installfont.desktop
%{_kf5_datadir}/kservices5/ServiceM enus/setaswallpaper.desktop
%{_kf5_datadir}/kio/servicem enus/setaswallpaper.desktop
%{_kf5_datadir}/kservices5/*.desktop
%{_kf5_datadir}/kservicetypes5/*.desktop
%{_kf5_datadir}/knotifications5/*.notifyrc
@ -646,7 +642,6 @@ fi
%{_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/
@ -655,11 +650,12 @@ fi
%{_kf5_datadir}/kpackage/kcms/kcm_lookandfeel/
%{_kf5_datadir}/kpackage/kcms/kcm_nightcolor/
%{_kf5_datadir}/kpackage/kcms/kcm_notifications/
%{_kf5_datadir}/kpackage/kcms/kcm_regionandlang/
%{_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
%{_kf5_datadir}/polkit-1/actions/org.kde.localegenhelper.policy
%{_userunitdir}/*.service
%{_userunitdir}/plasma-core.target
%dir %{_userunitdir}/plasma-core.target.d/
@ -786,14 +782,97 @@ fi
%changelog
* Fri Jul 29 2022 Troy Dawson <tdawson@redhat.com> - 5.24.6-2
- Build plasma-lookandfeel-fedora on everything
* Tue Nov 29 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.4.1-1
- 5.26.4.1
* Tue Nov 29 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.4-1
- 5.26.4
* Wed Nov 09 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.3-1
- 5.26.3
* Mon Nov 07 2022 Marc Deop marcdeop@fedoraproject.org - 5.26.2-3
- BuildRequires for kpipewire-devel
* Sat Nov 05 2022 Marc Deop marcdeop@fedoraproject.org - 5.26.2-2
- Require kpipewire
* Wed Oct 26 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.2-1
- 5.26.2
* Tue Oct 18 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.1-1
- 5.26.1
* Thu Oct 06 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.26.0-1
- 5.26.0
* Sun Sep 25 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.25.90-2
- Add Fedora patches to change default desktop context menu configuration
+ Enable "Open Terminal" action
+ Enable "Lock" and "Logout" actions
* Sat Sep 17 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.90-1
- 5.25.90
* Wed Sep 07 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.5-1
- 5.25.5
* Wed Jul 13 2022 Troy Dawson <tdawson@redhat.com> - 5.24.6-1
- Update to 5.24.6
* Fri Aug 26 2022 Adam Williamson <awilliam@redhat.com> - 5.25.4-2
- Disable sddm-on-wayland for F37 (#2110801)
* Wed Aug 03 2022 Justin Zobel <justin@1707.io> - 5.25.4-1
- Update to 5.25.4
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 5.25.3.1-8
- Rebuilt for ICU 71.1
* Wed Jul 27 2022 Troy Dawson <tdawson@redhat.com> - 5.25.3.1-7
- Add BuildRequires libicu-devel - enables this code
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1725
* Mon Jul 25 2022 Jan Grulich <jgrulich@redhat.com> - 5.25.3.1-6
- Rebuild (qt5)
* Sun Jul 24 2022 Yaroslav Sidlovsky <zawertun@gmail.com> - 5.25.3.1-5
- Added patch to fix #457019
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jul 20 2022 Jan Grulich <jgrulich@redhat.com> - 5.25.3.1-3
- Disable toplevel fixed positions on Wayland
* Thu Jul 14 2022 Jan Grulich <jgrulich@redhat.com> - 5.25.3.1-2
- Rebuild (qt5)
* Tue Jul 12 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.3.1-1
- 5.25.3.1
* Tue Jul 12 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.3-1
- 5.25.3
* Tue Jun 28 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.2-1
- 5.25.2
* Tue Jun 21 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.1-1
- 5.25.1
* Tue Jun 14 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.25.0-2
- Remove broken mechanism for setting default look and feel
- Always ship Fedora look and feel theme
- Drop unneeded sddm theme snapshot and patches
* Thu Jun 09 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.25.0-1
- 5.25.0
* Fri May 20 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.24.90-1
- 5.24.90
* Tue May 17 2022 Jan Grulich <jgrulich@redhat.com> - 5.24.5-3
- Rebuild (qt5)
* Thu Jun 16 2022 Troy Dawson <tdawson@redhat.com> - 5.24.5-1.1
- Enable selinuxuser_execmod (#2058657)
* Fri May 06 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 5.24.5-2
- Rebuild for new gpsd
* Tue May 03 2022 Marc Deop <marcdeop@fedoraproject.org> - 5.24.5-1
- 5.24.5