23f10ec
Summary: Common RPM Macros for building EFI-related packages
23f10ec
Name: efi-rpm-macros
241577e
Version: 4
c6c4986
Release: 3%{?dist}
23f10ec
License: GPLv3+
23f10ec
URL: https://github.com/rhboot/%{name}/
23f10ec
BuildRequires: git sed
23f10ec
BuildArch: noarch
23f10ec
241577e
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-4.tar.bz2
23f10ec
23f10ec
%global debug_package %{nil}
1afd764
%global _efi_vendor_ %(eval echo $(sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release))
23f10ec
23f10ec
%description
23f10ec
%{name} provides a set of RPM macros for use in EFI-related packages.
23f10ec
90fc9fd
%package -n efi-srpm-macros
90fc9fd
Summary: Common SRPM Macros for building EFI-related packages
90fc9fd
BuildArch: noarch
0f7f353
Requires: rpm
90fc9fd
90fc9fd
%description -n efi-srpm-macros
90fc9fd
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
90fc9fd
4d38fc3
%package -n efi-filesystem
4d38fc3
Summary: The basic directory layout for EFI machines
4d38fc3
BuildArch: noarch
4d38fc3
Requires: filesystem
4d38fc3
4d38fc3
%description -n efi-filesystem
4d38fc3
The efi-filesystem package contains the basic directory layout for EFI
4d38fc3
machine bootloaders and tools.
4d38fc3
23f10ec
%prep
241577e
%autosetup -S git -n %{name}-4
241577e
git config --local --add efi.vendor "%{_efi_vendor_}"
241577e
git config --local --add efi.esp-root /boot/efi
241577e
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
23f10ec
23f10ec
%build
241577e
%make_build clean all
23f10ec
23f10ec
%install
241577e
%make_install
23f10ec
ce43d30
#%%files
ce43d30
#%%{!?_licensedir:%%global license %%%%doc}
ce43d30
#%%license LICENSE
ce43d30
#%%doc README
ce43d30
#%%{_rpmmacrodir}/macros.efi
90fc9fd
90fc9fd
%files -n efi-srpm-macros
90fc9fd
%{!?_licensedir:%global license %%doc}
90fc9fd
%license LICENSE
90fc9fd
%doc README
90fc9fd
%{_rpmmacrodir}/macros.efi-srpm
241577e
%{_rpmconfigdir}/brp-boot-efi-times
23f10ec
4d38fc3
%files -n efi-filesystem
4d38fc3
%defattr(0700,root,root,-)
700a7cb
%dir /boot/efi
700a7cb
%dir /boot/efi/EFI
700a7cb
%dir /boot/efi/EFI/BOOT
700a7cb
%dir /boot/efi/EFI/%{_efi_vendor_}
4d38fc3
23f10ec
%changelog
c6c4986
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
c6c4986
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c6c4986
4765e4a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4-2
4765e4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4765e4a
241577e
* Wed Sep 26 2018 Peter Jones <pjones@redhat.com> - 4-1
241577e
- Provide %%{efi_build_requires} and brp-boot-efi-times
241577e
98f3616
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-3
98f3616
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
98f3616
4532585
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-2
4532585
- Always provide macros for efi_arch and efi_alt_arch (and their _upper
4532585
  variants), and make efi_has_arch and efi_has_alt_arch 0 when they will be
4532585
  wrong.  This ensures everything can always expand when we're on a non-efi
4532585
  architecture.
4532585
0f7f353
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3-1
0f7f353
- Update to version 3 to try and un-break rawhide composes due to
0f7f353
  ExclusiveArch constraints.
0f7f353
ce43d30
* Thu May 03 2018 Peter Jones <pjones@redhat.com> - 2-6
ce43d30
- Rework the macros for better srpm use.
ce43d30
4d38fc3
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-5
4d38fc3
- Add efi-filesystem subpackage
4d38fc3
0f7061b
* Wed May 02 2018 Peter Jones <pjones@redhat.com> - 2-4
0f7061b
- Add %%{efi_has_alt_arch}
0f7061b
90fc9fd
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-3
90fc9fd
- Make an efi-srpm-macros subpackage to pull in so %%{efi} works in
90fc9fd
  ExclusiveArch in koji.
90fc9fd
8b76186
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-2
8b76186
- Fix the non-efi and non-efi-alt-arch cases, hopefully.
241577e
- Make efi-*-macros packages not be ExclusiveArch, because they need to work
241577e
  in non-efi-arch packages.
8b76186
23f10ec
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 2-1
23f10ec
- Lots of rpmlint fixups and the like.
23f10ec
23f10ec
* Mon Apr 30 2018 Peter Jones <pjones@redhat.com> - 1-1
23f10ec
- First shot at building it.