1
0

Plasma 6 RC 2. Still untested...

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks/plasma6-openSUSE?expand=0&rev=1
This commit is contained in:
Luca Beltrame
2024-02-07 18:01:41 +00:00
committed by Git OBS Bridge
commit c643a5b3c3
11 changed files with 274 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

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/openSUSE/plasma-opensuse.git</param>
<param name="scm">git</param>
<param name="versionformat">84.87~git%ci~%h</param>
<param name="revision">plasma6-tumbleweed</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="disabled" name="set_version"/>
<service mode="buildtime" name="tar"/>
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

8
_servicedata Normal file
View File

@@ -0,0 +1,8 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://github.com/openSUSE/plasma-opensuse.git</param>
<param name="changesrevision">fffd234bf221fea4c4ad92dad18853c3b6207980</param></service><service name="tar_scm">
<param name="url">https://github.com/openSUSE/plasma-opensuse.git</param>
<param name="changesrevision">8b6e0ec23d1ec3d2be7ec8222e62da8aae49ed83</param></service><service name="tar_scm">
<param name="url">https://github.com/Vogtinator/plasma-opensuse.git</param>
<param name="changesrevision">bb8b1e7d53c575186ad1abd2314b0b8be6f9fd51</param></service></servicedata>

11
layout.diff Normal file
View File

@@ -0,0 +1,11 @@
diff --git a/usr/share/plasma/shells/org.kde.plasma.desktop/contents/main.js b/usr/share/plasma/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js
index e62f467..fabf4ef 100644
--- a/usr/share/plasma/shells/org.kde.plasma.desktop/contents/main.js
+++ b/usr/share/plasma/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js
@@ -1,5 +1,5 @@
-loadTemplate("org.kde.plasma.desktop.defaultPanel")
+loadTemplate("org.opensuse.desktop.defaultPanel")
var desktopsArray = desktopsForActivity(currentActivity());
for( var j = 0; j < desktopsArray.length; j++) {

20
panel.diff Normal file
View File

@@ -0,0 +1,20 @@
--- /usr/share/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js 2023-11-13 12:52:56.000000000 -0500
+++ /usr/share/plasma/layout-templates/org.opensuse.desktop.defaultPanel/contents/layout.js 2023-11-14 18:27:11.599802134 -0500
@@ -1,6 +1,8 @@
var panel = new Panel
var panelScreen = panel.screen
+panel.floating = false
+
// No need to set panel.location as ShellCorona::addPanel will automatically pick one available edge
// For an Icons-Only Task Manager on the bottom, *3 is too much, *2 is too little
@@ -22,6 +24,8 @@
}
var kickoff = panel.addWidget("org.kde.plasma.kickoff")
+kickoff.currentConfigGroup = ["General"]
+kickoff.writeConfig("icon", "start-here-branding")
kickoff.currentConfigGroup = ["Shortcuts"]
kickoff.writeConfig("global", "Alt+F1")

View File

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

4
plasma-opensuse.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: plasma-opensuse
version: 84.87~git20231124T150427~8b6e0ec
mtime: 1700834667
commit: 8b6e0ec23d1ec3d2be7ec8222e62da8aae49ed83

42
plasma6-openSUSE.changes Normal file
View File

@@ -0,0 +1,42 @@
-------------------------------------------------------------------
Wed Jan 31 17:37:47 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.93.0
-------------------------------------------------------------------
Wed Jan 17 18:39:47 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to 5.92.0
-------------------------------------------------------------------
Fri Nov 24 14:04:49 UTC 2023 - fabian@ritter-vogt.de
- Update to version 84.87~git20231124T150427~8b6e0ec:
* Remove font settings (except for fixed) from kdeglobals
-------------------------------------------------------------------
Sat Nov 18 17:33:41 UTC 2023 - fabian@ritter-vogt.de
- Update to version 84.87~git20231118T182337~13910c9:
* Recreate openSUSEdark color scheme based on breeze with accent color
-------------------------------------------------------------------
Wed Nov 15 23:20:03 UTC 2023 - Fabian Vogt <fabian@ritter-vogt.de>
- Update to version 84.87~git20231116T001840~81362d1:
* Don't set usersWallpapers in plasmarc
* Set the default wallpaper in the LnF
* Remove icons from desktopthemes
* Make LNF and panel metadata.json compatible with Plasma 6
* Make the SDDM theme Qt 6 compatible
* Add SDDM config to use the breeze-openSUSE theme
* Port splash screen to Qt 6
* Convert desktopthemes from metadata.desktop to metadata.json + plasmarc
* Remove openSUSEdefault desktop theme
* Remove obsolete search providers
* Remove obsolete files and settings
-------------------------------------------------------------------
Tue Nov 14 21:53:30 UTC 2023 - Fabian Vogt <fabian@ritter-vogt.de>
- Initial commit based on plasma5-openSUSE

136
plasma6-openSUSE.spec Normal file
View File

@@ -0,0 +1,136 @@
#
# spec file for package plasma6-openSUSE
#
# Copyright (c) 2023 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/
#
# Plasma 6 pulls in Qt 5 as well, tell qml-autoreqprov what to use
%global __qml_requires_opts --qtver 6
%global plasma_version 5.93.0
Name: plasma6-openSUSE
Version: 84.87~git20231124T150427~8b6e0ec
Release: 0
Summary: openSUSE Plasma 6 Branding Packages
License: CC-BY-SA-4.0 AND GPL-2.0-or-later
Group: System/GUI/KDE
URL: https://github.com/openSUSE/plasma-openSUSE
# We use diffs to be as close to upstream as possible and get
# fixes directly. For files that diverge too much from upstream,
# the .tar is the right place.
Source: plasma-opensuse-%{version}.tar.xz
# Diff between /usr/share/sddm/themes/breeze-openSUSE
# and /usr/share/sddm/themes/breeze
Source3: sddmtheme.diff
# Diff between /usr/share/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js
# and /usr/share/plasma/layout-templates/org.opensuse.desktop.defaultPanel/contents/layout.js
Source4: panel.diff
# Diff between /usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js
# and /usr/share/plasma/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js
Source5: layout.diff
BuildRequires: kf6-breeze-icons
BuildRequires: kf6-filesystem
BuildRequires: fdupes
BuildRequires: plasma6-desktop >= %{plasma_version}
#!BuildIgnore: kio-extras
#!BuildIgnore: kwin6
BuildRequires: plasma6-workspace >= %{plasma_version}
BuildRequires: rsync
BuildRequires: wallpaper-branding-openSUSE
BuildArch: noarch
%description
%package -n plasma6-branding-openSUSE
Summary: openSUSE settings for KDE Plasma 6
Group: System/GUI/KDE
Requires: distribution-logos-openSUSE-icons
Requires: plasma6-theme-openSUSE
Requires: (plasma6-sddm-theme-openSUSE if sddm)
Supplements: (plasma6-workspace and branding-openSUSE)
%description -n plasma6-branding-openSUSE
This package changes the default settings of Plasma 6.
%package -n plasma6-theme-openSUSE
Summary: Plasma 6 theme for openSUSE
Group: System/GUI/KDE
Requires: wallpaper-branding-openSUSE
Requires: plasma6-desktop >= %{plasma_version}
Requires: plasma6-workspace >= %{plasma_version}
%description -n plasma6-theme-openSUSE
This package contains the Plasma 6 Look-and-feel package for openSUSE.
%package -n plasma6-sddm-theme-openSUSE
Summary: SDDM theme for openSUSE
Group: System/GUI/KDE
Requires: sddm-qt6-branding-openSUSE
Requires: wallpaper-branding-openSUSE
%description -n plasma6-sddm-theme-openSUSE
This package contains a version of the Breeze SDDM theme customized
for openSUSE and enables it by default.
%prep
%setup -q -n plasma-opensuse-%{version}
%build
%install
# Defaults
cp -a config-files/* %{buildroot}
%fdupes %{buildroot}/%{_kf6_plasmadir}/desktoptheme
# Look-and-feel package (copy over everything that is not already in the .tar, then apply patch if there is one)
rsync -av --ignore-existing %{_kf6_plasmadir}/look-and-feel/org.kde.breeze.desktop/ %{buildroot}%{_kf6_plasmadir}/look-and-feel/org.openSUSE.desktop/
# Same for the SDDM theme
rsync -av --ignore-existing %{_datadir}/sddm/themes/breeze/ %{buildroot}%{_datadir}/sddm/themes/breeze-openSUSE/
pushd %{buildroot}%{_datadir}/sddm/themes/breeze-openSUSE
patch -p2 -i %{SOURCE3}
popd
# Same for the default panel
rsync -av --ignore-existing %{_kf6_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel/ %{buildroot}%{_kf6_plasmadir}/layout-templates/org.opensuse.desktop.defaultPanel/
patch -o %{buildroot}%{_kf6_plasmadir}/layout-templates/org.opensuse.desktop.defaultPanel/contents/layout.js -i %{SOURCE4} %{_kf6_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js
# And the desktop layout
mkdir -p %{buildroot}%{_kf6_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/
patch -o %{buildroot}%{_kf6_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js -i %{SOURCE5} %{_kf6_plasmadir}/shells/org.kde.plasma.desktop/contents/main.js
chmod 644 %{buildroot}%{_kf6_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js
%files -n plasma6-branding-openSUSE
%license COPYING
# TODO: Move to /usr/etc/xdg, once confirmed this works everywhere
%config %{_kf6_configdir}/*rc
%config %{_kf6_configdir}/kdeglobals
%files -n plasma6-theme-openSUSE
%license COPYING
%{_kf6_plasmadir}/
%{_kf6_sharedir}/color-schemes/
%{_kf6_sharedir}/icons/*
%files -n plasma6-sddm-theme-openSUSE
%license COPYING
%dir %{_kf6_sharedir}/sddm/
%dir %{_kf6_sharedir}/sddm/themes/
%{_kf6_sharedir}/sddm/themes/breeze-openSUSE/
%dir %{_prefix}/lib/sddm/
%dir %{_prefix}/lib/sddm/sddm.conf.d/
# This overrides 10-plasma.conf from sddm-qt6-branding-openSUSE
%{_prefix}/lib/sddm/sddm.conf.d/20-breeze-openSUSE.conf
%changelog

11
sddmtheme.diff Normal file
View File

@@ -0,0 +1,11 @@
diff --git a/breeze/theme.conf b/breeze-openSUSE/theme.conf
index 35c2a13..4d0709a 100644
--- a/breeze/theme.conf
+++ b/breeze-openSUSE/theme.conf
@@ -4,5 +4,5 @@
type=image
color=#1d99f3
fontSize=10
-background=/usr/share/wallpapers/Next/contents/images/5120x2880.png
+background=/usr/share/wallpapers/openSUSEdefault/contents/images/1920x1080.jpg
needsFullUserModel=false