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