!29 提高软件包兼容性
From: @lyn1001 Reviewed-by: @gitee-cmd Signed-off-by: @gitee-cmd
This commit is contained in:
commit
3ec125ad43
@ -1,6 +1,8 @@
|
|||||||
|
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||||
|
|
||||||
Name: supermin
|
Name: supermin
|
||||||
Version: 5.1.19
|
Version: 5.1.19
|
||||||
Release: 12
|
Release: 13
|
||||||
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/
|
||||||
@ -9,7 +11,7 @@ Source1: supermin.attr
|
|||||||
Source2: supermin-find-requires
|
Source2: supermin-find-requires
|
||||||
Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
|
Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
|
||||||
Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch
|
Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch
|
||||||
Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch
|
Patch9000: 9000-fix-cannot-detect-package-manager.patch
|
||||||
Patch9001: add-pie-and-bind_now-flags.patch
|
Patch9001: add-pie-and-bind_now-flags.patch
|
||||||
BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel
|
BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel
|
||||||
BuildRequires: findutils gnupg2 grubby hivex kernel ocaml ocaml-findlib-devel
|
BuildRequires: findutils gnupg2 grubby hivex kernel ocaml ocaml-findlib-devel
|
||||||
@ -43,6 +45,12 @@ This contains man files for the using of supermin.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
|
%if %{!?openEuler:1}0
|
||||||
|
sed -i 's/; "openEuler"/&; "%{vendor}"/' ./src/ph_rpm.ml
|
||||||
|
num=$(grep -n "etc/openEuler-release" ./src/ph_rpm.ml |awk -F ":" '{printf $1}')
|
||||||
|
sed -i "N;$num i\ (stat \"/etc/%{vendor}-release\").st_kind = S_REG ||" ./src/ph_rpm.ml
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-network-tests
|
%configure --disable-network-tests
|
||||||
make -C init CC="diet gcc"
|
make -C init CC="diet gcc"
|
||||||
@ -68,6 +76,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 18 2022 liyanan <liyanan32@h-partners.com> - 5.1.19-13
|
||||||
|
- Replace openEuler with vendor
|
||||||
|
|
||||||
* Wed Sep 08 2021 wangyue <wangyue92@huawei.com> - 5.1.19-12
|
* Wed Sep 08 2021 wangyue <wangyue92@huawei.com> - 5.1.19-12
|
||||||
- Add pie and bind_now flags
|
- Add pie and bind_now flags
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user