1 Star 0 Fork 29

leon wang/supermin

forked from src-openEuler/supermin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
supermin.spec 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
leon wang 提交于 2023-02-02 16:31 . add ctyunos support
Name: supermin
Version: 5.3.2
Release: 2
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
Patch0003: 0003-ctyunos-support-patch.patch
Patch9001: add-pie-and-bind_now-flags.patch
BuildRequires: augeas dietlibc-devel 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
make -C init CC="diet gcc"
%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
* Tue Dec 27 2022 wanglin<wangl29@chinatelecom.cn> -5.3.2-2
- Merge patch9002 into patch0003
- Add ctyunos support
* Thu Sep 22 2022 chendexi<chendexi@kylinos.cn> -5.3.2-1
- Update to version 5.3.2
* Thu May 26 2022 Jun Yang <jun.yang@suse.com> - 5.1.19-14
- Remove dependency of kernel package
* Fri Oct 08 2021 wangqing <wangqing@uniontech.com> - 5.1.19-13
- fix cannot detect package manager on UnionTech
* Wed Sep 08 2021 wangyue <wangyue92@huawei.com> - 5.1.19-12
- Add pie and bind_now flags
* Wed Dec 16 2020 maminjie <maminjie1@huawei.com> - 5.1.19-11
- Use installed packages instead of dnf downloading
* Mon Mar 2 2020 Ling Yang <lingyang2@huawei.com> - 5.1.19-10
- Add devel package
* Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 5.1.19-9
- Package Initialization
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wonleing/supermin.git
git@gitee.com:wonleing/supermin.git
wonleing
supermin
supermin
master

搜索帮助