Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
plasma5-openSUSE
plasma5-openSUSE.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plasma5-openSUSE.spec of Package plasma5-openSUSE
# # spec file for package plasma5-openSUSE # # Copyright (c) 2016 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 http://bugs.opensuse.org/ # %define plasma_version 5.8.2 Name: plasma5-openSUSE Version: 42.1.1 Release: 0 Summary: openSUSE KDE Extension License: GPL-2.0+ Group: System/GUI/KDE # git clone git://github.com/openSUSE/kdebase-opensuse.git Url: http://www.opensuse.org/ # 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: plasma5-openSUSE-13.2.tar.xz # Diff between /usr/share/plasma/look-and-feel/org.kde.breeze.desktop # and /usr/share/plasma/look-and-feel/org.openSUSE.desktop Source2: lookandfeel.diff # 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 # and /usr/share/plasma/layout-templates/org.opensuse.desktop.defaultPanel 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 # sddm theme preview picture Source6: preview.png # Script to update all .diff files from a system with this package installed Source100: update_diffs.sh BuildRequires: breeze5-icons BuildRequires: fdupes BuildRequires: kf5-filesystem BuildRequires: oxygen5-icon-theme BuildRequires: plasma5-desktop >= %plasma_version BuildRequires: plasma5-desktop-branding-upstream >= %plasma_version BuildRequires: plasma5-workspace >= %plasma_version BuildRequires: plasma5-workspace-branding-upstream >= %plasma_version BuildRequires: rsync BuildRequires: wallpaper-branding-openSUSE BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This package contains the standard openSUSE desktop and extensions. %package -n plasma5-workspace-branding-openSUSE Summary: openSUSE branded KDE settings Group: System/GUI/KDE PreReq: %fillup_prereq Supplements: packageand(plasma5-workspace:branding-openSUSE) Provides: plasma5-workspace-branding = %plasma_version Requires: plasma5-defaults-openSUSE Requires: plasma5-workspace >= %plasma_version Requires: wallpaper-branding-openSUSE %if 0%{?suse_version} >= 1315 && 0%{?suse_version} != 1320 Provides: kdebase4-openSUSE = %{version} Provides: kdebase4-openSUSE-lang = %{version} Provides: kdebase4-runtime-branding-openSUSE = %{version} Provides: kdebase4-workspace-branding-openSUSE = %{version} Obsoletes: kdebase4-openSUSE < %{version} Obsoletes: kdebase4-openSUSE-lang < %{version} Obsoletes: kdebase4-runtime-branding-openSUSE < %{version} Obsoletes: kdebase4-workspace-branding-openSUSE < %{version} %else Conflicts: kdebase4-openSUSE Conflicts: kdebase4-workspace-branding-openSUSE %endif %description -n plasma5-workspace-branding-openSUSE This package does not contain anything by itself, but pulls in default settings and extensions for the standard openSUSE desktop. %package -n plasma5-defaults-openSUSE Summary: Default settings for KDE Plasma 5 Group: System/GUI/KDE Requires: plasma5-theme-openSUSE %description -n plasma5-defaults-openSUSE This package changes the default settings of Plasma 5. %package -n plasma5-theme-openSUSE Summary: Plasma 5 theme for openSUSE Group: System/GUI/KDE Provides: plasma5-desktop-branding-openSUSE = %{version} Obsoletes: plasma5-desktop-branding-openSUSE < %{version} Conflicts: kdebase4-openSUSE < %{version} Conflicts: kdebase4-workspace-branding-openSUSE < %{version} Requires: wallpaper-branding-openSUSE Requires(pre): coreutils %description -n plasma5-theme-openSUSE This package contains the Plasma 5 Look-and-feel package for openSUSE. %package -n sddm-theme-openSUSE Summary: SDDM theme for openSUSE Group: System/GUI/KDE Requires: libqt5-qtquickcontrols Requires: plasma-framework-components Requires: wallpaper-branding-openSUSE %description -n sddm-theme-openSUSE This package contains a version of the Breeze SDDM theme customized for openSUSE. %prep %setup -q -n %{name} %build %install # Defaults mv config-files/COPYING . cp -a config-files/* %{buildroot} %fdupes %{buildroot}/%{_kf5_plasmadir}/desktoptheme # Distro icon (kinfocenter) echo -e "[General]\nLogoPath=%{_kf5_sharedir}/icons/hicolor/128x128/apps/SUSEgreeter.png\nWebsite=http://www.opensuse.org/" > %{buildroot}/%{_kf5_configdir}/kcm-about-distrorc # Look-and-feel package (copy over everything that is not already in the .tar, then apply patch) rsync -av --ignore-existing %{_kf5_plasmadir}/look-and-feel/org.kde.breeze.desktop/ %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/ pushd %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/ patch -p2 -i %{SOURCE2} popd # Same for the SDDM theme mkdir -p %{buildroot}%{_kf5_sharedir}/sddm/themes/ cp -R %{_datadir}/sddm/themes/breeze %{buildroot}%{_datadir}/sddm/themes/breeze-openSUSE pushd %{buildroot}%{_datadir}/sddm/themes/breeze-openSUSE patch -p2 -i %{SOURCE3} popd # Copy over preview picture cp %{SOURCE6} %{buildroot}%{_datadir}/sddm/themes/breeze-openSUSE mkdir -p %{buildroot}%{_kf5_plasmadir}/layout-templates/ cp -R %{_kf5_plasmadir}/layout-templates/org.kde.plasma.desktop.defaultPanel %{buildroot}%{_kf5_plasmadir}/layout-templates/org.opensuse.desktop.defaultPanel pushd %{buildroot}%{_kf5_plasmadir}/layout-templates/org.opensuse.desktop.defaultPanel patch -p2 -i %{SOURCE4} popd # Single file for the layout, so we can use patch -o mkdir -p %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/ patch -o %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js -i %{SOURCE5} %{_kf5_plasmadir}/shells/org.kde.plasma.desktop/contents/layout.js chmod 644 %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/layouts/org.kde.plasma.desktop-layout.js # components was a symlink before, but this package contains it as a directory. # RPM does not like that, so we keep it as a symlink but change the target mv %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/{components,components-real} ln -s components-real %{buildroot}%{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/components %pre -n plasma5-theme-openSUSE # RPM does not like to overwrite a directory with a symlink (KUF and 42.2 Beta 3 have the directory) if [ -d %{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/components ] && \ ! [ -L %{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/components ]; then mv %{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/{components,components-real} ln -s components-real %{_kf5_plasmadir}/look-and-feel/org.openSUSE.desktop/contents/components fi %files %defattr(-,root,root) %files -n plasma5-workspace-branding-openSUSE %defattr(-,root,root) %doc COPYING %files -n plasma5-defaults-openSUSE %defattr(-,root,root) %doc COPYING %config %{_kf5_configdir}/*rc %config %{_kf5_configdir}/kdeglobals %files -n sddm-theme-openSUSE %defattr(-,root,root) %doc COPYING %{_kf5_sharedir}/sddm/themes %files -n plasma5-theme-openSUSE %defattr(-,root,root) %doc COPYING %{_kf5_plasmadir}/ %{_kf5_servicesdir}/ %{_kf5_sharedir}/color-schemes/ %{_kf5_sharedir}/icons/*/*/*/*.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor