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: 5.1.6
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
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
BuildRequires: zlib-devel
BuildRequires: xz-devel
%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
%build
export ZYPPER=zypper
export ZYPPER=/usr/bin/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