!58 手工同步PR,支持下游版本使用自定义vendor提高软件包兼容性
From: @xiaochn Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
78b1688b3b
@ -1,6 +1,8 @@
|
||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||
|
||||
Name: supermin
|
||||
Version: 5.3.3
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: A tool for building supermin appliances, required by libguestfs
|
||||
License: GPLv2+
|
||||
URL: http://libguestfs.org/
|
||||
@ -53,6 +55,12 @@ This contains man files for the using of supermin.
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%if "%{vendor}" != "openEuler"
|
||||
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
|
||||
%configure --disable-network-tests
|
||||
%ifarch riscv64
|
||||
@ -84,6 +92,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue Dec 10 2024 xiaochn <xiaochuannan@inspur.com> - 5.3.3-7
|
||||
- Replace openEuler with vendor
|
||||
|
||||
* Thu Jun 27 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.3.3-6
|
||||
- loongarch64: use glibc instead of unsupported dietlibc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user