2012-08-13 15:39:34 +00:00
|
|
|
Name: shim
|
|
|
|
Version: 0.1
|
2012-08-13 16:48:29 +00:00
|
|
|
Release: 2%{?dist}
|
2012-08-13 15:39:34 +00:00
|
|
|
Summary: First-stage UEFI bootloader
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: http://www.codon.org.uk/~mjg59/shim/
|
|
|
|
Source0: http://www.codon.org.uk/~mjg59/shim/shim-%{version}.tar.bz2
|
|
|
|
|
2012-08-13 15:47:45 +00:00
|
|
|
BuildRequires: gnu-efi pesign
|
2012-08-13 15:39:34 +00:00
|
|
|
Requires: gnu-efi
|
|
|
|
|
|
|
|
# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
|
|
|
|
# compatible with SysV (there's no red zone under UEFI) and there isn't a
|
|
|
|
# POSIX-style C library.
|
|
|
|
# BuildRequires: OpenSSL
|
|
|
|
|
|
|
|
# Shim is only required on platforms implementing the UEFI secure boot
|
|
|
|
# protocol. The only one of those we currently wish to support is 64-bit x86.
|
|
|
|
# Adding further platforms will require adding appropriate relocation code.
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
# Temporary test key - update before final
|
|
|
|
Patch0: shim-fedora.diff
|
|
|
|
|
2012-08-13 16:48:29 +00:00
|
|
|
Patch1: shim-image-size.patch
|
|
|
|
|
2012-08-13 15:39:34 +00:00
|
|
|
# Shim generates no binaries that run under the installed OS, so debuginfo
|
|
|
|
# is useless
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
2012-08-13 15:45:54 +00:00
|
|
|
# Figure out the right file path to use
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%global efidir redhat
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%global efidir fedora
|
|
|
|
%endif
|
|
|
|
|
2012-08-13 15:39:34 +00:00
|
|
|
%description
|
|
|
|
Initial UEFI bootloader that handles chaining to a trusted full bootloader
|
|
|
|
under secure boot environments.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
2012-08-13 16:48:29 +00:00
|
|
|
%patch1 -p1
|
2012-08-13 15:39:34 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2012-08-13 15:47:45 +00:00
|
|
|
mv shim.efi shim.orig
|
2012-08-13 19:45:52 +00:00
|
|
|
%pesign -s -i shim.orig -o shim.efi
|
2012-08-13 15:45:54 +00:00
|
|
|
install -m 0755 -D shim.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/shim.efi
|
2012-08-13 15:39:34 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc
|
2012-08-13 15:45:54 +00:00
|
|
|
/boot/efi/EFI/%{efidir}/shim.efi
|
2012-08-13 15:39:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-08-13 16:48:29 +00:00
|
|
|
* Mon Aug 13 2012 Josh Boyer <jwboyer@redhat.com> - 0.1-2
|
|
|
|
- Add patch to fix image size calculation
|
|
|
|
|
2012-08-13 15:39:34 +00:00
|
|
|
* Mon Aug 13 2012 Matthew Garrett <mjg@redhat.com> - 0.1-1
|
|
|
|
- initial release
|