2016-12-02 08:26:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package shim-leap
|
|
|
|
#
|
2021-04-27 10:07:02 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-12-02 08:26:45 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-06 04:30:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-12-02 08:26:45 +01:00
|
|
|
#
|
|
|
|
|
2016-12-27 06:48:39 +01:00
|
|
|
|
2020-03-27 07:45:43 +01:00
|
|
|
# Move 'efi'-executables to '/usr/share/efi' (FATE#326960, bsc#1166523)
|
|
|
|
%define sysefibasedir %{_datadir}/efi
|
|
|
|
%define sysefidir %{sysefibasedir}/%{_target_cpu}
|
2020-03-30 08:34:39 +02:00
|
|
|
%if 0%{?suse_version} < 1600
|
2020-03-27 07:45:43 +01:00
|
|
|
# provide compatibility sym-link for residual kiwi, etc.
|
|
|
|
%define shim_lib64_share_compat 1
|
|
|
|
%endif
|
|
|
|
|
2016-12-02 08:26:45 +01:00
|
|
|
Name: shim-leap
|
2021-04-27 10:07:02 +02:00
|
|
|
Version: 15.4
|
2016-12-02 08:26:45 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: UEFI shim loader
|
2016-12-27 06:48:39 +01:00
|
|
|
License: BSD-2-Clause
|
2016-12-02 08:26:45 +01:00
|
|
|
Group: System/Boot
|
2021-04-27 10:07:02 +02:00
|
|
|
Source: shim-15.4-lp152.4.8.1.x86_64.rpm
|
|
|
|
Source1: README
|
2021-05-07 11:30:06 +02:00
|
|
|
Source2: shim-install
|
2016-12-02 08:26:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
|
|
|
%description
|
|
|
|
does not exist
|
|
|
|
|
|
|
|
%package -n shim
|
2016-12-27 06:48:39 +01:00
|
|
|
Summary: UEFI shim loader
|
|
|
|
Group: System/Boot
|
|
|
|
Requires: perl-Bootloader
|
2016-12-02 08:26:45 +01:00
|
|
|
|
|
|
|
%description -n shim
|
|
|
|
shim is a trivial EFI application that, when run, attempts to open and
|
|
|
|
execute another application.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
rpm2cpio %{SOURCE0} | cpio --extract --unconditional --preserve-modification-time --make-directories
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
# purely repackaged
|
|
|
|
cp -a * %{buildroot}
|
2021-04-27 10:07:02 +02:00
|
|
|
cp %{S:1} .
|
2020-03-27 07:45:43 +01:00
|
|
|
|
2021-05-07 11:30:06 +02:00
|
|
|
# install updated shim-install
|
|
|
|
chmod +x %{S:2}
|
|
|
|
cp %{S:2} %{buildroot}/%{_sbindir}/shim-install
|
|
|
|
|
2016-12-02 08:26:45 +01:00
|
|
|
%post -n shim
|
|
|
|
/sbin/update-bootloader --reinit || true
|
|
|
|
|
|
|
|
%files -n shim
|
2021-04-27 10:07:02 +02:00
|
|
|
%doc README
|
2020-03-27 07:45:43 +01:00
|
|
|
%dir %{?sysefibasedir}
|
|
|
|
%dir %{sysefidir}
|
|
|
|
%{sysefidir}/shim.efi
|
|
|
|
%{sysefidir}/shim-*.efi
|
|
|
|
%{sysefidir}/shim-*.der
|
|
|
|
%{sysefidir}/MokManager.efi
|
|
|
|
%{sysefidir}/fallback.efi
|
|
|
|
%if %{defined shim_lib64_share_compat}
|
|
|
|
# provide compatibility sym-link for previous kiwi, etc.
|
|
|
|
%dir /usr/lib64/efi
|
|
|
|
/usr/lib64/efi/*.efi
|
|
|
|
%endif
|
2016-12-02 08:26:45 +01:00
|
|
|
/etc/uefi
|
2021-05-07 11:30:06 +02:00
|
|
|
%{_sbindir}/shim-install
|
2016-12-02 08:26:45 +01:00
|
|
|
/usr/share/doc/packages/shim
|
|
|
|
|
|
|
|
%changelog
|