|
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 |
a04253 |
Version: 0.7
|
|
Harald Hoyer |
a04253 |
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 |
ef5195 |
Requires: module-init-tools
|
|
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
|
|
Harald Hoyer |
ef5195 |
Requires: mktemp
|
|
Harald Hoyer |
ef5195 |
Requires: mount
|
|
Harald Hoyer |
ef5195 |
Requires: bash
|
|
Harald Hoyer |
ef5195 |
Requires: /bin/sh
|
|
Harald Hoyer |
ef5195 |
Requires: fileutils, grep, mount, gzip, tar, mktemp >= 1.5-5, findutils
|
|
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
|
|
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 |
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 |
a04253 |
Requires: %{name} = %{version}-%{release}
|
|
Harald Hoyer |
a04253 |
Requires: ql2100-firmware
|
|
Harald Hoyer |
a04253 |
Requires: ql2200-firmware
|
|
Harald Hoyer |
a04253 |
Requires: ql23xx-firmware
|
|
Harald Hoyer |
a04253 |
Requires: ql2400-firmware
|
|
Harald Hoyer |
a04253 |
Requires: ql2500-firmware
|
|
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 |
b85672 |
* Sun Jul 26 2009 Harald Hoyer <harald@redhat.com> 0.7-1
|
|
Harald Hoyer |
b85672 |
- build without /sbin/switch_root
|
|
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 |
a04253 |
|
|
Harald Hoyer |
a04253 |
* Wed Jul 22 2009 Harald Hoyer <harald@redhat.com> 0.6-1
|
|
Harald Hoyer |
a04253 |
- version 0.6
|
|
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 |
d3fe3a |
|
|
Harald Hoyer |
bee922 |
* Sat Jul 04 2009 Harald Hoyer <harald@redhat.com> 0.4-1
|
|
Harald Hoyer |
bee922 |
- version 0.4
|
|
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 |
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 |
|