SHA256
1
0
forked from pool/supermin
supermin/supermin.spec

104 lines
2.9 KiB
RPMSpec

#
# spec file for package supermin
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: supermin
Version: 4.1.1
Release: %(bash %_sourcedir/get_release_number.sh)
Url: http://libguestfs.org/
ExclusiveArch: %ix86 x86_64
Summary: Bootstrapping tool for creating supermin appliances
License: GPL-2.0
Group: System/Filesystems
Provides: febootstrap
Requires: distribution-release
Requires: xmlstarlet
Requires: zypper
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://libguestfs.org/download/supermin/supermin-%{version}.tar.xz
Patch1: 0001-Actually-update-gnulib.patch
Patch2: 0002-helper-Add-missing-options-to-help-and-man-page-RHBZ.patch
Patch3: 0003-add-run_shell-helper.patch
Patch4: 0004-add-support-for-zypp.patch
Patch5: 0005-always-work-with-empty-root-in-zypp-driver.patch
Patch6: 0006-handle-use-installed-in-zypp-driver.patch
Patch7: 0007-skip-unreadable-files-in-zypp_rpm_list_files.patch
Patch8: 0008-remove-leading-tabs-in-zypp-driver.patch
Patch9: 0009-use-correct-repos.d-in-zypp-driver.patch
Patch10: 0010-zypper-Use-instead-of.patch
Patch11: 0011-debian-Experiment-with-different-options-for-apt-cac.patch
Patch12: 0012-zypp-Fix-XPath-expressions.patch
Patch13: 0001-Handle-packager-config-in-zypp_rpm.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: e2fsprogs
BuildRequires: e2fsprogs-devel
%if %suse_version >= 1210
BuildRequires: glibc-devel-static
%endif
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: pkg-config
%description
supermin is a tool for building supermin appliances. These are tiny
appliances (similar to virtual machines), usually around 100KB in size,
which get fully instantiated on-the-fly in a fraction of a second when
you need to boot one of them.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
export ZYPPER=zypper
touch INSTALL NEWS AUTHORS ChangeLog
autoreconf -fi
%configure --help
%configure
make \
%{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -ls
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
%doc README
%doc TODO
/usr/bin/*
%{_mandir}/*/*
%changelog