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