forked from pool/supermin
Olaf Hering
a9c7ea2c60
- zypp: Trailing whitespace. - Handle --packager-config in zypp_rpm - helper: Add a note that cpio might not be able to read -f cpio files. - helper: Add megaraid drivers to the initrd. OBS-URL: https://build.opensuse.org/package/show/Virtualization/supermin?expand=0&rev=15
113 lines
3.2 KiB
RPMSpec
113 lines
3.2 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/
|
|
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: 0013-helper-Add-megaraid-drivers-to-the-initrd.patch
|
|
Patch14: 0014-helper-Add-a-note-that-cpio-might-not-be-able-to-rea.patch
|
|
Patch15: 0015-Handle-packager-config-in-zypp_rpm.patch
|
|
Patch16: 0016-zypp-Trailing-whitespace.patch
|
|
Patch17: 0017-zypp-Only-compile-zypper-support-if-OCaml-inifiles-m.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: ocaml-inifiles-devel
|
|
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
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -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
|