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