2009-07-01 16:40:45 +04:00
%if 0%{?fedora} < 12
%define with_switch_root 1
%else
2009-07-30 18:11:52 +04:00
%define with_switch_root 0
2009-07-01 16:40:45 +04:00
%endif
2009-03-05 12:38:03 +03:00
%if %{defined gittag}
2009-08-31 13:59:45 +04:00
%define rdist .git%{gittag}%{?dist}
2009-03-05 12:38:03 +03:00
%define dashgittag -%{gittag}
%else
2009-07-01 16:40:45 +04:00
%define rdist %{?dist}
2009-03-05 12:38:03 +03:00
%endif
2009-07-01 16:40:45 +04:00
Name : dracut
2009-08-14 19:59:43 +04:00
Version : 0.9
2009-07-01 16:40:45 +04:00
Release : 1%{?rdist}
2008-12-19 22:44:38 +03:00
Summary : Initramfs generator using udev
Group : System Environment/Base
2009-06-23 09:44:56 +04:00
License : GPLv2+
2009-06-04 15:08:39 +04:00
URL : http://apps.sourceforge.net/trac/dracut/wiki
2009-03-05 12:38:03 +03:00
Source0 : dracut-%{version} %{?dashgittag} .tar.bz2
2008-12-19 22:44:38 +03:00
BuildRoot : %{_tmppath} /%{name} -%{version} -%{release} -root-%(%{__id_u} -n)
Requires : udev
2009-06-19 15:43:06 +04:00
Requires : util-linux-ng
2009-08-05 18:26:52 +04:00
Requires : module-init-tools >= 3.7-9
2008-12-19 22:44:38 +03:00
Requires : cpio
Requires : coreutils
Requires : findutils
2009-07-03 13:08:58 +04:00
Requires : binutils
2008-12-19 22:44:38 +03:00
Requires : grep
2009-07-30 18:11:52 +04:00
Requires : which
2009-07-31 14:37:22 +04:00
Requires : mktemp >= 1.5-5
2008-12-19 22:44:38 +03:00
Requires : mount
Requires : bash
2009-08-14 18:29:20 +04:00
Requires : dash
2009-06-23 09:44:56 +04:00
Requires : /bin/sh
2009-07-31 14:37:22 +04:00
Requires : fileutils, gzip, tar
2009-06-23 09:44:56 +04:00
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
2009-07-24 15:15:43 +04:00
Requires : bridge-utils
2009-07-27 21:16:51 +04:00
Requires : file
2009-08-03 22:26:26 +04:00
Requires : bzip2
2009-08-31 13:39:39 +04:00
Requires : policycoreutils
2009-06-23 09:44:56 +04:00
Requires : dmraid
Requires : kbd
2009-06-19 15:43:06 +04:00
2009-06-19 14:10:46 +04:00
%if ! 0%{?with_switch_root}
2009-08-07 14:08:04 +04:00
Requires : util-linux-ng >= 2.16
2009-06-19 14:10:46 +04:00
BuildArch : noarch
%endif
2008-12-19 22:44:38 +03:00
%description
2009-06-04 15:08:39 +04:00
dracut is a new, event-driven initramfs infrastructure based around udev.
2008-12-19 22:44:38 +03:00
2009-06-19 15:43:06 +04:00
%package generic
2009-07-24 15:15:43 +04:00
Summary : Metapackage to build a generic initramfs with dracut
2009-06-19 15:43:06 +04:00
Requires : %{name} = %{version} -%{release}
Requires : rpcbind nfs-utils
Requires : iscsi-initiator-utils
Requires : nbd
Requires : net-tools iproute
2009-07-22 14:43:26 +04:00
Requires : plymouth-system-theme plymouth-theme-charge plymouth-theme-solar
2009-08-14 18:30:38 +04:00
Requires : plymouth-theme-fade-in plymouth-theme-spinfinity
2009-07-22 14:43:26 +04:00
%description generic
This package requires everything which is needed to build a generic
2009-07-24 15:15:43 +04:00
all purpose initramfs with dracut.
2009-07-22 14:43:26 +04:00
%package kernel
2009-07-24 15:15:43 +04:00
Summary : Metapackage to build generic initramfs with dracut with only kernel modules
2009-07-22 14:43:26 +04:00
Requires : %{name} = %{version} -%{release}
2009-07-03 15:17:08 +04:00
Requires : ql2100-firmware
Requires : ql2200-firmware
Requires : ql23xx-firmware
Requires : ql2400-firmware
Requires : ql2500-firmware
2009-06-19 15:43:06 +04:00
2009-07-22 14:43:26 +04:00
%description kernel
This package requires everything which is needed to build a initramfs with all
kernel modules and firmware files needed by dracut modules.
2009-06-19 15:43:06 +04:00
2009-07-24 15:15:43 +04:00
%package tools
Summary : dracut tools to build the local initramfs
2009-08-04 18:36:18 +04:00
Requires : coreutils cryptsetup-luks device-mapper
Requires : diffutils dmraid findutils gawk grep lvm2
Requires : module-init-tools sed
Requires : cpio gzip
2009-07-24 15:15:43 +04:00
%description tools
This package contains tools to assemble the local initrd and host configuration.
2008-12-19 22:44:38 +03:00
%prep
2009-03-05 12:38:03 +03:00
%setup -q -n %{name} -%{version} %{?dashgittag}
2008-12-19 22:44:38 +03:00
%build
make
%install
rm -rf $RPM_BUILD_ROOT
2009-06-17 17:41:44 +04:00
make install DESTDIR=$RPM_BUILD_ROOT sbindir=/sbin sysconfdir=/etc mandir=%{_mandir}
2008-12-19 22:44:38 +03:00
2009-06-19 14:10:46 +04:00
%if ! 0%{?with_switch_root}
rm -f $RPM_BUILD_ROOT /sbin/switch_root
%endif
2009-07-24 15:15:43 +04:00
mkdir -p $RPM_BUILD_ROOT /boot/dracut
mkdir -p $RPM_BUILD_ROOT /var/lib/dracut/overlay
2008-12-19 22:44:38 +03:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
2009-06-19 15:43:06 +04:00
%defattr (-,root,root,0755)
2009-08-14 20:02:51 +04:00
%doc README HACKING TODO COPYING AUTHORS NEWS
2008-12-19 22:44:38 +03:00
/sbin/dracut
2009-06-19 14:10:46 +04:00
%if 0%{?with_switch_root}
2009-06-04 19:23:41 +04:00
/sbin/switch_root
2009-06-19 14:10:46 +04:00
%endif
2009-06-19 15:43:06 +04:00
%dir %{_datadir} /dracut
%{_datadir} /dracut/dracut-functions
%{_datadir} /dracut/modules.d
2009-03-05 12:36:08 +03:00
%config (noreplace) /etc/dracut.conf
2009-06-17 17:41:44 +04:00
%{_mandir} /man8/dracut.8*
2008-12-19 22:44:38 +03:00
2009-06-19 15:43:06 +04:00
%files generic
%defattr (-,root,root,0755)
%doc README.generic
2009-07-22 14:43:26 +04:00
%files kernel
%defattr (-,root,root,0755)
%doc README.kernel
2009-07-24 15:15:43 +04:00
%files tools
%defattr (-,root,root,0755)
2009-08-14 20:02:51 +04:00
%doc COPYING NEWS
2009-07-24 15:15:43 +04:00
/sbin/dracut-gencmdline
/sbin/dracut-catimages
%dir /boot/dracut
%dir /var/lib/dracut
%dir /var/lib/dracut/overlay
2008-12-19 22:44:38 +03:00
%changelog
2009-08-14 19:59:43 +04:00
* Fri Aug 14 2009 Harald Hoyer <harald@redhat.com> 0.9-1
- version 0.9
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-08-06 17:01:38 +04:00
* Thu Aug 06 2009 Harald Hoyer <harald@redhat.com> 0.8-1
- version 0.8
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-24 15:15:43 +04:00
* Fri Jul 24 2009 Harald Hoyer <harald@redhat.com> 0.7-1
- version 0.7
2009-08-06 17:01:38 +04:00
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-24 15:15:43 +04:00
* Wed Jul 22 2009 Harald Hoyer <harald@redhat.com> 0.6-1
2009-07-21 19:38:41 +04:00
- version 0.6
2009-08-06 17:01:38 +04:00
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-21 19:38:41 +04:00
2009-07-17 17:40:08 +04:00
* Fri Jul 17 2009 Harald Hoyer <harald@redhat.com> 0.5-1
- version 0.5
2009-08-06 17:01:38 +04:00
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-17 17:40:08 +04:00
2009-07-04 12:05:38 +04:00
* Sat Jul 04 2009 Harald Hoyer <harald@redhat.com> 0.4-1
- version 0.4
2009-08-06 17:01:38 +04:00
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-04 12:05:38 +04:00
2009-07-02 13:48:27 +04:00
* Thu Jul 02 2009 Harald Hoyer <harald@redhat.com> 0.3-1
- version 0.3
2009-08-06 17:01:38 +04:00
- see http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut;a=blob_plain;f=NEWS
2009-07-02 13:48:27 +04:00
2009-07-01 18:22:45 +04:00
* Wed Jul 01 2009 Harald Hoyer <harald@redhat.com> 0.2-1
- version 0.2
2009-06-19 15:43:06 +04:00
* 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
2008-12-19 22:44:38 +03:00
- Initial build