Name: efitools Version: 1.9.2 Release: %autorelease Summary: Tools to manipulate EFI secure boot keys and signatures License: GPL-2.0-only and LGPL-2.1-or-later and BSD-2-Clause # call-to-mktemp: # https://github.com/vathpela/efitools/issues/2 URL: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git Source0: %{url}/snapshot/%{name}-%{version}.tar.gz Patch1: makefile-enable-harden-local-files.patch Patch2: fix-deps.patch Patch3: allow-riscv64-build.patch Patch4: sbat-compat.patch Patch5: fix-ftbfs-lp2083030.patch Patch6: drop-engine-options.patch # same as gnu-efi ExclusiveArch: %{efi} BuildRequires: pkgconfig(openssl) BuildRequires: gcc BuildRequires: gnu-efi-devel BuildRequires: help2man BuildRequires: openssl BuildRequires: perl-File-Slurp BuildRequires: sbsigntools Requires: coreutils Requires: mtools Requires: parted Requires: util-linux Recommends: sbsigntools %description This package installs a variety of tools for manipulating keys and binary signatures on UEFI secure boot platforms. The tools provide access to the keys and certificates stored in the secure variables of the UEFI firmware, usually in the NVRAM area. %prep %autosetup -p1 %build %set_build_flags %make_build %install %make_install DOCDIR=%{buildroot}%{_docdir}/%{name}/ CFLAGS="%{optflags}" rm -v %{buildroot}%{_docdir}/%{name}/COPYING %files %doc README %license COPYING %{_bindir}/cert-to-efi-hash-list %{_bindir}/cert-to-efi-sig-list %{_bindir}/efi-readvar %{_bindir}/efi-updatevar %{_bindir}/efitool-mkusb %{_bindir}/flash-var %{_bindir}/hash-to-efi-sig-list %{_bindir}/sig-list-to-certs %{_bindir}/sign-efi-sig-list %{_mandir}/man1/*.1* %changelog %autochangelog