!58 手工同步PR,支持下游版本使用自定义vendor提高软件包兼容性

From: @xiaochn 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2025-01-20 09:12:48 +00:00 committed by Gitee
commit 78b1688b3b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,8 @@
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
Name: supermin Name: supermin
Version: 5.3.3 Version: 5.3.3
Release: 6 Release: 7
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/
@ -53,6 +55,12 @@ This contains man files for the using of supermin.
%prep %prep
%autosetup -p1 %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 %build
%configure --disable-network-tests %configure --disable-network-tests
%ifarch riscv64 %ifarch riscv64
@ -84,6 +92,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %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 * Thu Jun 27 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.3.3-6
- loongarch64: use glibc instead of unsupported dietlibc - loongarch64: use glibc instead of unsupported dietlibc