Blame SPECS/efi-rpm-macros.spec

5bd8ca
Summary: Common RPM Macros for building EFI-related packages
5bd8ca
Name: efi-rpm-macros
5bd8ca
Version: 4
25bffe
Release: 9%{?dist}
5bd8ca
License: GPLv3+
5bd8ca
URL: https://github.com/rhboot/%{name}/
5bd8ca
BuildRequires: git sed
5bd8ca
BuildRequires: make
5bd8ca
BuildArch: noarch
5bd8ca
5bd8ca
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-4.tar.bz2
5bd8ca
5bd8ca
%global debug_package %{nil}
5bd8ca
%global _efi_vendor_ %(eval echo $(sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release))
5bd8ca
5bd8ca
%description
5bd8ca
%{name} provides a set of RPM macros for use in EFI-related packages.
5bd8ca
5bd8ca
%package -n efi-srpm-macros
5bd8ca
Summary: Common SRPM Macros for building EFI-related packages
5bd8ca
BuildArch: noarch
5bd8ca
Requires: rpm
5bd8ca
5bd8ca
%description -n efi-srpm-macros
5bd8ca
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
5bd8ca
5bd8ca
%package -n efi-filesystem
5bd8ca
Summary: The basic directory layout for EFI machines
5bd8ca
BuildArch: noarch
5bd8ca
Requires: filesystem
5bd8ca
5bd8ca
%description -n efi-filesystem
5bd8ca
The efi-filesystem package contains the basic directory layout for EFI
5bd8ca
machine bootloaders and tools.
5bd8ca
5bd8ca
%prep
5bd8ca
%autosetup -S git -n %{name}-4
5bd8ca
git config --local --add efi.vendor "%{_efi_vendor_}"
5bd8ca
git config --local --add efi.esp-root /boot/efi
5bd8ca
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
5bd8ca
5bd8ca
%build
5bd8ca
%make_build clean all
5bd8ca
5bd8ca
%install
5bd8ca
%make_install
5bd8ca
5bd8ca
#%%files
5bd8ca
#%%{!?_licensedir:%%global license %%%%doc}
5bd8ca
#%%license LICENSE
5bd8ca
#%%doc README
5bd8ca
#%%{_rpmmacrodir}/macros.efi
5bd8ca
5bd8ca
%files -n efi-srpm-macros
5bd8ca
%{!?_licensedir:%global license %%doc}
5bd8ca
%license LICENSE
5bd8ca
%doc README
5bd8ca
%{_rpmmacrodir}/macros.efi-srpm
5bd8ca
%{_rpmconfigdir}/brp-boot-efi-times
5bd8ca
5bd8ca
%files -n efi-filesystem
5bd8ca
%defattr(0700,root,root,-)
25bffe
%verify(not mode) %dir /boot/efi
25bffe
%verify(not mode) %dir /boot/efi/EFI
25bffe
%verify(not mode) %dir /boot/efi/EFI/BOOT
25bffe
%verify(not mode) %dir /boot/efi/EFI/%{_efi_vendor_}
5bd8ca
5bd8ca
%changelog
25bffe
* Mon Nov 08 2021 Robbie Harwood <rharwood@redhat.com> - 4-9
25bffe
- Ignore the mode bits when doing RPM verification of files in /boot/efi
25bffe
- Resolves: rhbz#1936384
25bffe
5bd8ca
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4-8
5bd8ca
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
5bd8ca
  Related: rhbz#1991688
5bd8ca
5bd8ca
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 4-7
5bd8ca
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
5bd8ca
5bd8ca
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4-6
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5bd8ca
5bd8ca
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4-5
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5bd8ca
5bd8ca
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4-4
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5bd8ca
5bd8ca
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5bd8ca
5bd8ca
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4-2
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5bd8ca
5bd8ca
* Wed Sep 26 2018 Peter Jones <pjones@redhat.com> - 4-1
5bd8ca
- Provide %%{efi_build_requires} and brp-boot-efi-times
5bd8ca
5bd8ca
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-3
5bd8ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5bd8ca
5bd8ca
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-2
5bd8ca
- Always provide macros for efi_arch and efi_alt_arch (and their _upper
5bd8ca
  variants), and make efi_has_arch and efi_has_alt_arch 0 when they will be
5bd8ca
  wrong.  This ensures everything can always expand when we're on a non-efi
5bd8ca
  architecture.
5bd8ca
5bd8ca
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-1
5bd8ca
- Update to version 3 to try and un-break rawhide composes due to
5bd8ca
  ExclusiveArch constraints.
5bd8ca
5bd8ca
* Thu May 03 2018 Peter Jones <pjones@redhat.com> - 2-6
5bd8ca
- Rework the macros for better srpm use.
5bd8ca
5bd8ca
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-5
5bd8ca
- Add efi-filesystem subpackage
5bd8ca
5bd8ca
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-4
5bd8ca
- Add %%{efi_has_alt_arch}
5bd8ca
5bd8ca
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-3
5bd8ca
- Make an efi-srpm-macros subpackage to pull in so %%{efi} works in
5bd8ca
  ExclusiveArch in koji.
5bd8ca
5bd8ca
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-2
5bd8ca
- Fix the non-efi and non-efi-alt-arch cases, hopefully.
5bd8ca
- Make efi-*-macros packages not be ExclusiveArch, because they need to work
5bd8ca
  in non-efi-arch packages.
5bd8ca
5bd8ca
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-1
5bd8ca
- Lots of rpmlint fixups and the like.
5bd8ca
5bd8ca
* Mon Apr 30 2018 Peter Jones <pjones@redhat.com> - 1-1
5bd8ca
- First shot at building it.