From 24da0dddbd548937dea87525b9f51192535c23fb Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Oct 29 2010 14:50:55 +0000 Subject: s#fedora_version#fedora#g --- diff --git a/dracut.spec b/dracut.spec index 361a231..0220703 100644 --- a/dracut.spec +++ b/dracut.spec @@ -20,7 +20,7 @@ Version: 008 Release: %{release_prefix} Summary: Initramfs generator using udev -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 Group: System Environment/Base %endif %if 0%{?suse_version} > 0 @@ -33,14 +33,14 @@ URL: http://apps.sourceforge.net/trac/dracut/wiki Source0: dracut-%{version}%{?dashgittag}.tar.bz2 BuildArch: noarch -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %endif %if 0%{?suse_version} > 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %endif -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 BuildRequires: docbook-style-xsl docbook-dtds libxslt %endif @@ -81,7 +81,7 @@ Requires: sed Requires: tar Requires: udev -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 Requires: util-linux-ng >= 2.16 Requires: initscripts >= 8.63-1 Requires: plymouth >= 0.8.0-0.2009.29.09.19.1 @@ -110,7 +110,7 @@ Requires: nbd Requires: net-tools iproute Requires: bridge-utils -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 Requires: iscsi-initiator-utils Requires: nfs-utils Requires: dhclient @@ -128,7 +128,7 @@ Provides: dracut-generic = %{version}-%{release} 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} > 0 %package fips Summary: Dracut modules to build a dracut initramfs with an integrity check Requires: %{name} = %{version}-%{release} @@ -160,7 +160,7 @@ This package contains tools to assemble the local initrd and host configuration. make WITH_SWITCH_ROOT=0%{?with_switch_root} %install -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 rm -rf $RPM_BUILD_ROOT %endif make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin \ @@ -170,7 +170,7 @@ echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%{_datadir}/dracut/modules. 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 @@ -182,7 +182,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log touch $RPM_BUILD_ROOT%{_localstatedir}/log/dracut.log -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 install -m 0644 dracut.conf.d/fedora.conf.example $RPM_BUILD_ROOT/etc/dracut.conf.d/01-dist.conf %endif @@ -213,7 +213,7 @@ rm -rf $RPM_BUILD_ROOT %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 || 0%{?suse_version} > 0 %config(noreplace) /etc/dracut.conf.d/01-dist.conf %endif %dir /etc/dracut.conf.d @@ -263,7 +263,7 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/dracut/modules.d/45ifcfg %{_datadir}/dracut/modules.d/95znet -%if 0%{?fedora_version} > 0 +%if 0%{?fedora} > 0 %files fips %defattr(-,root,root,0755) %{_datadir}/dracut/modules.d/01fips