SHA256
1
0
forked from pool/supermin
supermin/supermin.spec
Dirk Mueller 10a55fdb09 - update to 5.2.0:
* rpm: extend the Multiple_matches exception
  * Use external command mv to rename old output directory (RHBZ#1670191). 
  * rpm: do not unpack parameters 
  * rpm: fix version comparison 
  * rpm: provide a dummy supermin_rpm_get_arch implementation
  * ext2: Build symbolic links correctly (RHBZ#1770304).
  *  Update gnulib to latest.
- switch to release tarball, use keyring for gpg validation
- run tests

OBS-URL: https://build.opensuse.org/package/show/Virtualization/supermin?expand=0&rev=47
2020-10-23 18:50:48 +00:00

102 lines
2.8 KiB
RPMSpec

#
# spec file for package supermin
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: supermin
Version: 5.2.0
Release: 0
Summary: Bootstrapping tool for creating supermin appliances
License: GPL-3.0-or-later
Group: System/Filesystems
URL: https://libguestfs.org/
Source0: https://download.libguestfs.org/supermin/5.2-stable/supermin-5.2.0.tar.gz
Source1: https://download.libguestfs.org/supermin/5.2-stable/supermin-5.2.0.tar.gz.sig
Source9: supermin.keyring
# Pending upstream review
Patch0: suse_release.patch
BuildRequires: augeas
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: distribution-release
BuildRequires: e2fsprogs
BuildRequires: glibc-devel-static
BuildRequires: gzip
BuildRequires: hivex
BuildRequires: kernel-default
BuildRequires: ncurses-devel
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-rpm-macros >= 4.02.1
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: zypper
BuildRequires: pkgconfig(com_err)
BuildRequires: pkgconfig(ext2fs)
BuildRequires: pkgconfig(rpm)
Requires: augeas
Requires: distribution-release
Requires: sysconfig-netconfig
Requires: tar
Requires: xmlstarlet
Requires: zypper
Provides: febootstrap
%{?ocaml_preserve_bytecode}
%if "%{?_ignore_exclusive_arch}" == ""
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64
%endif
%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
%build
export ZYPPER=zypper
export ZYPPER=%{_bindir}/zypper
touch INSTALL NEWS AUTHORS ChangeLog
#.gnulib/gnulib-tool --update
#autoreconf -fi
%configure --help
%configure --disable-network-tests
%make_build \
%{?_smp_mflags}
%install
%make_install
find %{buildroot} -ls
%check
make check || {
cat tests/test-suite.log
exit 1
}
%files
%doc README
%doc TODO
%{_bindir}/*
%{_mandir}/*/*
%changelog