Arch is noarch, and clean up examples directory.
[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.rwmj3
18 Requires:    yum >= 3.2
19 Requires:    MAKEDEV
20 Requires:    util-linux-ng
21 Requires:    cpio
22
23 # These are suggestions.  However making them hard requirements
24 # pulls in far too much stuff.
25 #Requires:    qemu
26 #Requires:    filelight
27
28
29 %description
30 febootstrap is a Fedora equivalent to Debian's debootstrap.  You can
31 use it to create a basic Fedora filesystem, and build initramfs
32 (initrd.img) or filesystem images.
33
34 febootstrap also includes a separate tool to minimize filesystems by
35 removing unneeded locales, documentation etc.
36
37 The main difference from other appliance building tools is that this
38 one doesn't need to be run as root.
39
40
41 %prep
42 %setup -q
43
44
45 %build
46 %configure
47 make
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 make DESTDIR=$RPM_BUILD_ROOT install
53
54 # Clean up the examples/ directory which will get installed in %doc.
55 # In this case I don't want the scripts to be executable because
56 # people should read them carefully before running them.
57 rm examples/Makefile*
58 chmod -x examples/*.sh
59
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64
65 %files
66 %defattr(-,root,root,-)
67 %doc COPYING README examples
68 %{_bindir}/febootstrap
69 %{_bindir}/febootstrap-to-initramfs
70 %{_bindir}/febootstrap-minimize
71 %{_mandir}/man8/febootstrap.8*
72 %{_mandir}/man8/febootstrap-to-initramfs.8*
73 %{_mandir}/man8/febootstrap-minimize.8*
74
75
76 %changelog
77 * Mon Mar 23 2009 Richard Jones <rjones@redhat.com> - 1.1-1
78 - Initial build.