Blame 0090-dracut.spec-add-suse-version-ifdefs.patch

Harald Hoyer a66b47
From 7a1f355fb51426ec69002cf23ada0aea7fe285c7 Mon Sep 17 00:00:00 2001
Harald Hoyer a66b47
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer a66b47
Date: Mon, 16 Jul 2012 10:33:27 +0200
Harald Hoyer a66b47
Subject: [PATCH] dracut.spec: add suse version ifdefs
Harald Hoyer a66b47
Harald Hoyer a66b47
---
Harald Hoyer a66b47
 dracut.spec |   12 +++++++-----
Harald Hoyer a66b47
 1 file changed, 7 insertions(+), 5 deletions(-)
Harald Hoyer a66b47
Harald Hoyer a66b47
diff --git a/dracut.spec b/dracut.spec
Harald Hoyer a66b47
index 0e853fd..9108d1a 100644
Harald Hoyer a66b47
--- a/dracut.spec
Harald Hoyer a66b47
+++ b/dracut.spec
Harald Hoyer a66b47
@@ -111,7 +111,7 @@ Provides:  dracut-generic = %{version}-%{release}
Harald Hoyer a66b47
 This package requires everything which is needed to build a generic
Harald Hoyer a66b47
 all purpose initramfs with network support with dracut.
Harald Hoyer a66b47
 
Harald Hoyer a66b47
-%if 0%{?fedora} || 0%{?rhel} >= 6
Harald Hoyer a66b47
+%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
Harald Hoyer a66b47
 %package fips
Harald Hoyer a66b47
 Summary: Dracut modules to build a dracut initramfs with an integrity check
Harald Hoyer a66b47
 Requires: %{name} = %{version}-%{release}
Harald Hoyer a66b47
@@ -185,7 +185,7 @@ make install DESTDIR=$RPM_BUILD_ROOT \
Harald Hoyer a66b47
 
Harald Hoyer a66b47
 echo "DRACUT_VERSION=%{version}-%{release}" > $RPM_BUILD_ROOT/%{dracutlibdir}/dracut-version.sh
Harald Hoyer a66b47
 
Harald Hoyer a66b47
-%if 0%{?fedora} == 0 && 0%{?rhel} == 0
Harald Hoyer a66b47
+%if 0%{?fedora} == 0 && 0%{?rhel} == 0 && 0%{?suse_version} == 0
Harald Hoyer a66b47
 rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/01fips
Harald Hoyer a66b47
 rm -fr $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/02fips-aesni
Harald Hoyer a66b47
 %endif
Harald Hoyer a66b47
@@ -210,7 +210,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
Harald Hoyer a66b47
 touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log
Harald Hoyer a66b47
 mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/initramfs
Harald Hoyer a66b47
 
Harald Hoyer a66b47
-%if 0%{?fedora} || 0%{?rhel}
Harald Hoyer a66b47
+%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
Harald Hoyer a66b47
 install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT/etc/dracut.conf.d/01-dist.conf
Harald Hoyer a66b47
 install -m 0644 dracut.conf.d/fips.conf.example $RPM_BUILD_ROOT/etc/dracut.conf.d/40-fips.conf
Harald Hoyer a66b47
 %endif
Harald Hoyer a66b47
@@ -258,11 +258,13 @@ rm -rf $RPM_BUILD_ROOT
Harald Hoyer a66b47
 %endif
Harald Hoyer a66b47
 %dir /etc/dracut.conf.d
Harald Hoyer a66b47
 %{_mandir}/man8/dracut.8*
Harald Hoyer a66b47
+%if 0%{?fedora} > 12 || 0%{?rhel} >= 6 || 0%{?suse_version} > 9999
Harald Hoyer a66b47
 %{_mandir}/man8/mkinitrd.8*
Harald Hoyer a66b47
+%{_mandir}/man1/lsinitrd.1*
Harald Hoyer a66b47
+%endif
Harald Hoyer a66b47
 %{_mandir}/man7/dracut.kernel.7*
Harald Hoyer a66b47
 %{_mandir}/man7/dracut.cmdline.7*
Harald Hoyer a66b47
 %{_mandir}/man5/dracut.conf.5*
Harald Hoyer a66b47
-%{_mandir}/man1/lsinitrd.1*
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/00bootchart
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/04watchdog
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/05busybox
Harald Hoyer a66b47
@@ -329,7 +331,7 @@ rm -rf $RPM_BUILD_ROOT
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/45ifcfg
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/95znet
Harald Hoyer a66b47
 
Harald Hoyer a66b47
-%if 0%{?fedora} || 0%{?rhel}
Harald Hoyer a66b47
+%if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version}
Harald Hoyer a66b47
 %files fips
Harald Hoyer a66b47
 %defattr(-,root,root,0755)
Harald Hoyer a66b47
 %{dracutlibdir}/modules.d/01fips