From 870b51228f74403792a6c6b313fd6b18c0be64b3793586572137539f0f8660c4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 7 Feb 2013 13:16:19 +0000 Subject: [PATCH] Accepting request 151569 from Base:System - grub.efi signing on build server. (forwarded request 151568 from michael-chang) OBS-URL: https://build.opensuse.org/request/show/151569 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=57 --- grub2.changes | 5 +++++ grub2.spec | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/grub2.changes b/grub2.changes index fc7f04e..f3be24c 100644 --- a/grub2.changes +++ b/grub2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 7 10:38:42 UTC 2013 - mchang@suse.com + +- grub.efi signing on build server. + ------------------------------------------------------------------- Wed Jan 30 07:29:29 UTC 2013 - mchang@suse.com diff --git a/grub2.spec b/grub2.spec index 9bd98db..4c83404 100644 --- a/grub2.spec +++ b/grub2.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +# needssslcertforbuild Name: grub2 %ifarch x86_64 ppc64 @@ -47,6 +48,11 @@ BuildRequires: xz-devel %if 0%{?suse_version} == 1210 BuildRequires: guile %endif +%ifarch x86_64 +%if 0%{?suse_version} >= 1230 +BuildRequires: pesign-obs-integration +%endif +%endif # Modules always contain just 32-bit code %define _libdir %{_exec_prefix}/lib @@ -333,6 +339,11 @@ cd grub-efi-%{version} make DESTDIR=$RPM_BUILD_ROOT install install -m 644 grub.efi $RPM_BUILD_ROOT%{_libdir}/%{name}/%{grubefiarch}/grub.efi +%ifarch x86_64 +%if 0%{?suse_version} >= 1230 +export BRP_PESIGN_FILES="%{_libdir}/%{name}/%{grubefiarch}/grub.efi" +%endif +%endif # Create grub.efi link to system efi directory # This is for tools like kiwi not fiddling with the path