From 576ea7db96859ae91d4e5b72538ccfd5db5d9a35 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 12:50:46 +0000 Subject: efi-rpm-macros-3 base --- diff --git a/efi-rpm-macros.spec b/efi-rpm-macros.spec new file mode 100644 index 0000000..69440d7 --- /dev/null +++ b/efi-rpm-macros.spec @@ -0,0 +1,75 @@ +Summary: Common RPM Macros for building EFI-related packages +Name: efi-rpm-macros +Version: 3 +Release: 1%{?dist} +Group: Development/System +License: GPLv3+ +URL: https://github.com/rhboot/%{name}/ +BuildRequires: git sed +BuildArch: noarch + +Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 + +%global debug_package %{nil} +%global _efi_vendor_ %(eval sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release) + +%description +%{name} provides a set of RPM macros for use in EFI-related packages. + +%package -n efi-srpm-macros +Summary: Common SRPM Macros for building EFI-related packages +Group: Development/System +BuildArch: noarch +Requires: rpm + +%description -n efi-srpm-macros +efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages. + +%package -n efi-filesystem +Summary: The basic directory layout for EFI machines +Group: System Environment/Base +BuildArch: noarch +Requires: filesystem + +%description -n efi-filesystem +The efi-filesystem package contains the basic directory layout for EFI +machine bootloaders and tools. + +%prep +%autosetup -S git + +%build +%make_build EFI_VENDOR=%{_efi_vendor_} clean all + +%install +%make_install EFI_VENDOR=%{_efi_vendor_} + +#%%files +#%%{!?_licensedir:%%global license %%%%doc} +#%%license LICENSE +#%%doc README +#%%{_rpmmacrodir}/macros.efi + +%files -n efi-srpm-macros +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README +%{_rpmmacrodir}/macros.efi-srpm + +%files -n efi-filesystem +%defattr(0700,root,root,-) +%dir /boot/efi +%dir /boot/efi/EFI +%dir /boot/efi/EFI/BOOT +%dir /boot/efi/EFI/%{_efi_vendor_} + +%changelog +* Fri May 04 2018 Peter Jones - 3-1 +- Make efi-*-macros packages not be ExclusiveArch, because they need to work + in non-efi-arch packages. + +* Tue May 01 2018 Peter Jones - 2-1 +- Lots of rpmlint fixups and the like. + +* Mon Apr 30 2018 Peter Jones - 1-1 +- First shot at building it.