2020-02-14 15:52:57 +08:00
|
|
|
Name: supermin
|
2023-10-08 15:56:12 +08:00
|
|
|
Version: 5.3.3
|
2024-04-22 16:34:22 +08:00
|
|
|
Release: 4
|
2020-02-14 15:52:57 +08:00
|
|
|
Summary: A tool for building supermin appliances, required by libguestfs
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://libguestfs.org/
|
2022-09-23 14:05:15 +08:00
|
|
|
Source0: http://libguestfs.org/download/supermin/5.3-development/%{name}-%{version}.tar.gz
|
2020-03-02 12:35:26 +08:00
|
|
|
Source1: supermin.attr
|
|
|
|
|
Source2: supermin-find-requires
|
2020-12-16 09:25:21 +08:00
|
|
|
Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch
|
2021-09-08 16:33:44 +08:00
|
|
|
Patch9001: add-pie-and-bind_now-flags.patch
|
2021-10-08 16:36:04 +08:00
|
|
|
Patch9002: 9002-fix-cannot-detect-package-manager-on-UnionTech.patch
|
2023-10-16 15:08:38 +08:00
|
|
|
Patch0004: 0001-fix-cannot-detect-package-manager-on-NestOS.patch
|
2024-04-22 16:34:22 +08:00
|
|
|
%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
|
2022-05-26 17:37:45 +08:00
|
|
|
BuildRequires: findutils gnupg2 grubby hivex ocaml ocaml-findlib-devel
|
2020-02-14 15:52:57 +08:00
|
|
|
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
|
2024-04-22 16:34:22 +08:00
|
|
|
%ifarch riscv64
|
|
|
|
|
make -C init CC="musl-gcc"
|
|
|
|
|
%else
|
2020-02-14 15:52:57 +08:00
|
|
|
make -C init CC="diet gcc"
|
2024-04-22 16:34:22 +08:00
|
|
|
%endif
|
2020-02-14 15:52:57 +08:00
|
|
|
%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
|
2024-04-22 16:34:22 +08:00
|
|
|
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 5.3.3-4
|
|
|
|
|
- riscv64: use musl instead of unsupported dietlibc
|
|
|
|
|
|
2023-11-30 09:28:06 +08:00
|
|
|
* Thu Nov 30 2023 chendexi <chendexi@kylinos.cn> - 5.3.3-3
|
|
|
|
|
- Modify release file name due to release package name change
|
|
|
|
|
|
2023-10-16 15:08:38 +08:00
|
|
|
* Mon Oct 16 2023 lijian <lijian2@kylinos.cn> -5.3.3-2
|
|
|
|
|
- fix cannot detect package manager on NestOS
|
|
|
|
|
|
2023-10-08 15:56:12 +08:00
|
|
|
* Sun Oct 08 2023 xu_ping<707078654@qq.com> -5.3.3-1
|
|
|
|
|
- Update to version 5.3.3
|
|
|
|
|
|
2022-09-23 14:05:15 +08:00
|
|
|
* Thu Sep 22 2022 chendexi<chendexi@kylinos.cn> -5.3.2-1
|
|
|
|
|
- Update to version 5.3.2
|
|
|
|
|
|
2022-05-26 17:37:45 +08:00
|
|
|
* Thu May 26 2022 Jun Yang <jun.yang@suse.com> - 5.1.19-14
|
|
|
|
|
- Remove dependency of kernel package
|
|
|
|
|
|
2021-10-08 16:36:04 +08:00
|
|
|
* Fri Oct 08 2021 wangqing <wangqing@uniontech.com> - 5.1.19-13
|
|
|
|
|
- fix cannot detect package manager on UnionTech
|
|
|
|
|
|
2021-09-08 16:33:44 +08:00
|
|
|
* Wed Sep 08 2021 wangyue <wangyue92@huawei.com> - 5.1.19-12
|
|
|
|
|
- Add pie and bind_now flags
|
|
|
|
|
|
2020-12-16 09:25:21 +08:00
|
|
|
* Wed Dec 16 2020 maminjie <maminjie1@huawei.com> - 5.1.19-11
|
|
|
|
|
- Use installed packages instead of dnf downloading
|
|
|
|
|
|
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
|