2013-03-09 17:46:38 +01:00
|
|
|
#
|
|
|
|
# spec file for package supermin
|
|
|
|
#
|
2016-09-08 17:26:03 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-03-09 17:46:38 +01:00
|
|
|
#
|
|
|
|
# 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
|
2015-10-23 17:17:08 +02:00
|
|
|
Version: 5.1.13
|
|
|
|
Release: 0
|
2016-05-25 16:27:16 +02:00
|
|
|
%{ocaml_preserve_bytecode}
|
2013-03-09 17:46:38 +01:00
|
|
|
Url: http://libguestfs.org/
|
|
|
|
Summary: Bootstrapping tool for creating supermin appliances
|
2016-05-31 09:54:39 +02:00
|
|
|
License: GPL-3.0+
|
2013-03-09 17:46:38 +01:00
|
|
|
Group: System/Filesystems
|
|
|
|
Provides: febootstrap
|
2013-04-10 11:13:36 +02:00
|
|
|
Requires: distribution-release
|
2013-04-11 20:10:05 +02:00
|
|
|
Requires: xmlstarlet
|
|
|
|
Requires: zypper
|
2013-03-09 17:46:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-05-26 09:15:09 +02:00
|
|
|
Source0: supermin-%{version}.tar.xz
|
2016-09-08 17:26:03 +02:00
|
|
|
Patch0: 0001-add_simple_handling_of_os-release.patch
|
|
|
|
Patch1: 0002-use_os-release_to_detect_the_distro.patch
|
|
|
|
Patch2: 0003-tests_use__etc_os-release_in_test-harder.patch
|
2015-10-23 17:18:37 +02:00
|
|
|
%if "%{?_ignore_exclusive_arch}" == ""
|
2016-05-03 16:07:51 +02:00
|
|
|
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64
|
2015-10-23 17:18:37 +02:00
|
|
|
%endif
|
2013-04-12 08:36:02 +02:00
|
|
|
|
2013-03-09 17:46:38 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: e2fsprogs
|
|
|
|
%if %suse_version >= 1210
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
%endif
|
2014-03-28 16:08:47 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2013-03-09 17:46:38 +01:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-findlib
|
2016-05-25 16:27:16 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
2013-03-09 17:46:38 +01:00
|
|
|
BuildRequires: pkg-config
|
2016-09-08 17:26:03 +02:00
|
|
|
BuildRequires: xz-devel
|
|
|
|
BuildRequires: zlib-devel
|
2015-10-27 19:09:20 +01:00
|
|
|
BuildRequires: pkgconfig(com_err)
|
|
|
|
BuildRequires: pkgconfig(ext2fs)
|
|
|
|
BuildRequires: pkgconfig(rpm)
|
2013-03-09 17:46:38 +01:00
|
|
|
|
|
|
|
%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
|
2016-09-08 17:26:03 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2013-03-09 17:46:38 +01:00
|
|
|
|
|
|
|
%build
|
2013-04-09 19:22:09 +02:00
|
|
|
export ZYPPER=zypper
|
2014-03-28 07:53:23 +01:00
|
|
|
export ZYPPER=/usr/bin/zypper
|
2013-03-09 17:46:38 +01:00
|
|
|
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
|