Added a specfile, version 1.1 for release.
authorrjones <rjones>
Mon, 23 Mar 2009 12:35:12 +0000 (12:35 +0000)
committerrjones <rjones>
Mon, 23 Mar 2009 12:35:12 +0000 (12:35 +0000)
.cvsignore
Makefile.am
configure.ac
febootstrap.spec.in [new file with mode: 0644]

index 4842195..89a6429 100644 (file)
@@ -10,6 +10,7 @@ config.h
 config.log
 config.status
 configure
+febootstrap.spec
 febootstrap
 febootstrap-minimize
 febootstrap-to-initramfs
index 658a9f9..dd31049 100644 (file)
@@ -82,6 +82,7 @@ febootstrap-to-initramfs.txt: febootstrap-to-initramfs.pod
 endif
 
 EXTRA_DIST = \
+       febootstrap.spec febootstrap.spec.in \
        fakechroot-2.8-relchroot.patch \
        febootstrap.8 febootstrap.txt febootstrap.pod \
          febootstrap.sh \
index 65f2983..a72af6b 100644 (file)
@@ -17,7 +17,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 dnl
 dnl Written by Richard W.M. Jones <rjones@redhat.com>
 
-AC_INIT(febootstrap,1.0)
+AC_INIT(febootstrap,1.1)
 AM_INIT_AUTOMAKE
 
 AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no])
@@ -42,5 +42,5 @@ if test "x$YUM" = "xno" ; then
 fi
 
 AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile examples/Makefile])
+AC_CONFIG_FILES([Makefile examples/Makefile febootstrap.spec])
 AC_OUTPUT
diff --git a/febootstrap.spec.in b/febootstrap.spec.in
new file mode 100644 (file)
index 0000000..9ca791c
--- /dev/null
@@ -0,0 +1,71 @@
+# @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
+
+BuildRequires: /usr/bin/pod2man
+
+Requires:    fakeroot >= 1.11
+Requires:    fakechroot >= 2.8-15.fc10.rwmj3
+Requires:    yum >= 3.2
+Requires:    MAKEDEV
+Requires:    util-linux-ng
+Requires:    cpio
+
+# These are suggestions.  However making them hard requirements
+# pulls in far too much stuff.
+#Requires:    qemu
+#Requires:    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
+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.