Name: supermin Version: 5.3.3 Release: 4 Summary: A tool for building supermin appliances, required by libguestfs License: GPLv2+ URL: http://libguestfs.org/ Source0: http://libguestfs.org/download/supermin/5.3-development/%{name}-%{version}.tar.gz Source1: supermin.attr Source2: supermin-find-requires Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch Patch9001: add-pie-and-bind_now-flags.patch Patch9002: 9002-fix-cannot-detect-package-manager-on-UnionTech.patch Patch0004: 0001-fix-cannot-detect-package-manager-on-NestOS.patch %ifarch riscv64 Patch9100: 9100-src-format_ext2_kernel.ml-Rename-function-file-kerne.patch Patch9101: 9101-src-Uncompress-kernel-on-RISC-V.patch BuildRequires: musl-gcc musl-libc-static %else BuildRequires: dietlibc-devel %endif BuildRequires: augeas dnf dnf-plugins-core e2fsprogs-devel BuildRequires: findutils gnupg2 grubby hivex 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. %package devel Summary: Development tools for supermin Requires: supermin = %{version}-%{release} Requires: rpm-build %description devel supermin-devel contains development tools for supermin. %package help Summary: Man files for supermin Requires: man BuildArch: noarch %description help This contains man files for the using of supermin. %prep %autosetup -p1 %build %configure --disable-network-tests %ifarch riscv64 make -C init CC="musl-gcc" %else make -C init CC="diet gcc" %endif %make_build %install %make_install mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/ %files %doc examples/build-basic-vm.sh README %license COPYING %{_bindir}/* %files devel %{_rpmconfigdir}/fileattrs/supermin.attr %{_rpmconfigdir}/supermin-find-requires %files help %{_mandir}/man1/* %changelog * Mon Apr 22 2024 laokz - 5.3.3-4 - riscv64: use musl instead of unsupported dietlibc * Thu Nov 30 2023 chendexi - 5.3.3-3 - Modify release file name due to release package name change * Mon Oct 16 2023 lijian -5.3.3-2 - fix cannot detect package manager on NestOS * Sun Oct 08 2023 xu_ping<707078654@qq.com> -5.3.3-1 - Update to version 5.3.3 * Thu Sep 22 2022 chendexi -5.3.2-1 - Update to version 5.3.2 * Thu May 26 2022 Jun Yang - 5.1.19-14 - Remove dependency of kernel package * Fri Oct 08 2021 wangqing - 5.1.19-13 - fix cannot detect package manager on UnionTech * Wed Sep 08 2021 wangyue - 5.1.19-12 - Add pie and bind_now flags * Wed Dec 16 2020 maminjie - 5.1.19-11 - Use installed packages instead of dnf downloading * Mon Mar 2 2020 Ling Yang - 5.1.19-10 - Add devel package * Fri Feb 14 2020 Ling Yang - 5.1.19-9 - Package Initialization