summaryrefslogtreecommitdiffstats
path: root/febootstrap.spec.in
blob: a13f148f5fe74d011a29515d526437a36711e0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# @configure_input@

Summary:     Bootstrap a new Fedora system (like debootstrap)
Name:        febootstrap
Version:     @VERSION@
Release:     1%{?dist}
License:     GPLv2+
Group:       Development/Tools
URL:         http://et.redhat.com/~rjones/febootstrap/
Source0:     http://et.redhat.com/~rjones/febootstrap/files/%{name}-%{version}.tar.gz
BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:   noarch

BuildRequires: /usr/bin/pod2man

Requires:    fakeroot >= 1.11
Requires:    fakechroot >= 2.8-15.fc10.rwmj4
Requires:    yum >= 3.2
Requires:    MAKEDEV
Requires:    util-linux-ng
Requires:    cpio
Requires:    upx

# These are suggestions.  However making them hard requirements
# pulls in far too much stuff.
#Requires:    qemu
#Requires:    filelight
#Requires:    baobab     # Not as nice as filelight.


%description
febootstrap is a Fedora equivalent to Debian's debootstrap.  You can
use it to create a basic Fedora filesystem, and build initramfs
(initrd.img) or filesystem images.

febootstrap also includes a separate tool to minimize filesystems by
removing unneeded locales, documentation etc.

The main difference from other appliance building tools is that this
one doesn't need to be run as root.


%prep
%setup -q


%build
%configure
make


%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# Clean up the examples/ directory which will get installed in %doc.
# In this case I don't want the scripts to be executable because
# people should read them carefully before running them.
rm examples/Makefile*
chmod -x examples/*.sh


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING README examples
%{_bindir}/febootstrap
%{_bindir}/febootstrap-to-initramfs
%{_bindir}/febootstrap-minimize
%{_mandir}/man8/febootstrap.8*
%{_mandir}/man8/febootstrap-to-initramfs.8*
%{_mandir}/man8/febootstrap-minimize.8*


%changelog
* Mon Mar 23 2009 Richard Jones <rjones@redhat.com> - 1.1-1
- Initial build.