!54 Fix build error when custom vendor
From: @xiaochn Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
08856edd07
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
Name: supermin
|
Name: supermin
|
||||||
Version: 5.1.19
|
Version: 5.1.19
|
||||||
Release: 19
|
Release: 20
|
||||||
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/
|
||||||
@ -64,7 +64,7 @@ This contains man files for the using of supermin.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%if %{!?openEuler:1}0
|
%if "%{vendor}" != "openEuler"
|
||||||
sed -i 's/; "openEuler"/&; "%{vendor}"/' ./src/ph_rpm.ml
|
sed -i 's/; "openEuler"/&; "%{vendor}"/' ./src/ph_rpm.ml
|
||||||
num=$(grep -n "etc/openEuler-release" ./src/ph_rpm.ml |awk -F ":" '{printf $1}')
|
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
|
sed -i "N;$num i\ (stat \"/etc/%{vendor}-release\").st_kind = S_REG ||" ./src/ph_rpm.ml
|
||||||
@ -97,6 +97,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 11 2024 xiaochn <xiaochuannan@inspur.com> - 5.1.19-20
|
||||||
|
- Fix build error when custom vendor(The openEuler macro is used not only for openEuler, but also for downstream distributions)
|
||||||
|
|
||||||
* Thu Nov 30 2023 chendexi <chendexi@kylinos.cn> - 5.1.19-19
|
* Thu Nov 30 2023 chendexi <chendexi@kylinos.cn> - 5.1.19-19
|
||||||
- Modify release file name due to release package name change
|
- Modify release file name due to release package name change
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user