supermin: Add devel package

This commit is contained in:
gnaygnil 2020-03-02 12:35:26 +08:00
parent 1422a47be1
commit 0ec41dc186
3 changed files with 40 additions and 11 deletions

16
supermin-find-requires Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash -
function process_file
{
cat "$1"
}
if [ "$#" -ge 1 ]; then
for f in "$@"; do
process_file "$f"
done
else
while read line; do
process_file "$line"
done
fi

2
supermin.attr Normal file
View File

@ -0,0 +1,2 @@
%__supermin_requires %{_rpmconfigdir}/supermin-find-requires
%__supermin_path /supermin\.d/[^/]*packages[^/]*

View File

@ -1,10 +1,12 @@
Name: supermin Name: supermin
Version: 5.1.19 Version: 5.1.19
Release: 9 Release: 10
Summary: A tool for building supermin appliances, required by libguestfs Summary: A tool for building supermin appliances, required by libguestfs
License: GPLv2+ License: GPLv2+
URL: http://libguestfs.org/ URL: http://libguestfs.org/
Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz Source0: http://libguestfs.org/download/supermin/%{name}-%{version}.tar.gz
Source1: supermin.attr
Source2: supermin-find-requires
Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch
BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel
@ -20,6 +22,14 @@ appliances (similar to virtual machines), usually around 100KB in
size, which get fully instantiated on-the-fly in a fraction of a size, which get fully instantiated on-the-fly in a fraction of a
second when you need to boot one of them. 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 %package help
Summary: Man files for supermin Summary: Man files for supermin
Requires: man Requires: man
@ -39,24 +49,25 @@ make -C init CC="diet gcc"
%install %install
%make_install %make_install
%check mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/
#%ifarch aarch64 install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/
#export SKIP_TEST_EXECSTACK=1 install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
#%endif
#make check || {
# cat tests/test-suite.log
# exit 1
#}
%files %files
%doc examples/build-basic-vm.sh README %doc examples/build-basic-vm.sh README
%license COPYING %license COPYING
%{_bindir}/* %{_bindir}/*
%files devel
%{_rpmconfigdir}/fileattrs/supermin.attr
%{_rpmconfigdir}/supermin-find-requires
%files help %files help
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* 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 * Fri Feb 14 2020 Ling Yang <lingyang2@huawei.com> - 5.1.19-9
- Package Initialization - Package Initialization