Harald Hoyer ef5195
%if 0%{?fedora} < 12
Harald Hoyer ef5195
%define with_switch_root 1
Harald Hoyer ef5195
%else
Harald Hoyer b85672
%define with_switch_root 0
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
Harald Hoyer ef5195
%if %{defined gittag}
Harald Hoyer ef5195
%define rdist 1.git%{gittag}%{?dist}
Harald Hoyer ef5195
%define dashgittag -%{gittag}
Harald Hoyer ef5195
%else
Harald Hoyer ef5195
%define rdist %{?dist}
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
Harald Hoyer ef5195
Name: dracut
Harald Hoyer cfcf7c
Version: 0.9
Harald Hoyer 03ea5a
Release: 1%{?rdist}
Harald Hoyer ef5195
Summary: Initramfs generator using udev
Harald Hoyer ef5195
Group: System Environment/Base		
Harald Hoyer ef5195
License: GPLv2+	
Harald Hoyer ef5195
URL: http://apps.sourceforge.net/trac/dracut/wiki
Harald Hoyer ef5195
Source0: dracut-%{version}%{?dashgittag}.tar.bz2
Harald Hoyer ef5195
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Harald Hoyer ef5195
Requires: udev
Harald Hoyer ef5195
Requires: util-linux-ng
Harald Hoyer 03ea5a
Requires: module-init-tools >= 3.7-9
Harald Hoyer ef5195
Requires: cpio
Harald Hoyer ef5195
Requires: coreutils
Harald Hoyer ef5195
Requires: findutils
Harald Hoyer bee922
Requires: binutils
Harald Hoyer ef5195
Requires: grep
Warren Togami 508e0d
Requires: which
Harald Hoyer 03ea5a
Requires: mktemp >= 1.5-5
Harald Hoyer ef5195
Requires: mount
Harald Hoyer ef5195
Requires: bash
Harald Hoyer cfcf7c
Requires: dash
Harald Hoyer ef5195
Requires: /bin/sh 
Harald Hoyer 03ea5a
Requires: fileutils, gzip, tar
Harald Hoyer ef5195
Requires: lvm2 >= 2.02.33-9, dhclient
Harald Hoyer ef5195
Requires: filesystem >= 2.1.0, cpio, device-mapper, initscripts >= 8.63-1
Harald Hoyer ef5195
Requires: e2fsprogs >= 1.38-12, libselinux, libsepol, coreutils
Harald Hoyer ef5195
Requires: mdadm, elfutils-libelf, plymouth >= 0.7.0
Harald Hoyer ef5195
Requires: cryptsetup-luks
Harald Hoyer a04253
Requires: bridge-utils
Warren Togami 508e0d
Requires: file
Warren Togami 91f402
Requires: bzip2
Harald Hoyer ef5195
%ifnarch s390 s390x
Harald Hoyer ef5195
Requires: dmraid
Harald Hoyer ef5195
Requires: kbd
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
Harald Hoyer ef5195
%if ! 0%{?with_switch_root}
Harald Hoyer b85672
Requires: util-linux-ng >= 2.16
Harald Hoyer ef5195
BuildArch: noarch
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
Harald Hoyer ef5195
%description
Harald Hoyer ef5195
dracut is a new, event-driven initramfs infrastructure based around udev.
Harald Hoyer ef5195
Harald Hoyer ef5195
%package generic
Harald Hoyer a04253
Summary: Metapackage to build a generic initramfs with dracut
Harald Hoyer ef5195
Requires: %{name} = %{version}-%{release}
Harald Hoyer ef5195
Requires: rpcbind nfs-utils 
Harald Hoyer ef5195
Requires: iscsi-initiator-utils
Harald Hoyer ef5195
Requires: nbd
Harald Hoyer ef5195
Requires: net-tools iproute
Harald Hoyer a04253
Requires: plymouth-system-theme plymouth-theme-charge plymouth-theme-solar
Harald Hoyer cfcf7c
Requires: plymouth-theme-fade-in plymouth-theme-spinfinity
Harald Hoyer a04253
Harald Hoyer a04253
%description generic
Harald Hoyer a04253
This package requires everything which is needed to build a generic
Harald Hoyer a04253
all purpose initramfs with dracut.
Harald Hoyer a04253
Harald Hoyer a04253
%package kernel
Harald Hoyer a04253
Summary: Metapackage to build generic initramfs with dracut with only kernel modules
Harald Hoyer a04253
Requires: %{name} = %{version}-%{release}
Harald Hoyer bee922
Requires: ql2100-firmware
Harald Hoyer bee922
Requires: ql2200-firmware
Harald Hoyer bee922
Requires: ql23xx-firmware
Harald Hoyer bee922
Requires: ql2400-firmware
Harald Hoyer bee922
Requires: ql2500-firmware
Harald Hoyer ef5195
Harald Hoyer a04253
%description kernel
Harald Hoyer a04253
This package requires everything which is needed to build a initramfs with all
Harald Hoyer a04253
kernel modules and firmware files needed by dracut modules.
Harald Hoyer a04253
Harald Hoyer a04253
%package tools
Harald Hoyer a04253
Summary: dracut tools to build the local initramfs
Harald Hoyer 03ea5a
Requires: coreutils cryptsetup-luks device-mapper
Harald Hoyer 03ea5a
Requires: diffutils dmraid findutils gawk grep lvm2
Harald Hoyer 03ea5a
Requires: module-init-tools sed
Harald Hoyer 03ea5a
Requires: cpio gzip
Harald Hoyer a04253
Harald Hoyer a04253
%description tools
Harald Hoyer a04253
This package contains tools to assemble the local initrd and host configuration.
Harald Hoyer ef5195
Harald Hoyer ef5195
%prep
Harald Hoyer ef5195
%setup -q -n %{name}-%{version}%{?dashgittag}
Harald Hoyer ef5195
Harald Hoyer ef5195
%build
Harald Hoyer ef5195
make
Harald Hoyer ef5195
Harald Hoyer ef5195
Harald Hoyer ef5195
%install
Harald Hoyer ef5195
rm -rf $RPM_BUILD_ROOT
Harald Hoyer ef5195
make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin sysconfdir=/etc mandir=%{_mandir}
Harald Hoyer ef5195
Harald Hoyer ef5195
%if ! 0%{?with_switch_root}
Harald Hoyer ef5195
rm -f $RPM_BUILD_ROOT/sbin/switch_root
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
Harald Hoyer a04253
mkdir -p $RPM_BUILD_ROOT/boot/dracut
Harald Hoyer a04253
mkdir -p $RPM_BUILD_ROOT/var/lib/dracut/overlay
Harald Hoyer a04253
Harald Hoyer ef5195
%clean
Harald Hoyer ef5195
rm -rf $RPM_BUILD_ROOT
Harald Hoyer ef5195
Harald Hoyer ef5195
%files
Harald Hoyer ef5195
%defattr(-,root,root,0755)
Harald Hoyer ef5195
%doc README HACKING TODO COPYING AUTHORS
Harald Hoyer ef5195
/sbin/dracut
Harald Hoyer ef5195
%if 0%{?with_switch_root}
Harald Hoyer ef5195
/sbin/switch_root
Harald Hoyer ef5195
%endif
Harald Hoyer ef5195
%dir %{_datadir}/dracut
Harald Hoyer ef5195
%{_datadir}/dracut/dracut-functions
Harald Hoyer ef5195
%{_datadir}/dracut/modules.d
Harald Hoyer ef5195
%config(noreplace) /etc/dracut.conf
Harald Hoyer ef5195
%{_mandir}/man8/dracut.8*
Harald Hoyer ef5195
Harald Hoyer ef5195
%files generic
Harald Hoyer ef5195
%defattr(-,root,root,0755)
Harald Hoyer ef5195
%doc README.generic
Harald Hoyer ef5195
Harald Hoyer a04253
%files kernel 
Harald Hoyer a04253
%defattr(-,root,root,0755)
Harald Hoyer a04253
%doc README.kernel
Harald Hoyer a04253
Harald Hoyer a04253
%files tools 
Harald Hoyer a04253
%defattr(-,root,root,0755)
Harald Hoyer a04253
%doc COPYING
Harald Hoyer a04253
/sbin/dracut-gencmdline
Harald Hoyer a04253
/sbin/dracut-catimages
Harald Hoyer a04253
%dir /boot/dracut
Harald Hoyer a04253
%dir /var/lib/dracut
Harald Hoyer a04253
%dir /var/lib/dracut/overlay
Harald Hoyer a04253
Harald Hoyer ef5195
%changelog
Harald Hoyer cfcf7c
* Fri Aug 14 2009 Harald Hoyer <harald@redhat.com> 0.9-1
Harald Hoyer cfcf7c
- version 0.9
Harald Hoyer cfcf7c
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer cfcf7c
Harald Hoyer 03ea5a
* Thu Aug 06 2009 Harald Hoyer <harald@redhat.com> 0.8-1
Harald Hoyer 03ea5a
- version 0.8 
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer b85672
Harald Hoyer a04253
* Fri Jul 24 2009 Harald Hoyer <harald@redhat.com> 0.7-1
Harald Hoyer a04253
- version 0.7
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer a04253
Harald Hoyer a04253
* Wed Jul 22 2009 Harald Hoyer <harald@redhat.com> 0.6-1
Harald Hoyer a04253
- version 0.6
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Jesse Keating e82e01
Harald Hoyer d3fe3a
* Fri Jul 17 2009 Harald Hoyer <harald@redhat.com> 0.5-1
Harald Hoyer d3fe3a
- version 0.5
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer d3fe3a
Harald Hoyer bee922
* Sat Jul 04 2009 Harald Hoyer <harald@redhat.com> 0.4-1
Harald Hoyer bee922
- version 0.4
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer bee922
Harald Hoyer 571e83
* Thu Jul 02 2009 Harald Hoyer <harald@redhat.com> 0.3-1
Harald Hoyer 571e83
- version 0.3
Harald Hoyer 03ea5a
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
Harald Hoyer 571e83
Harald Hoyer ef5195
* Wed Jul 01 2009 Harald Hoyer <harald@redhat.com> 0.2-1
Harald Hoyer ef5195
- version 0.2
Harald Hoyer ef5195
Harald Hoyer ef5195
* Fri Jun 19 2009 Harald Hoyer <harald@redhat.com> 0.1-1
Harald Hoyer ef5195
- first release
Harald Hoyer ef5195
Harald Hoyer ef5195
* Thu Dec 18 2008 Jeremy Katz <katzj@redhat.com> - 0.0-1
Harald Hoyer ef5195
- Initial build
Harald Hoyer ef5195