Blame 0061-dracut.spec-remove-suse-man-pages.patch

Harald Hoyer 4734ec
From 11ee2ca8d497980c98c3c5a2c3be25b4724c43a0 Mon Sep 17 00:00:00 2001
Harald Hoyer 4734ec
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 4734ec
Date: Thu, 5 Dec 2013 17:31:09 +0100
Harald Hoyer 4734ec
Subject: [PATCH] dracut.spec: remove suse man pages
Harald Hoyer 4734ec
Harald Hoyer 4734ec
---
Harald Hoyer 4734ec
 dracut.spec | 9 ++++++---
Harald Hoyer 4734ec
 1 file changed, 6 insertions(+), 3 deletions(-)
Harald Hoyer 4734ec
Harald Hoyer 4734ec
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer 4734ec
index 91ec15d..bd35aa7 100644
Harald Hoyer 4734ec
--- a/dracut.spec
Harald Hoyer 4734ec
+++ b/dracut.spec
Harald Hoyer 4734ec
@@ -246,15 +246,18 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
Harald Hoyer 4734ec
 touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log
Harald Hoyer 4734ec
 mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/initramfs
Harald Hoyer 4734ec
 
Harald Hoyer 4734ec
-%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
Harald Hoyer 4734ec
+%if 0%{?fedora} || 0%{?rhel}
Harald Hoyer 4734ec
 install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf
Harald Hoyer 4734ec
-install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/40-fips.conf
Harald Hoyer 4734ec
+rm -f $RPM_BUILD_ROOT%{_mandir}/man?/*suse*
Harald Hoyer 4734ec
 %endif
Harald Hoyer 4734ec
-
Harald Hoyer 4734ec
 %if 0%{?suse_version}
Harald Hoyer 4734ec
 install -m 0644 dracut.conf.d/suse.conf.example   $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/01-dist.conf
Harald Hoyer 4734ec
 %endif
Harald Hoyer 4734ec
 
Harald Hoyer 4734ec
+%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
Harald Hoyer 4734ec
+install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/40-fips.conf
Harald Hoyer 4734ec
+%endif
Harald Hoyer 4734ec
+
Harald Hoyer 4734ec
 %if 0%{?fedora} <= 12 && 0%{?rhel} < 6 && 0%{?suse_version} <= 9999
Harald Hoyer 4734ec
 rm -f -- $RPM_BUILD_ROOT%{_bindir}/mkinitrd
Harald Hoyer 4734ec
 rm -f -- $RPM_BUILD_ROOT%{_bindir}/lsinitrd