Blame 0005-dracut.spec-remove-unnecessary-dependencies.patch

Harald Hoyer 6adbc8
From 828feae4f1814a915b2f7f362a5920322e0d6fcc Mon Sep 17 00:00:00 2001
Harald Hoyer 6adbc8
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 6adbc8
Date: Fri, 9 Dec 2011 10:28:40 +0100
Harald Hoyer 6adbc8
Subject: [PATCH] dracut.spec: remove unnecessary dependencies
Harald Hoyer 6adbc8
Harald Hoyer 6adbc8
Since the initramfs generation is done in %postrans of the kernel rpm,
Harald Hoyer 6adbc8
we can drop all hard requirements.
Harald Hoyer 6adbc8
Harald Hoyer 6adbc8
Also make some requirements a conflict to express the version
Harald Hoyer 6adbc8
dependency.
Harald Hoyer 6adbc8
---
Harald Hoyer 6adbc8
 dracut.spec |   24 ++----------------------
Harald Hoyer 6adbc8
 1 files changed, 2 insertions(+), 22 deletions(-)
Harald Hoyer 6adbc8
Harald Hoyer 6adbc8
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 6adbc8
index 91b62ee..1c50f37 100644
Harald Hoyer 6adbc8
--- a/dracut.spec
Harald Hoyer 6adbc8
+++ b/dracut.spec
Harald Hoyer 6adbc8
@@ -68,17 +68,15 @@ Requires: filesystem >= 2.1.0
Harald Hoyer 6adbc8
 Requires: findutils
Harald Hoyer 6adbc8
 Requires: grep
Harald Hoyer 6adbc8
 Requires: gzip
Harald Hoyer 6adbc8
-Requires: kbd
Harald Hoyer 6adbc8
 Requires: mktemp >= 1.5-5
Harald Hoyer 6adbc8
 Requires: module-init-tools >= 3.7-9
Harald Hoyer 6adbc8
 Requires: sed
Harald Hoyer 6adbc8
-Requires: tar
Harald Hoyer 6adbc8
 Requires: udev
Harald Hoyer 6adbc8
 Requires: util-linux >= 2.20
Harald Hoyer 6adbc8
 
Harald Hoyer 6adbc8
 %if 0%{?fedora} || 0%{?rhel} > 6
Harald Hoyer 6adbc8
-Requires: initscripts >= 8.63-1
Harald Hoyer 6adbc8
-Requires: plymouth >= 0.8.0-0.2009.29.09.19.1
Harald Hoyer 6adbc8
+Conflicts: initscripts < 8.63-1
Harald Hoyer 6adbc8
+Conflicts: plymouth < 0.8.0-0.2009.29.09.19.1
Harald Hoyer 6adbc8
 %endif
Harald Hoyer 6adbc8
 
Harald Hoyer 6adbc8
 %description
Harald Hoyer 6adbc8
@@ -91,24 +89,6 @@ NFS, iSCSI, NBD, FCoE with the dracut-network package.
Harald Hoyer 6adbc8
 %package network
Harald Hoyer 6adbc8
 Summary: Dracut modules to build a dracut initramfs with network support
Harald Hoyer 6adbc8
 Requires: %{name} = %{version}-%{release}
Harald Hoyer 6adbc8
-Requires: rpcbind
Harald Hoyer 6adbc8
-%if %{with_nbd}
Harald Hoyer 6adbc8
-Requires: nbd
Harald Hoyer 6adbc8
-%endif
Harald Hoyer 6adbc8
-Requires: iproute
Harald Hoyer 6adbc8
-Requires: bridge-utils
Harald Hoyer 6adbc8
-
Harald Hoyer 6adbc8
-%if 0%{?fedora} || 0%{?rhel} > 6
Harald Hoyer 6adbc8
-Requires: iscsi-initiator-utils
Harald Hoyer 6adbc8
-Requires: nfs-utils
Harald Hoyer 6adbc8
-Requires: dhclient
Harald Hoyer 6adbc8
-%endif
Harald Hoyer 6adbc8
-
Harald Hoyer 6adbc8
-%if 0%{?suse_version}
Harald Hoyer 6adbc8
-Requires: dhcp-client
Harald Hoyer 6adbc8
-Requires: nfs-client
Harald Hoyer 6adbc8
-Requires: vlan
Harald Hoyer 6adbc8
-%endif
Harald Hoyer 6adbc8
 Obsoletes: dracut-generic < 008
Harald Hoyer 6adbc8
 Provides:  dracut-generic = %{version}-%{release}
Harald Hoyer 6adbc8