2020-02-14 15:52:57 +08:00
|
|
|
Name: supermin
|
|
|
|
|
Version: 5.1.19
|
2020-03-02 12:35:26 +08:00
|
|
|
Release: 10
|
2020-02-14 15:52:57 +08:00
|
|
|
Summary: A tool for building supermin appliances, required by libguestfs
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://libguestfs.org/
|
|
|
|
|
Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
|
2020-03-02 12:35:26 +08:00
|
|
|
Source1: supermin.attr
|
|
|
|
|
Source2: supermin-find-requires
|
2020-02-14 15:52:57 +08:00
|
|
|
Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
|
|
|
|
|
Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch
|
|
|
|
|
BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel
|
|
|
|
|
BuildRequires: findutils gnupg2 grubby hivex kernel ocaml ocaml-findlib-devel
|
|
|
|
|
BuildRequires: rpm rpm-devel systemd-udev tar
|
|
|
|
|
BuildRequires: /usr/bin/pod2man /usr/bin/pod2html /usr/sbin/mke2fs
|
|
|
|
|
Requires: cpio dnf dnf-plugins-core e2fsprogs-libs >= 1.42 findutils
|
|
|
|
|
Requires: rpm tar util-linux-ng /usr/sbin/mke2fs
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
2020-03-02 12:35:26 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development tools for supermin
|
|
|
|
|
Requires: supermin = %{version}-%{release}
|
|
|
|
|
Requires: rpm-build
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
supermin-devel contains development tools for supermin.
|
|
|
|
|
|
2020-02-14 15:52:57 +08:00
|
|
|
%package help
|
|
|
|
|
Summary: Man files for supermin
|
|
|
|
|
Requires: man
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-03-02 12:35:26 +08:00
|
|
|
%description help
|
2020-02-14 15:52:57 +08:00
|
|
|
This contains man files for the using of supermin.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-network-tests
|
|
|
|
|
make -C init CC="diet gcc"
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2020-03-02 12:35:26 +08:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/
|
|
|
|
|
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/
|
|
|
|
|
install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
|
2020-02-14 15:52:57 +08:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc examples/build-basic-vm.sh README
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
2020-03-02 12:35:26 +08:00
|
|
|
%files devel
|
|
|
|
|
%{_rpmconfigdir}/fileattrs/supermin.attr
|
|
|
|
|
%{_rpmconfigdir}/supermin-find-requires
|
|
|
|
|
|
2020-02-14 15:52:57 +08:00
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-03-02 12:35:26 +08:00
|
|
|
* Mon Mar 2 2020 Ling Yang <lingyang2@huawei.com> - 5.1.19-10
|
|
|
|
|
- Add devel package
|
|
|
|
|
|
2020-02-14 15:52:57 +08:00
|
|
|
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 5.1.19-9
|
|
|
|
|
- Package Initialization
|