dracut/dracut.spec

109 lines
2.3 KiB
RPMSpec
Raw Normal View History

%if 0%{?fedora} < 12
%define with_switch_root 1
%else
2009-06-19 14:10:46 +04:00
%define with_switch_root 0
%endif
2009-03-05 12:38:03 +03:00
%if %{defined gittag}
%define rdist 1.git%{gittag}%{?dist}
2009-03-05 12:38:03 +03:00
%define dashgittag -%{gittag}
%else
%define rdist %{?dist}
2009-03-05 12:38:03 +03:00
%endif
Name: dracut
Version: 0.1
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
2008-12-19 22:44:38 +03:00
Requires: module-init-tools
Requires: cpio
Requires: coreutils
Requires: findutils
Requires: grep
Requires: mktemp
Requires: mount
Requires: bash
2009-06-23 09:44:56 +04:00
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
%ifnarch s390 s390x
Requires: dmraid
Requires: kbd
%endif
2009-06-19 15:43:06 +04:00
2009-06-19 14:10:46 +04:00
%if ! 0%{?with_switch_root}
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
Summary: Metapackage to build a generic initramfs
Requires: %{name} = %{version}-%{release}
Requires: rpcbind nfs-utils
Requires: iscsi-initiator-utils
Requires: nbd
Requires: net-tools iproute
%description generic
2009-06-23 09:44:56 +04:00
This package requires everything which is needed to build a generic
2009-06-19 15:43:06 +04:00
all purpose initramfs.
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
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)
%doc README HACKING TODO COPYING AUTHORS
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
2008-12-19 22:44:38 +03:00
%changelog
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