support openEuler signature

Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit ff7aab7c6032ca8c05300ebc886d3d6c8c58af2f)
This commit is contained in:
Qiumiao Zhang 2023-11-16 11:26:06 +08:00 committed by openeuler-sync-bot
parent 058486aa96
commit 01e5499b45

View File

@ -14,7 +14,7 @@
Name: grub2 Name: grub2
Epoch: 1 Epoch: 1
Version: 2.06 Version: 2.06
Release: 38 Release: 39
Summary: Bootloader with support for Linux, Multiboot and more Summary: Bootloader with support for Linux, Multiboot and more
License: GPLv3+ License: GPLv3+
URL: http://www.gnu.org/software/grub/ URL: http://www.gnu.org/software/grub/
@ -41,6 +41,10 @@ BuildRequires: freetype-devel libusb-devel bzip2-devel rpm-devel rpm-libs
BuildRequires: autoconf automake device-mapper-devel freetype-devel git BuildRequires: autoconf automake device-mapper-devel freetype-devel git
BuildRequires: texinfo gettext-devel dejavu-sans-fonts help2man systemd fuse-devel BuildRequires: texinfo gettext-devel dejavu-sans-fonts help2man systemd fuse-devel
%if 0%{?openEuler_sign_rsa}
BuildRequires: sign-openEuler
%endif
%ifarch %{golang_arches} %ifarch %{golang_arches}
BuildRequires: pesign >= 0.99-8 BuildRequires: pesign >= 0.99-8
%endif %endif
@ -197,6 +201,10 @@ makeinfo --info --no-split -I docs -o docs/grub-dev.info docs/grub-dev.texi
makeinfo --info --no-split -I docs -o docs/grub.info docs/grub.texi makeinfo --info --no-split -I docs -o docs/grub.info docs/grub.texi
makeinfo --html --no-split -I docs -o docs/grub-dev.html docs/grub-dev.texi makeinfo --html --no-split -I docs -o docs/grub-dev.html docs/grub-dev.texi
makeinfo --html --no-split -I docs -o docs/grub.html docs/grub.texi makeinfo --html --no-split -I docs -o docs/grub.html docs/grub.texi
%if 0%{?openEuler_sign_rsa}
/opt/sign-openEuler/client --config /opt/sign-openEuler/config.toml add --key-name default-x509ee --file-type efi-image --key-type x509ee --sign-type authenticode %{_builddir}/grub-%{version}/grub-%{grubefiarch}-%{tarversion}/%{grubefiname}
/opt/sign-openEuler/client --config /opt/sign-openEuler/config.toml add --key-name default-x509ee --file-type efi-image --key-type x509ee --sign-type authenticode %{_builddir}/grub-%{version}/grub-%{grubefiarch}-%{tarversion}/%{grubeficdname}
%endif
%check %check
pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core
@ -440,6 +448,12 @@ fi
%{_datadir}/man/man* %{_datadir}/man/man*
%changelog %changelog
* Thu Nov 16 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-39
- Type:requirement
- CVE:NA
- SUG:NA
- DESC:support openEuler signature
* Sat Oct 7 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-38 * Sat Oct 7 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.06-38
- Type:CVE - Type:CVE
- CVE:CVE-2023-4692 CVE-2023-4693 - CVE:CVE-2023-4692 CVE-2023-4693