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

81 lines
2.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/
ExclusiveArch: %ix86 x86_64
Summary: Bootstrapping tool for creating supermin appliances
License: GPL-2.0
Group: System/Filesystems
Provides: febootstrap
Obsoletes: febootstrap
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://libguestfs.org/download/supermin/supermin-%{version}.tar.gz
Patch0: 0000-Actually-update-gnulib.patch
Patch1: 0001-add-run_shell-helper.patch
Patch2: 0002-add-support-for-zypp.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
%patch0 -p1
%patch1 -p1
%patch2 -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