Blame SPECS/efi-rpm-macros.spec

2c0ffb
Summary: Common RPM Macros for building EFI-related packages
2c0ffb
Name: efi-rpm-macros
2c0ffb
Version: 3
2c0ffb
Release: 3%{?dist}
2c0ffb
Group: Development/System
2c0ffb
License: GPLv3+
2c0ffb
URL: https://github.com/rhboot/%{name}/
2c0ffb
BuildRequires: git sed
2c0ffb
BuildArch: noarch
2c0ffb
2c0ffb
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
2c0ffb
Patch0001: 0001-macros.efi-srpm-make-all-of-our-macros-always-expand.patch
2c0ffb
2c0ffb
%global debug_package %{nil}
2c0ffb
%global _efi_vendor_ %(eval echo $(sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release))
2c0ffb
2c0ffb
%description
2c0ffb
%{name} provides a set of RPM macros for use in EFI-related packages.
2c0ffb
2c0ffb
%package -n efi-srpm-macros
2c0ffb
Summary: Common SRPM Macros for building EFI-related packages
2c0ffb
Group: Development/System
2c0ffb
BuildArch: noarch
2c0ffb
Requires: rpm
2c0ffb
2c0ffb
%description -n efi-srpm-macros
2c0ffb
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
2c0ffb
2c0ffb
%package -n efi-filesystem
2c0ffb
Summary: The basic directory layout for EFI machines
2c0ffb
Group: System Environment/Base
2c0ffb
BuildArch: noarch
2c0ffb
Requires: filesystem
2c0ffb
2c0ffb
%description -n efi-filesystem
2c0ffb
The efi-filesystem package contains the basic directory layout for EFI
2c0ffb
machine bootloaders and tools.
2c0ffb
2c0ffb
%prep
2c0ffb
%autosetup -S git
2c0ffb
2c0ffb
%build
2c0ffb
%make_build EFI_VENDOR=%{_efi_vendor_} clean all
2c0ffb
2c0ffb
%install
2c0ffb
%make_install EFI_VENDOR=%{_efi_vendor_}
2c0ffb
2c0ffb
#%%files
2c0ffb
#%%{!?_licensedir:%%global license %%%%doc}
2c0ffb
#%%license LICENSE
2c0ffb
#%%doc README
2c0ffb
#%%{_rpmmacrodir}/macros.efi
2c0ffb
2c0ffb
%files -n efi-srpm-macros
2c0ffb
%{!?_licensedir:%global license %%doc}
2c0ffb
%license LICENSE
2c0ffb
%doc README
2c0ffb
%{_rpmmacrodir}/macros.efi-srpm
2c0ffb
2c0ffb
%files -n efi-filesystem
2c0ffb
%defattr(0700,root,root,-)
2c0ffb
%verify(not mode) %dir /boot/efi
2c0ffb
%verify(not mode) %dir /boot/efi/EFI
2c0ffb
%verify(not mode) %dir /boot/efi/EFI/BOOT
2c0ffb
%verify(not mode) %dir /boot/efi/EFI/%{_efi_vendor_}
2c0ffb
2c0ffb
%changelog
2c0ffb
* Thu Nov 05 2020 Javier Martinez Canillas <javierm@redhat.com> - 3-3
2c0ffb
- Ignore the mode bits when doing RPM verification of files in /boot/efi
2c0ffb
  Resolves: rhbz#1845052
2c0ffb
2c0ffb
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-2
2c0ffb
- Always provide macros for efi_arch and efi_alt_arch (and their _upper
2c0ffb
  variants), and make efi_has_arch and efi_has_alt_arch 0 when they will be
2c0ffb
  wrong.  This ensures everything can always expand when we're on a non-efi
2c0ffb
  architecture.
2c0ffb
2c0ffb
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-1
2c0ffb
- Update to version 3 to try and un-break rawhide composes due to
2c0ffb
  ExclusiveArch constraints.
2c0ffb
2c0ffb
* Thu May 03 2018 Peter Jones <pjones@redhat.com> - 2-6
2c0ffb
- Rework the macros for better srpm use.
2c0ffb
2c0ffb
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-5
2c0ffb
- Add efi-filesystem subpackage
2c0ffb
2c0ffb
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-4
2c0ffb
- Add %%{efi_has_alt_arch}
2c0ffb
2c0ffb
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-3
2c0ffb
- Make an efi-srpm-macros subpackage to pull in so %%{efi} works in
2c0ffb
  ExclusiveArch in koji.
2c0ffb
2c0ffb
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-2
2c0ffb
- Fix the non-efi and non-efi-alt-arch cases, hopefully.
2c0ffb
2c0ffb
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-1
2c0ffb
- Lots of rpmlint fixups and the like.
2c0ffb
2c0ffb
* Mon Apr 30 2018 Peter Jones <pjones@redhat.com> - 1-1
2c0ffb
- First shot at building it.