Blame SPECS/efi-rpm-macros.spec

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