%define efidir %{_datadir}/efitools/efi %global _hardened_build 1 # # This file is auto-generated. DO NOT EDIT # Generated by: autospec.py # Name : efitools Version : 1.8.1 Release : 1%{?dist} URL : https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/efitools-1.8.1.tar.gz Source0 : https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/efitools-1.8.1.tar.gz #Source1 : https://github.com/tianocore/edk2/blob/master/ShellBinPkg/UefiShell/X64/Shell.efi Summary : No detailed summary available Group : Development/Tools License : GPL-2.0 LGPL-2.1 Requires: efitools-bin = %{version}-%{release} Requires: efitools-data = %{version}-%{release} Requires: efitools-license = %{version}-%{release} Requires: efitools-man = %{version}-%{release} Requires: sbsigntools openssl parted dosfstools mtools BuildRequires : gnu-efi BuildRequires : gnu-efi-devel BuildRequires : help2man BuildRequires : openssl-devel openssl git BuildRequires : perl BuildRequires : perl-File-Slurp BuildRequires : sbsigntools Patch1 : 0001-build-sys-add-usr-lib64-and-usr-lib-to-linker-search.patch %description How to use these files simply typing make will build you everything including sample certificates for PK, KEK and db. %package bin Summary: bin components for the efitools package. Group: Binaries Requires: efitools-data = %{version}-%{release} Requires: efitools-license = %{version}-%{release} Requires: efitools-man = %{version}-%{release} %description bin bin components for the efitools package. %package data Summary: data components for the efitools package. Group: Data %description data data components for the efitools package. %package license Summary: license components for the efitools package. Group: Default %description license license components for the efitools package. %package man Summary: man components for the efitools package. Group: Default %description man man components for the efitools package. %prep %autosetup -S git_am %build make %install export SOURCE_DATE_EPOCH=1542395324 rm -rf %{buildroot} mkdir -p %{buildroot}/usr/share/package-licenses/efitools cp COPYING %{buildroot}/usr/share/package-licenses/efitools/COPYING %make_install # install EFI Shell #chmod a-x %{buildroot}/%{efidir}/ #install -p -m 0755 %{SOURCE1} %{buildroot}/%{efidir}/ # provide empty dirs for keys and USB image built by mkusb script install -d %{buildroot}/%{efidir}/keys install -d %{buildroot}/%{efidir}/usb #%files #%defattr(-,root,root,-) %files bin %defattr(-,root,root,-) /usr/bin/cert-to-efi-hash-list /usr/bin/cert-to-efi-sig-list /usr/bin/efi-readvar /usr/bin/efi-updatevar /usr/bin/efitool-mkusb /usr/bin/flash-var /usr/bin/hash-to-efi-sig-list /usr/bin/sig-list-to-certs /usr/bin/sign-efi-sig-list %files data %defattr(-,root,root,-) /usr/share/efitools/COPYING /usr/share/efitools/README /usr/share/efitools/efi/HashTool.efi /usr/share/efitools/efi/HelloWorld.efi /usr/share/efitools/efi/KeyTool.efi /usr/share/efitools/efi/Loader.efi /usr/share/efitools/efi/LockDown.efi /usr/share/efitools/efi/ReadVars.efi /usr/share/efitools/efi/SetNull.efi /usr/share/efitools/efi/ShimReplace.efi /usr/share/efitools/efi/UpdateVars.efi %files license %defattr(0644,root,root,0755) /usr/share/package-licenses/efitools/COPYING %files man %defattr(0644,root,root,0755) /usr/share/man/man1/cert-to-efi-hash-list.1.gz /usr/share/man/man1/cert-to-efi-sig-list.1.gz /usr/share/man/man1/efi-readvar.1.gz /usr/share/man/man1/efi-updatevar.1.gz /usr/share/man/man1/hash-to-efi-sig-list.1.gz /usr/share/man/man1/sig-list-to-certs.1.gz /usr/share/man/man1/sign-efi-sig-list.1.gz %files %defattr(-,root,root,-) %{_bindir}/* %{_mandir}/* %{efidir}/* %doc COPYING %doc README