|
|
|
@ -10,7 +10,6 @@
@@ -10,7 +10,6 @@
|
|
|
|
|
|
|
|
|
|
%global rh_backgrounds_version 15 |
|
|
|
|
%global waves_version 0.1.2 |
|
|
|
|
%global fedora_release_name f39 |
|
|
|
|
%global gnome_default default |
|
|
|
|
%global picture_ext png |
|
|
|
|
|
|
|
|
@ -28,7 +27,7 @@ Source6: FedoraWaves-metadata.desktop
@@ -28,7 +27,7 @@ Source6: FedoraWaves-metadata.desktop
|
|
|
|
|
BuildArch: noarch |
|
|
|
|
%if "x%{?picture_ext}" != "xpng" |
|
|
|
|
BuildRequires: ImageMagick |
|
|
|
|
BuildRequires: %{fedora_release_name}-backgrounds-base |
|
|
|
|
BuildRequires: powerel-backgrounds-base |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
@ -47,7 +46,7 @@ desktop background image.
@@ -47,7 +46,7 @@ desktop background image.
|
|
|
|
|
|
|
|
|
|
%package gnome |
|
|
|
|
Summary: The default Fedora wallpaper from GNOME desktop |
|
|
|
|
Requires: %{fedora_release_name}-backgrounds-gnome |
|
|
|
|
Requires: powerel-backgrounds-gnome |
|
|
|
|
# starting with this release, gnome uses picture-uri instead of picture-filename |
|
|
|
|
# see gnome bz #633983 |
|
|
|
|
Requires: gsettings-desktop-schemas >= 2.91.92 |
|
|
|
@ -59,7 +58,7 @@ The desktop-backgrounds-gnome package sets default background in gnome.
@@ -59,7 +58,7 @@ The desktop-backgrounds-gnome package sets default background in gnome.
|
|
|
|
|
|
|
|
|
|
%package compat |
|
|
|
|
Summary: The default Fedora wallpaper for less common DEs |
|
|
|
|
Requires: %{fedora_release_name}-backgrounds-base |
|
|
|
|
Requires: powerel-backgrounds-base |
|
|
|
|
Provides: system-backgrounds-compat = %{version}-%{release} |
|
|
|
|
License: CC-BY-SA |
|
|
|
|
|
|
|
|
@ -142,9 +141,9 @@ ln -s ../../../../backgrounds/waves/waves-wide-3-night.png 1920x1200.png
@@ -142,9 +141,9 @@ ln -s ../../../../backgrounds/waves/waves-wide-3-night.png 1920x1200.png
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas |
|
|
|
|
/bin/echo '[org.gnome.desktop.background]' > \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.background.fedora.gschema.override |
|
|
|
|
/bin/echo "picture-uri='file://%{_datadir}/backgrounds/%{fedora_release_name}/%{gnome_default}/%{fedora_release_name}-01-day.png'" >> \ |
|
|
|
|
/bin/echo "picture-uri='file://%{_datadir}/backgrounds/powerel/%{gnome_default}/powerel-01-day.png'" >> \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.background.fedora.gschema.override |
|
|
|
|
/bin/echo "picture-uri-dark='file://%{_datadir}/backgrounds/%{fedora_release_name}/%{gnome_default}/%{fedora_release_name}-01-night.png'" >> \ |
|
|
|
|
/bin/echo "picture-uri-dark='file://%{_datadir}/backgrounds/powerel/%{gnome_default}/powerel-01-night.png'" >> \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.background.fedora.gschema.override |
|
|
|
|
# Use the Fedora background on the GNOME lockscreen as well. Would be awesome to |
|
|
|
|
# have a separate image here to complement the default Fedora background, rather |
|
|
|
@ -152,42 +151,42 @@ mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas
@@ -152,42 +151,42 @@ mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas
|
|
|
|
|
# desktop backgrounds with GNOME lockscreens, and they just do not match at all. |
|
|
|
|
/bin/echo '[org.gnome.desktop.screensaver]' > \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.screensaver.fedora.gschema.override |
|
|
|
|
/bin/echo "picture-uri='file://%{_datadir}/backgrounds/%{fedora_release_name}/%{gnome_default}/%{fedora_release_name}-01-day.png'" >> \ |
|
|
|
|
/bin/echo "picture-uri='file://%{_datadir}/backgrounds/powerel/%{gnome_default}/powerel-01-day.png'" >> \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.screensaver.fedora.gschema.override |
|
|
|
|
/bin/echo "picture-uri-dark='file://%{_datadir}/backgrounds/%{fedora_release_name}/%{gnome_default}/%{fedora_release_name}-01-night.png'" >> \ |
|
|
|
|
/bin/echo "picture-uri-dark='file://%{_datadir}/backgrounds/powerel/%{gnome_default}/powerel-01-night.png'" >> \ |
|
|
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/10_org.gnome.desktop.screensaver.fedora.gschema.override |
|
|
|
|
# for KDE, this is handled in kde-settings |
|
|
|
|
# for XFCE, LXDE, etc. |
|
|
|
|
%if "x%{?picture_ext}" == "xpng" |
|
|
|
|
(cd %{buildroot}%{_datadir}/backgrounds/images; |
|
|
|
|
ln -s ../%{fedora_release_name}/default/%{fedora_release_name}-01-day.png \ |
|
|
|
|
ln -s ../powerel/default/powerel-01-day.png \ |
|
|
|
|
default.png |
|
|
|
|
ln -s ../%{fedora_release_name}/default/%{fedora_release_name}-01-day.png \ |
|
|
|
|
ln -s ../powerel/default/powerel-01-day.png \ |
|
|
|
|
default-5_4.png |
|
|
|
|
ln -s ../%{fedora_release_name}/default/%{fedora_release_name}-01-day.png \ |
|
|
|
|
ln -s ../powerel/default/powerel-01-day.png \ |
|
|
|
|
default-16_9.png |
|
|
|
|
ln -s ../%{fedora_release_name}/default/%{fedora_release_name}-01-day.png \ |
|
|
|
|
ln -s ../powerel/default/powerel-01-day.png \ |
|
|
|
|
default-16_10.png |
|
|
|
|
cd .. |
|
|
|
|
ln -s ./%{fedora_release_name}/default/%{fedora_release_name}-01-day.png \ |
|
|
|
|
ln -s ./powerel/default/powerel-01-day.png \ |
|
|
|
|
default.png |
|
|
|
|
) |
|
|
|
|
%else |
|
|
|
|
(cd %{buildroot}%{_datadir}/backgrounds/images; |
|
|
|
|
convert %{_datadir}/backgrounds/%{fedora_release_name}/default/%{fedora_release_name}.%{picture_ext} \ |
|
|
|
|
convert %{_datadir}/backgrounds/powerel/default/powerel.%{picture_ext} \ |
|
|
|
|
-alpha off default.png |
|
|
|
|
convert %{_datadir}/backgrounds/%{fedora_release_name}/default/%{fedora_release_name}.%{picture_ext} \ |
|
|
|
|
convert %{_datadir}/backgrounds/powerel/default/powerel.%{picture_ext} \ |
|
|
|
|
-alpha off default-5_4.png |
|
|
|
|
convert %{_datadir}/backgrounds/%{fedora_release_name}/default/%{fedora_release_name}.%{picture_ext} \ |
|
|
|
|
convert %{_datadir}/backgrounds/powerel/default/powerel.%{picture_ext} \ |
|
|
|
|
-alpha off default-16_9.png |
|
|
|
|
convert %{_datadir}/backgrounds/%{fedora_release_name}/default/%{fedora_release_name}.%{picture_ext} \ |
|
|
|
|
convert %{_datadir}/backgrounds/powerel/default/powerel.%{picture_ext} \ |
|
|
|
|
-alpha off default-16_10.png |
|
|
|
|
) |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# symlink for a default.xml background |
|
|
|
|
cd %{buildroot}%{_datadir}/backgrounds; |
|
|
|
|
ln -s %{fedora_release_name}/default/%{fedora_release_name}.xml\ |
|
|
|
|
ln -s powerel/default/powerel.xml\ |
|
|
|
|
default.xml |
|
|
|
|
|
|
|
|
|
%files basic |
|
|
|
|