Harald Hoyer 53404a
From 4dbb4dc5bce6617824c38b2adc251b1add27d017 Mon Sep 17 00:00:00 2001
Harald Hoyer 53404a
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Harald Hoyer 53404a
Date: Mon, 7 Nov 2016 11:10:12 +0100
Harald Hoyer 53404a
Subject: [PATCH] Use versioned Obsoletes
Harald Hoyer 53404a
Harald Hoyer 53404a
Also change <= N to < N+1. For example, dracut-029-1 > dracut-029, so would not
Harald Hoyer 53404a
get obsoleted properly. This all applies to old versions, so doesn't make much
Harald Hoyer 53404a
difference in practice, so just fix it to avoid c&p duplication of the bad
Harald Hoyer 53404a
pattern in the future.
Harald Hoyer 53404a
---
Harald Hoyer 53404a
 dracut.spec | 22 +++++++++++-----------
Harald Hoyer 53404a
 1 file changed, 11 insertions(+), 11 deletions(-)
Harald Hoyer 53404a
Harald Hoyer 53404a
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 53404a
index 7b9d675..0515006 100644
Harald Hoyer 53404a
--- a/dracut.spec
Harald Hoyer 53404a
+++ b/dracut.spec
Harald Hoyer 53404a
@@ -33,7 +33,7 @@ License: GPLv2+ and LGPLv2+
Harald Hoyer 53404a
 URL: https://dracut.wiki.kernel.org/
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 # Source can be generated by
Harald Hoyer 53404a
-# http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%{version};sf=tgz
Harald Hoyer 53404a
+# http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%%{version};sf=tgz
Harald Hoyer 53404a
 Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
Harald Hoyer 53404a
 Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
Harald Hoyer 53404a
 
Harald Hoyer 53404a
@@ -68,10 +68,10 @@ BuildRequires: asciidoc
Harald Hoyer 53404a
 %if 0%{?fedora} > 12 || 0%{?rhel}
Harald Hoyer 53404a
 # no "provides", because dracut does not offer
Harald Hoyer 53404a
 # all functionality of the obsoleted packages
Harald Hoyer 53404a
-Obsoletes: mkinitrd <= 6.0.93
Harald Hoyer 53404a
-Obsoletes: mkinitrd-devel <= 6.0.93
Harald Hoyer 53404a
-Obsoletes: nash <= 6.0.93
Harald Hoyer 53404a
-Obsoletes: libbdevid-python <= 6.0.93
Harald Hoyer 53404a
+Obsoletes: mkinitrd < 6.0.94
Harald Hoyer 53404a
+Obsoletes: mkinitrd-devel < 6.0.94
Harald Hoyer 53404a
+Obsoletes: nash < 6.0.94
Harald Hoyer 53404a
+Obsoletes: libbdevid-python < 6.0.94
Harald Hoyer 53404a
 %endif
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 %if 0%{?fedora} > 16 || 0%{?rhel} > 6
Harald Hoyer 53404a
@@ -86,9 +86,9 @@ Provides: mkinitrd = 2.6.1
Harald Hoyer 53404a
 Obsoletes: dracut-kernel < 005
Harald Hoyer 53404a
 Provides:  dracut-kernel = %{version}-%{release}
Harald Hoyer 53404a
 
Harald Hoyer 53404a
-Obsoletes: dracut <= 029
Harald Hoyer 53404a
-Obsoletes: dracut-norescue
Harald Hoyer 53404a
-Provides:  dracut-norescue
Harald Hoyer 53404a
+Obsoletes: dracut < 030
Harald Hoyer 53404a
+Obsoletes: dracut-norescue < 030
Harald Hoyer 53404a
+Provides:  dracut-norescue = %{version}-%{release}
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 Requires: bash >= 4
Harald Hoyer 53404a
 Requires: coreutils
Harald Hoyer 53404a
@@ -195,8 +195,8 @@ initramfs with dracut, with live image capabilities, like Live CDs.
Harald Hoyer 53404a
 %package config-generic
Harald Hoyer 53404a
 Summary: dracut configuration to turn off hostonly image generation
Harald Hoyer 53404a
 Requires: %{name} = %{version}-%{release}
Harald Hoyer 53404a
-Obsoletes: dracut-nohostonly
Harald Hoyer 53404a
-Provides:  dracut-nohostonly
Harald Hoyer 53404a
+Obsoletes: dracut-nohostonly < 030
Harald Hoyer 53404a
+Provides:  dracut-nohostonly = %{version}-%{release}
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 %description config-generic
Harald Hoyer 53404a
 This package provides the configuration to turn off the host specific initramfs
Harald Hoyer 53404a
@@ -205,7 +205,7 @@ generation with dracut and generates a generic image by default.
Harald Hoyer 53404a
 %package config-rescue
Harald Hoyer 53404a
 Summary: dracut configuration to turn on rescue image generation
Harald Hoyer 53404a
 Requires: %{name} = %{version}-%{release}
Harald Hoyer 53404a
-Obsoletes: dracut <= 029
Harald Hoyer 53404a
+Obsoletes: dracut < 030
Harald Hoyer 53404a
 
Harald Hoyer 53404a
 %description config-rescue
Harald Hoyer 53404a
 This package provides the configuration to turn on the rescue initramfs