Name: dracut
Version: 008
-%define release_prefix 0.5%{?rdist}
+%define release_prefix 0.6%{?rdist}
Release: %{release_prefix}
Summary: Initramfs generator using udev
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
Group: System Environment/Base
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
Group: System/Base
%endif
License: GPLv2+
Source0: dracut-%{version}%{?dashgittag}.tar.bz2
BuildArch: noarch
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
BuildRequires: docbook-style-xsl docbook-dtds libxslt
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
BuildRequires: docbook-xsl-stylesheets libxslt
%endif
Requires: tar
Requires: udev
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
Requires: util-linux-ng >= 2.16
Requires: initscripts >= 8.63-1
Requires: plymouth >= 0.8.0-0.2009.29.09.19.1
Requires: mount
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
Requires: util-linux >= 2.16
%endif
Requires: net-tools iproute
Requires: bridge-utils
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
Requires: iscsi-initiator-utils
Requires: nfs-utils
Requires: dhclient
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
Requires: dhcp-client
Requires: nfs-client
Requires: vlan
This package requires everything which is needed to build a generic
all purpose initramfs with network support with dracut.
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
%package fips
Summary: Dracut modules to build a dracut initramfs with an integrity check
Requires: %{name} = %{version}-%{release}
make WITH_SWITCH_ROOT=0%{?with_switch_root}
%install
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
rm -rf $RPM_BUILD_ROOT
%endif
make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin \
rm $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/10rpmversion/check
rm $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/01fips/check
-%if 0%{?fedora_version} == 0
+%if 0%{?fedora} == 0
rm -fr $RPM_BUILD_ROOT/%{_datadir}/dracut/modules.d/01fips
%endif
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT/etc/dracut.conf.d/01-dist.conf
%endif
-%if 0%{?suse_version} > 0
+%if 0%{?suse_version}
install -m 0644 dracut.conf.d/suse.conf.example $RPM_BUILD_ROOT/etc/dracut.conf.d/01-dist.conf
%endif
%dir %{_datadir}/dracut/modules.d
%{_datadir}/dracut/dracut-functions
%config(noreplace) /etc/dracut.conf
-%if 0%{?fedora_version} > 0 || 0%{?suse_version} > 0
+%if 0%{?fedora} || 0%{?suse_version}
%config(noreplace) /etc/dracut.conf.d/01-dist.conf
%endif
%dir /etc/dracut.conf.d
%{_datadir}/dracut/modules.d/45ifcfg
%{_datadir}/dracut/modules.d/95znet
-%if 0%{?fedora_version} > 0
+%if 0%{?fedora}
%files fips
%defattr(-,root,root,0755)
%{_datadir}/dracut/modules.d/01fips