ae95abf048ab88d5353ad7006b4ccb22c0ffef79
[febootstrap.git] / febootstrap.spec.in
1 # @configure_input@
2
3 Summary:     Bootstrap a new Fedora system (like debootstrap)
4 Name:        febootstrap
5 Version:     @VERSION@
6 Release:     1%{?dist}
7 License:     GPLv2+
8 Group:       Development/Tools
9 URL:         http://et.redhat.com/~rjones/febootstrap/
10 Source0:     http://et.redhat.com/~rjones/febootstrap/files/%{name}-%{version}.tar.gz
11 BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
12 BuildArch:   noarch
13
14 BuildRequires: /usr/bin/pod2man
15
16 Requires:    fakeroot >= 1.11
17 Requires:    fakechroot >= 2.8-15.fc10.rwmj4
18 Requires:    yum >= 3.2
19 Requires:    MAKEDEV
20 Requires:    util-linux-ng
21 Requires:    cpio
22 Requires:    upx
23
24 # These are suggestions.  However making them hard requirements
25 # pulls in far too much stuff.
26 #Requires:    qemu
27 #Requires:    filelight
28
29
30 %description
31 febootstrap is a Fedora equivalent to Debian's debootstrap.  You can
32 use it to create a basic Fedora filesystem, and build initramfs
33 (initrd.img) or filesystem images.
34
35 febootstrap also includes a separate tool to minimize filesystems by
36 removing unneeded locales, documentation etc.
37
38 The main difference from other appliance building tools is that this
39 one doesn't need to be run as root.
40
41
42 %prep
43 %setup -q
44
45
46 %build
47 %configure
48 make
49
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 make DESTDIR=$RPM_BUILD_ROOT install
54
55 # Clean up the examples/ directory which will get installed in %doc.
56 # In this case I don't want the scripts to be executable because
57 # people should read them carefully before running them.
58 rm examples/Makefile*
59 chmod -x examples/*.sh
60
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65
66 %files
67 %defattr(-,root,root,-)
68 %doc COPYING README examples
69 %{_bindir}/febootstrap
70 %{_bindir}/febootstrap-to-initramfs
71 %{_bindir}/febootstrap-minimize
72 %{_mandir}/man8/febootstrap.8*
73 %{_mandir}/man8/febootstrap-to-initramfs.8*
74 %{_mandir}/man8/febootstrap-minimize.8*
75
76
77 %changelog
78 * Mon Mar 23 2009 Richard Jones <rjones@redhat.com> - 1.1-1
79 - Initial build.