2016-12-02 08:26:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package shim-leap
|
|
|
|
#
|
2017-02-17 05:36:05 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-12-27 06:48:39 +01:00
|
|
|
|
2016-12-02 08:26:45 +01:00
|
|
|
Name: shim-leap
|
|
|
|
Version: 0.9
|
|
|
|
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
|
2016-12-27 06:48:39 +01:00
|
|
|
Source: shim-0.9-13.1.x86_64.rpm
|
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
|
2017-02-17 05:36:05 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: update-bootloader-rpm-macros
|
|
|
|
%endif
|
|
|
|
%if 0%{?update_bootloader_requires:1}
|
|
|
|
%update_bootloader_requires
|
|
|
|
%else
|
2016-12-27 06:48:39 +01:00
|
|
|
Requires: perl-Bootloader
|
2017-02-17 05:36:05 +01:00
|
|
|
%endif
|
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}
|
|
|
|
|
|
|
|
%post -n shim
|
2017-02-17 05:36:05 +01:00
|
|
|
%if 0%{?update_bootloader_check_type_reinit_post:1}
|
|
|
|
%update_bootloader_check_type_reinit_post grub2-efi
|
|
|
|
%else
|
2016-12-02 08:26:45 +01:00
|
|
|
/sbin/update-bootloader --reinit || true
|
2017-02-17 05:36:05 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%posttrans -n shim
|
|
|
|
%{?update_bootloader_posttrans}
|
2016-12-02 08:26:45 +01:00
|
|
|
|
|
|
|
%files -n shim
|
|
|
|
/etc/uefi
|
|
|
|
/usr/sbin/shim-install
|
|
|
|
/usr/lib64/efi
|
|
|
|
/usr/share/doc/packages/shim
|
|
|
|
|
|
|
|
%changelog
|