Sync from SUSE:SLFO:Main desktop-data-SLE revision f0d5af8844ad753e339a778a4da0fa48

This commit is contained in:
Adrian Schröter 2024-05-03 12:02:11 +02:00
commit f4b3ea7609
6 changed files with 1329 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

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">git://github.com/openSUSE/desktop-data.git</param>
<param name="filename">desktop-data</param>
<param name="version">15</param>
<param name="exclude">update_rpm</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
desktop-data-15.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

1116
desktop-data-SLE.changes Normal file

File diff suppressed because it is too large Load Diff

9
desktop-data-SLE.fillup Normal file
View File

@ -0,0 +1,9 @@
## Type: string
## Default:
## Path: Desktop
## Description: default mouse cursor theme
#
# Name of mouse cursor theme for X11. Possible themes can be found
# in /usr/share/icons/
#
X_MOUSE_CURSOR="DMZ"

164
desktop-data-SLE.spec Normal file
View File

@ -0,0 +1,164 @@
#
# spec file for package desktop-data-SLE
#
# 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/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: desktop-data-SLE
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: perl-RPC-XML
BuildRequires: update-desktop-files
BuildRequires: xdg-menu
BuildRequires: xdg-utils
Version: 15
Release: 0
Summary: Shared Desktop Files for SLE
License: GPL-2.0+
Group: System/GUI/Other
Obsoletes: susewm
Provides: desktop-data
PreReq: /bin/rm
PreReq: %fillup_prereq
# some soft Requires: Crystalcursors
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: hicolor-icon-theme
Requires: xdg-utils
# This is the default cursor theme we reference in /etc/sysconfig/windowmanager
Requires: dmz-icon-theme-cursors
Requires: wallpaper-branding = %{version}
Source: desktop-data-%{version}.tar.xz
Source1: %name.fillup
BuildArch: noarch
Provides: desktop-branding = %{version}
%description
This package contains shared desktop files, like the default
applications menu structure and the default wallpaper.
%package extra
Summary: Additional wallpapers
Group: System/GUI/Other
Requires: desktop-data-SLE
Enhances: desktop-data-SLE
%description extra
This package contains additional wallpapers.
%prep
%setup -n desktop-data-%{version}
%build
# Convert KDE style wallpaper desktop files to gnome-wp-list
mkdir -p usr/share/gnome-background-properties
cat >usr/share/gnome-background-properties/desktop-data-SLE-extra.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
EOF
for i in usr/share/wallpapers/*.desktop
do
IMG=${i#desktop-data}
IMG=${IMG%.desktop}
sed -n >>usr/share/gnome-background-properties/desktop-data-SLE-extra.xml <$i '
1i \
<wallpaper deleted="false">
$a \
</wallpaper>
s@^Name=\(.*\)@ <name>\1</name>@p
s@^Name\[\([^]]*\)\]=\(.*\)@ <name xml:lang="\1">\2</name>@p
s@^File=\(.*\)@ <filename>/usr/share/wallpapers/\1</filename>\
<options>stretched</options>@p
s@^X-GNOME-WP-Shade-Type=\(.*\)@ <shade_type>\1</shade_type>@p
s@^X-GNOME-WP-PColor=\(.*\)@ <pcolor>\1</pcolor>@p
s@^X-GNOME-WP-SColor=\(.*\)@ <scolor>\1</scolor>@p
'
# And finally delete X-GNOME-WP-* entries, not needed for KDE style desktop files.
sed -i '/^X-GNOME-WP-/d' $i
done
cat >>usr/share/gnome-background-properties/desktop-data-SLE-extra.xml <<EOF
</wallpapers>
EOF
# FATE# 320506 Disable "Novell" branding in wallpaper qzhao@suse.com -- Novell branding is no
# longer used in SLE-Desktop.
rm -f usr/share/wallpapers/curvy2.png
rm -f usr/share/wallpapers/curvy2.png.desktop
%install
cp -a * $RPM_BUILD_ROOT/
mkdir -p $RPM_BUILD_ROOT/etc/xdg/menus/applications-merged
for i in $RPM_BUILD_ROOT/usr/share/desktop-directories/*.directory $RPM_BUILD_ROOT/usr/share/wallpapers/*.desktop
do
%suse_update_desktop_file "$i"
done
#
# define default mouse cursor
#
mkdir -p $RPM_BUILD_ROOT%{_fillupdir}/
install -m 0644 %SOURCE1 \
$RPM_BUILD_ROOT%{_fillupdir}/sysconfig.windowmanager-%name
#
# is it a valid menu ?
#
export XDG_DATA_DIRS=$RPM_BUILD_ROOT/usr/share/
export XDG_CONFIG_DIRS=$RPM_BUILD_ROOT/etc/xdg/
xdg_menu --die-on-error --format readable
#
# make call-browser executable, symlink
mkdir -p $RPM_BUILD_ROOT/usr/bin
ln -snf xdg-open $RPM_BUILD_ROOT/usr/bin/call-browser
ln -snf xdg-open $RPM_BUILD_ROOT/usr/bin/desktop-launch
#
# fdupes
%fdupes $RPM_BUILD_ROOT/usr/share/icons
%fdupes $RPM_BUILD_ROOT/usr/share/pixmaps
%post
%{fillup_only -an windowmanager}
%files
%defattr(-,root,root)
%dir /etc/xdg/menus
%dir /etc/xdg/menus/applications-merged
%config(noreplace) /etc/xdg/menus/*.menu
/usr/share/desktop-*
/usr/share/icons/hicolor/*/*/*
%dir /usr/share/icons/oxygen
%dir /usr/share/icons/oxygen/32x32
%dir /usr/share/icons/oxygen/32x32/apps
/usr/share/icons/oxygen/*/*/*
/usr/share/pixmaps/*
/etc/profile.d/desktop-data.*
%{_fillupdir}/sysconfig.windowmanager-%name
/usr/bin/call-browser
/usr/bin/desktop-launch
/etc/skel/public_html
%dir /etc/kde4
%dir /etc/kde4/kdm
%config /etc/kde4/kdm/backgroundrc
%files extra
%defattr(-,root,root)
/usr/share/gnome-background-properties/desktop-data-SLE-extra.xml
/usr/share/wallpapers/
# FIXME: It should be owned by a different package:
%dir /usr/share/gnome-background-properties
%changelog