From 25fd9f80d642e62ca834b55e19b262e9a2ed35ff Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 18 Mar 2021 15:04:14 +0100 Subject: [PATCH] Make -extras subpackage require the main package This makes it possible to drop the move-adwaita-backgrounds.patch which we previously needed to constantly rebase every time when updating the package. What the patch did was to remove adwaita entries from the xml in -extras to make the two subpackages truly independant. However, what I believe was the intention here when Ryan originally did the split was to make it possible to install adwaita backgrounds by default, and leave the rest of the GNOME backgrounds off from the install media. If we now make the -extras package require the main gnome-backgrounds, this still makes the main package independant from -extras (so it can be installed by default), but it also means that we can drop the patch as it was only needed to make gnome-backgrounds-extras independantly installable from main gnome-bakgrounds subpackage -- but we only care about the opposite case, which is making gnome-backgrounds independently installable without gnome-backgrounds-extras. --- gnome-backgrounds.spec | 8 +++----- move-adwaita-backgrounds.patch | 18 ------------------ 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 move-adwaita-backgrounds.patch diff --git a/gnome-backgrounds.spec b/gnome-backgrounds.spec index 77dea9e..635c040 100644 --- a/gnome-backgrounds.spec +++ b/gnome-backgrounds.spec @@ -9,8 +9,6 @@ License: GPLv2 URL: http://www.gnome.org Source0: https://download.gnome.org/sources/%{name}/40/%{name}-%{tarball_version}.tar.xz -Patch0: move-adwaita-backgrounds.patch - BuildArch: noarch BuildRequires: gettext BuildRequires: meson @@ -24,7 +22,7 @@ for the GNOME Desktop version %package extras Summary: Additional GNOME Backgrounds -License: GPLv2 +Requires: %{name} = %{version}-%{release} # Make sure both gnome-backgrounds and -extras get installed on upgrades Obsoletes: gnome-backgrounds < 3.24.0-3 @@ -57,8 +55,6 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale %{_datadir}/backgrounds/gnome/adwaita-timed.xml %files extras -%license COPYING -%doc AUTHORS NEWS README.md %{_datadir}/gnome-background-properties/gnome-backgrounds.xml %{_datadir}/backgrounds/gnome/ColdWarm.jpg %{_datadir}/backgrounds/gnome/DepthLava.png @@ -75,6 +71,8 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale %changelog * Thu Mar 18 2021 Kalev Lember - 40~rc-1 - Update to 40.rc +- Make -extras subpackage require the main package +- Drop move-adwaita-backgrounds.patch * Tue Jan 26 2021 Fedora Release Engineering - 3.38.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/move-adwaita-backgrounds.patch b/move-adwaita-backgrounds.patch deleted file mode 100644 index 6c2859b..0000000 --- a/move-adwaita-backgrounds.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/backgrounds/gnome-backgrounds.xml.in b/backgrounds/gnome-backgrounds.xml.in -index 94caae6..3436592 100644 ---- a/backgrounds/gnome-backgrounds.xml.in -+++ b/backgrounds/gnome-backgrounds.xml.in -@@ -41,13 +41,6 @@ - @BACKGROUNDDIR@/IceCrystals.jpg - zoom - #ffffff -- #000000 -- -- -- 7 -- @BACKGROUNDDIR@/adwaita-timed.xml -- zoom -- #ffffff - #000000 - -