Blame efi-rpm-macros.spec.in

Packit 9326b0
Summary: Common RPM Macros for building EFI-related packages
Packit 9326b0
Name: efi-rpm-macros
Packit 9326b0
Version: @@EFI_RPM_MACROS_VERSION@@
Packit 9326b0
Release: 1%{?dist}
Packit 9326b0
Group: Development/System
Packit 9326b0
License: GPLv3+
Packit 9326b0
URL: https://github.com/rhboot/%{name}/
Packit 9326b0
BuildRequires: git sed
Packit 9326b0
BuildArch: noarch
Packit 9326b0
Packit 9326b0
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
Packit 9326b0
Packit 9326b0
%global debug_package %{nil}
Packit 9326b0
%global _efi_vendor_ %(eval sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release)
Packit 9326b0
Packit 9326b0
%description
Packit 9326b0
%{name} provides a set of RPM macros for use in EFI-related packages.
Packit 9326b0
Packit 9326b0
%package -n efi-srpm-macros
Packit 9326b0
Summary: Common SRPM Macros for building EFI-related packages
Packit 9326b0
Group: Development/System
Packit 9326b0
BuildArch: noarch
Packit 9326b0
Requires: rpm
Packit 9326b0
Packit 9326b0
%description -n efi-srpm-macros
Packit 9326b0
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
Packit 9326b0
Packit 9326b0
%package -n efi-filesystem
Packit 9326b0
Summary: The basic directory layout for EFI machines
Packit 9326b0
Group: System Environment/Base
Packit 9326b0
BuildArch: noarch
Packit 9326b0
Requires: filesystem
Packit 9326b0
Packit 9326b0
%description -n efi-filesystem
Packit 9326b0
The efi-filesystem package contains the basic directory layout for EFI
Packit 9326b0
machine bootloaders and tools.
Packit 9326b0
Packit 9326b0
%prep
Packit 9326b0
%autosetup -S git
Packit 9326b0
Packit 9326b0
%build
Packit 9326b0
%make_build EFI_VENDOR=%{_efi_vendor_} clean all
Packit 9326b0
Packit 9326b0
%install
Packit 9326b0
%make_install EFI_VENDOR=%{_efi_vendor_}
Packit 9326b0
Packit 9326b0
#%%files
Packit 9326b0
#%%{!?_licensedir:%%global license %%%%doc}
Packit 9326b0
#%%license LICENSE
Packit 9326b0
#%%doc README
Packit 9326b0
#%%{_rpmmacrodir}/macros.efi
Packit 9326b0
Packit 9326b0
%files -n efi-srpm-macros
Packit 9326b0
%{!?_licensedir:%global license %%doc}
Packit 9326b0
%license LICENSE
Packit 9326b0
%doc README
Packit 9326b0
%{_rpmmacrodir}/macros.efi-srpm
Packit 9326b0
Packit 9326b0
%files -n efi-filesystem
Packit 9326b0
%defattr(0700,root,root,-)
Packit 9326b0
%dir /boot/efi
Packit 9326b0
%dir /boot/efi/EFI
Packit 9326b0
%dir /boot/efi/EFI/BOOT
Packit 9326b0
%dir /boot/efi/EFI/%{_efi_vendor_}
Packit 9326b0
Packit 9326b0
%changelog
Packit 9326b0
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-1
Packit 9326b0
- Make efi-*-macros packages not be ExclusiveArch, because they need to work
Packit 9326b0
  in non-efi-arch packages.
Packit 9326b0
Packit 9326b0
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-1
Packit 9326b0
- Lots of rpmlint fixups and the like.
Packit 9326b0
Packit 9326b0
* Mon Apr 30 2018 Peter Jones <pjones@redhat.com> - 1-1
Packit 9326b0
- First shot at building it.