diff --git a/shim.spec b/shim.spec index c1ca4868750489fb53cfc0397a4baae222a5b5e5..7dea3092c4987f089f8d90c22478b4c52c75ba01 100644 --- a/shim.spec +++ b/shim.spec @@ -25,7 +25,7 @@ Name: shim Version: 15.6 -Release: 18 +Release: 19 Summary: First-stage UEFI bootloader ExclusiveArch: x86_64 aarch64 License: BSD @@ -177,6 +177,11 @@ install -m 0700 %{SOURCE1} ${RPM_BUILD_ROOT}/%{shimefivendor} %ifarch x86_64 install -m 0700 %{SOURCE2} ${RPM_BUILD_ROOT}/%{shimefivendor} %endif +%if "%{_vendor}" != "openEuler" + iconv -f UTF-16LE -t UTF-8 ${RPM_BUILD_ROOT}/%{shimefivendor}/%{bootcsv} > /tmp/%{bootcsv}.tmp + sed -i -e 's/openeuler/%{_vendor}/g' -e 's/openEuler/%{_vendor}/g' /tmp/%{bootcsv}.tmp + iconv -f UTF-8 -t UTF-16LE /tmp/%{bootcsv}.tmp > ${RPM_BUILD_ROOT}/%{shimefivendor}/%{bootcsv} +%endif # install the debug symbols install -d ${RPM_BUILD_ROOT}/usr/lib/debug/%{shimefivendor} @@ -209,6 +214,9 @@ make test /usr/src/debug/%{name}-%{version}-%{release}/* %changelog +* Mon Apr 22 2024 lijuzhang - 15.6-19 +- replace vendor for BOOTX64.CSV or BOOTAA64.CSV + * Mon Mar 25 2024 yixiangzhike - 15.6-18 - backport patch from upstream