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
This commit is contained in:
Stephan Kulow 2013-02-07 13:16:19 +00:00 committed by Git OBS Bridge
commit ea4e6b5652
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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