90579d2
Summary:       Tool for creating supermin appliances
90579d2
Name:          supermin
9862bce
Version:       4.1.6
eac0c44
Release:       2%{?dist}
90579d2
License:       GPLv2+
90579d2
90579d2
%if 0%{?rhel} >= 7
90579d2
ExclusiveArch: x86_64
90579d2
%endif
90579d2
2f66d09
URL:           http://people.redhat.com/~rjones/supermin/
2f66d09
Source0:       http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
2f66d09
90579d2
BuildRequires: /usr/bin/pod2man
90579d2
BuildRequires: yum >= 3.2
90579d2
BuildRequires: /usr/sbin/mke2fs
90579d2
BuildRequires: e2fsprogs-devel
90579d2
BuildRequires: glibc-static, zlib-static
90579d2
BuildRequires: ocaml, ocaml-findlib-devel
eac0c44
BuildRequires: /usr/bin/execstack
90579d2
90579d2
Requires:      yum >= 3.2
90579d2
Requires:      yum-utils
90579d2
Requires:      supermin-helper%{?_isa} = %{version}-%{release}
90579d2
90579d2
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions
90579d2
Provides:      bundled(gnulib)
90579d2
90579d2
# NB: Does NOT Provides, because this is not a compatible replacement.
b0cde2e
Obsoletes:     febootstrap < 3.21-3
90579d2
90579d2
90579d2
%description
90579d2
Supermin is a tool for building supermin appliances.  These are tiny
90579d2
appliances (similar to virtual machines), usually around 100KB in
90579d2
size, which get fully instantiated on-the-fly in a fraction of a
90579d2
second when you need to boot one of them.
90579d2
90579d2
90579d2
%package helper
90579d2
Summary:       Runtime support for supermin
90579d2
Requires:      util-linux-ng
90579d2
Requires:      cpio
90579d2
Requires:      /usr/sbin/mke2fs
90579d2
# RHBZ#771310
90579d2
Requires:      e2fsprogs-libs >= 1.42
90579d2
90579d2
# NB: Does NOT Provides, because this is not a compatible replacement.
b0cde2e
Obsoletes:     febootstrap-supermin-helper < 3.21-3
90579d2
90579d2
90579d2
%description helper
90579d2
%{name}-helper contains the runtime support for %{name}.
90579d2
90579d2
90579d2
%prep
90579d2
%setup -q
90579d2
90579d2
90579d2
%build
17fdac5
%configure --disable-network-tests
90579d2
make
90579d2
90579d2
90579d2
%install
90579d2
make DESTDIR=$RPM_BUILD_ROOT install
90579d2
90579d2
# supermin-helper is marked as requiring an executable stack.  This
90579d2
# happens because we use objcopy to create one of the component object
90579d2
# files from a data file.  The program does not in fact require an
90579d2
# executable stack.  The easiest way to fix this is to clear the flag
90579d2
# here.
90579d2
execstack -c $RPM_BUILD_ROOT%{_bindir}/supermin-helper
90579d2
90579d2
17fdac5
%check
17fdac5
make check
17fdac5
17fdac5
90579d2
%files
b37e55a
%doc COPYING README examples/build-basic-vm.sh
90579d2
%{_bindir}/supermin
9862bce
%{_mandir}/man1/supermin.1*
90579d2
90579d2
90579d2
%files helper
90579d2
%doc COPYING
90579d2
%{_bindir}/supermin-helper
9862bce
%{_mandir}/man1/supermin-helper.1*
90579d2
90579d2
90579d2
%changelog
eac0c44
* Mon Dec 23 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-2
9862bce
- New upstream version 4.1.6.
9862bce
- Should fix all autotools brokenness.
9862bce
- Man pages are now all in section 1.
9862bce
- Remove patch which is now upstream.
eac0c44
- +BR /usr/bin/execstack (from prelink).
9862bce
180dde8
* Mon Dec 23 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.5-5
180dde8
- Rerun autoreconf to fix autotools brokenness.
180dde8
4bbd235
* Sun Dec 22 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.5-4
4bbd235
- Why was prelink required?  Remove it.
4bbd235
b0cde2e
* Fri Sep 13 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 4.1.5-3
b0cde2e
- correct Obsoletes version for febootstrap and febootstrap-supermin-helper
b0cde2e
e9f7395
* Sun Sep  8 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.5-2
e9f7395
- (For ARM) Don't crash if SUPERMIN_DTB is set and --dtb not specified.
e9f7395
e57a288
* Fri Sep  6 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.5-1
e57a288
- New upstream version 4.1.5.
e57a288
- Has (optionally) a new command line syntax.
e57a288
- Supports device trees for ARM.
e57a288
df56ff3
* Wed Aug 28 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.4-1
df56ff3
- New upstream version 4.1.4.
df56ff3
- Supports compressed cpio image files, experimentally.
df56ff3
b37e55a
* Fri Aug  9 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.3-1
b37e55a
- New upstream version 4.1.3.
b37e55a
- Remove patch which is now upstream.
b37e55a
- Add examples directory to documentation.
b37e55a
2f66d09
* Tue Aug  6 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-2
2f66d09
- Include upstream patch to get correct directory setgid/sticky bits in
2f66d09
  the appliance.
2f66d09
17fdac5
* Sat Aug  3 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-1
17fdac5
- New upstream version 4.1.2.
17fdac5
- Remove patch which is now upstream.
17fdac5
f1d732d
* Wed Jun 26 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.1-2
f1d732d
- Add upstream patch to ignore ghost non-regular files.
f1d732d
- This fixes builds on Fedora 20 because the filesystem package has
f1d732d
  been changed so /var/lock and /var/run are marked as ghost.
f1d732d
90579d2
* Tue Feb  5 2013 Richard W.M. Jones <rjones@redhat.com> - 4.1.1-1
90579d2
- New upstream version 4.1.1.
90579d2
- The program has been renamed 'supermin' from 'febootstrap'.
90579d2
- Obsolete, but don't Provide because supermin is not a compatible replacement.
90579d2
- Use '_isa' to specify architecture of supermin-helper subpackage.
90579d2
90579d2
* Tue Jan 22 2013 Richard W.M. Jones <rjones@redhat.com> - 1:3.21-2
90579d2
- Add upstream patch to drop supplemental groups (RHBZ#902476).
90579d2
- Remove 'Group:' RPM headers which are no longer necessary.
90579d2
- Remove some commented-out requirements.
90579d2
90579d2
* Sat Dec 22 2012 Richard W.M. Jones <rjones@redhat.com> - 1:3.21-1
90579d2
- New upstream version 3.21.
90579d2
90579d2
* Fri Aug 31 2012 Richard W.M. Jones <rjones@redhat.com> - 1:3.20-1
90579d2
- New upstream version 3.20.
90579d2
90579d2
* Wed Aug 22 2012 Richard W.M. Jones <rjones@redhat.com> - 1:3.19-2
90579d2
- Work around brokenness in yum (RHBZ#850913).
90579d2
- Remove defattr, no longer required.
90579d2
90579d2
* Tue Jul 31 2012 Richard W.M. Jones <rjones@redhat.com> - 1:3.19-1
90579d2
- New upstream version 3.19.
90579d2
90579d2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18-2
90579d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
90579d2
90579d2
* Mon Jun 18 2012 Richard Jones <rjones@redhat.com> - 3.18-1
90579d2
- New upstream version 3.18.
90579d2
- This adds support for EPEL 5.
90579d2
90579d2
* Thu Jun 14 2012 Richard Jones <rjones@redhat.com> - 3.17-1
90579d2
- New upstream version 3.17.
90579d2
90579d2
* Wed Jun 13 2012 Richard Jones <rjones@redhat.com> - 3.16-1
90579d2
- New upstream version 3.16.
90579d2
90579d2
* Tue Jun 12 2012 Richard Jones <rjones@redhat.com> - 3.15-1
90579d2
- New upstream version 3.15.
90579d2
- This version includes root=<device> support, needed for libguestfs
90579d2
  with virtio-scsi.
90579d2
- Remove upstream patch.
90579d2
90579d2
* Thu May 17 2012 Richard Jones <rjones@redhat.com> - 3.14-6
90579d2
- For RHEL 7 only, add ExclusiveArch x86-64.
90579d2
90579d2
* Tue May 15 2012 Richard Jones <rjones@redhat.com> - 3.14-5
90579d2
- Bundled gnulib (RHBZ#821752).
90579d2
90579d2
* Fri Apr 13 2012 Richard Jones <rjones@redhat.com> - 3.14-4
90579d2
- Add back explicit dependencies for external programs.
90579d2
90579d2
* Fri Apr 13 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 3.14-3
90579d2
- Drop ExclusiveArch as it's supported on all primary & secondary arches
90579d2
- Cleanup spec and deps
90579d2
90579d2
* Fri Mar 30 2012 Richard Jones <rjones@redhat.com> - 3.14-2
90579d2
- New upstream version 3.14.
90579d2
- Add upstream patch to fix RHBZ#808421.
90579d2
90579d2
* Thu Mar 29 2012 Richard Jones <rjones@redhat.com> - 3.13-4
90579d2
- e2fsprogs moved /sbin/mke2fs to /usr/sbin (thanks Eric Sandeen).
90579d2
90579d2
* Thu Mar  1 2012 Richard Jones <rjones@redhat.com> - 3.13-2
90579d2
- Missing BR zlib-static.
90579d2
90579d2
* Thu Feb  9 2012 Richard Jones <rjones@redhat.com> - 3.13-1
90579d2
- New upstream version 3.13.
90579d2
- Remove upstream patch which is included in this version.
90579d2
90579d2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12-5
90579d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
90579d2
90579d2
* Tue Jan  3 2012 Richard Jones <rjones@redhat.com> - 3.12-4
90579d2
- Depend on latest e2fsprogs (RHBZ#771310).
90579d2
90579d2
* Wed Nov  9 2011 Richard Jones <rjones@redhat.com> - 3.12-2
90579d2
- Include upstream patch to work around Python stupidity.
90579d2
90579d2
* Tue Oct 18 2011 Richard Jones <rjones@redhat.com> - 3.12-1
90579d2
- New upstream version 3.12.
90579d2
- Remove upstream patch which is included in this version.
90579d2
90579d2
* Fri Oct 14 2011 Richard Jones <rjones@redhat.com> - 3.11-2
90579d2
- Add upstream patch to fix febootstrap on non-Debian.
90579d2
90579d2
* Fri Oct 14 2011 Richard Jones <rjones@redhat.com> - 3.11-1
90579d2
- New upstream version 3.11.
90579d2
90579d2
* Thu Sep  1 2011 Richard Jones <rjones@redhat.com> - 3.10-1
90579d2
- New upstream version 3.10.
90579d2
90579d2
* Fri Aug 26 2011 Richard Jones <rjones@redhat.com> - 3.9-1
90579d2
- New upstream version 3.9.
90579d2
90579d2
* Tue Jul 26 2011 Richard Jones <rjones@redhat.com> - 3.8-1
90579d2
- New upstream version 3.8.
90579d2
90579d2
* Fri Jul 15 2011 Richard Jones <rjones@redhat.com> - 3.7-1
90579d2
- New upstream version 3.7.
90579d2
90579d2
* Wed Jun  1 2011 Richard Jones <rjones@redhat.com> - 3.6-1
90579d2
- New upstream version 3.6.
90579d2
- This version no longer needs external insmod.static.
90579d2
90579d2
* Fri May 27 2011 Richard Jones <rjones@redhat.com> - 3.5-1
90579d2
- New upstream version 3.5.
90579d2
- Remove patch which is now upstream.
90579d2
90579d2
* Fri Mar 18 2011 Richard Jones <rjones@redhat.com> - 3.4-2
90579d2
- Don't fail if objects are created in a symlinked dir (RHBZ#698089).
90579d2
90579d2
* Fri Mar 18 2011 Richard Jones <rjones@redhat.com> - 3.4-1
90579d2
- New upstream version 3.4.
90579d2
- febootstrap-supermin-helper Obsoletes older versions of febootstrap.
90579d2
90579d2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-5
90579d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
90579d2
90579d2
* Fri Jan 14 2011 Richard Jones <rjones@redhat.com> - 3.3-4
90579d2
- Split package into febootstrap (for building) and febootstrap-supermin-helper
90579d2
  (for running).  Note that febootstrap depends on febootstrap-supermin-helper,
90579d2
  but you can install febootstrap-supermin-helper on its own.
90579d2
90579d2
* Fri Jan 14 2011 Richard Jones <rjones@redhat.com> - 3.3-3
90579d2
- Clear executable stack flag on febootstrap-supermin-helper.
90579d2
90579d2
* Thu Jan 13 2011 Dan HorĂ¡k <dan[at]danny.cz> - 3.3-2
90579d2
- add the ocaml's ExclusiveArch
90579d2
90579d2
* Sat Dec 11 2010 Richard Jones <rjones@redhat.com> - 3.3-1
90579d2
- New upstream version 3.3.
90579d2
90579d2
* Tue Dec  7 2010 Richard Jones <rjones@redhat.com> - 3.2-1
90579d2
- New upstream version 3.2.
90579d2
- Remove upstream patches.
90579d2
90579d2
* Tue Dec  7 2010 Richard Jones <rjones@redhat.com> - 3.1-5
90579d2
- Previous fix for RHBZ#654638 didn't work, fix it correctly.
90579d2
90579d2
* Mon Dec  6 2010 Richard Jones <rjones@redhat.com> - 3.1-4
90579d2
- Properly ignore .*.hmac files (accidental reopening of RHBZ#654638).
90579d2
90579d2
* Mon Dec  6 2010 Richard Jones <rjones@redhat.com> - 3.1-3
90579d2
- Uses yumdownloader at runtime, so require yum-utils.
90579d2
90579d2
* Mon Dec  6 2010 Richard Jones <rjones@redhat.com> - 3.1-2
90579d2
- New upstream version 3.1.
90579d2
- BR insmod.static.
90579d2
90579d2
* Sun Dec  5 2010 Richard Jones <rjones@redhat.com> - 3.0-2
90579d2
- New upstream version 3.0 (note this is incompatible with 2.x).
90579d2
- Fix upstream URLs.
90579d2
- fakeroot, fakechroot no longer required.
90579d2
- insmod.static is required at runtime (missing dependency from earlier).
90579d2
- The only programs are 'febootstrap' and 'febootstrap-supermin-helper'.
90579d2
- BR ocaml, ocaml-findlib-devel.
90579d2
- No examples are provided with this version of febootstrap.
90579d2
90579d2
* Thu Nov 25 2010 Richard Jones <rjones@redhat.com> - 2.11-1
90579d2
- New upstream version 2.11.
90579d2
- Fixes "ext2fs_mkdir .. No free space in directory" bug which affects
90579d2
  libguestfs on rawhide.
90579d2
90579d2
* Thu Oct 28 2010 Richard Jones <rjones@redhat.com> - 2.10-1
90579d2
- New upstream version 2.10.
90579d2
- Adds -u and -g options to febootstrap-supermin-helper which are
90579d2
  required by virt-v2v.
90579d2
90579d2
* Fri Aug 27 2010 Richard Jones <rjones@redhat.com> - 2.9-1
90579d2
- New upstream version 2.9.
90579d2
- Fixes directory ordering problem in febootstrap-supermin-helper.
90579d2
90579d2
* Tue Aug 24 2010 Richard Jones <rjones@redhat.com> - 2.8-1
90579d2
- New upstream version 2.8.
90579d2
90579d2
* Sat Aug 21 2010 Richard Jones <rjones@redhat.com> - 2.8-0.2
90579d2
- New pre-release version of 2.8.
90579d2
  + Note this is based on 2.7 + mailing list patches.
90579d2
- New BRs on mke2fs, libext2fs, glibc-static.
90579d2
90579d2
* Fri May 14 2010 Richard Jones <rjones@redhat.com> - 2.7-2
90579d2
- New upstream version 2.7.
90579d2
- febootstrap-supermin-helper shell script rewritten in C for speed.
90579d2
- This package contains C code so it is no longer 'noarch'.
90579d2
- MAKEDEV isn't required.
90579d2
90579d2
* Fri Jan 22 2010 Richard Jones <rjones@redhat.com> - 2.6-1
90579d2
- New upstream release 2.6.
90579d2
- Recheck package in rpmlint.
90579d2
90579d2
* Thu Oct 22 2009 Richard Jones <rjones@redhat.com> - 2.5-2
90579d2
- New upstream release 2.5.
90579d2
- Remove BR upx (not needed by upstream).
90579d2
- Two more scripts / manpages.
90579d2
90579d2
* Thu Jul 30 2009 Richard Jones <rjones@redhat.com> - 2.4-1
90579d2
- New upstream release 2.4.
90579d2
90579d2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
90579d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
90579d2
90579d2
* Mon Jun 15 2009 Richard Jones <rjones@redhat.com> - 2.3-1
90579d2
- New upstream release 2.3.
90579d2
90579d2
* Mon Jun 15 2009 Richard Jones <rjones@redhat.com> - 2.2-1
90579d2
- New upstream release 2.2.
90579d2
90579d2
* Mon May 11 2009 Richard Jones <rjones@redhat.com> - 2.0-1
90579d2
- New upstream release 2.0.
90579d2
90579d2
* Thu May  7 2009 Richard Jones <rjones@redhat.com> - 1.9-1
90579d2
- New upstream release 1.9.
90579d2
90579d2
* Fri May  1 2009 Richard Jones <rjones@redhat.com> - 1.8-1
90579d2
- New upstream release 1.8.
90579d2
90579d2
* Mon Apr 20 2009 Richard Jones <rjones@redhat.com> - 1.7-1
90579d2
- New upstream release 1.7.
90579d2
90579d2
* Tue Apr 14 2009 Richard Jones <rjones@redhat.com> - 1.5-3
90579d2
- Configure script has (unnecessary) BuildRequires on fakeroot,
90579d2
  fakechroot, yum.
90579d2
90579d2
* Tue Apr 14 2009 Richard Jones <rjones@redhat.com> - 1.5-2
90579d2
- Initial build for Fedora.