23f10ec
Summary: Common RPM Macros for building EFI-related packages
23f10ec
Name: efi-rpm-macros
0f7f353
Version: 3
98f3616
Release: 3%{?dist}
23f10ec
Group: Development/System
23f10ec
License: GPLv3+
23f10ec
URL: https://github.com/rhboot/%{name}/
23f10ec
BuildRequires: git sed
23f10ec
BuildArch: noarch
23f10ec
23f10ec
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
4532585
Patch0001: 0001-macros.efi-srpm-make-all-of-our-macros-always-expand.patch
23f10ec
23f10ec
%global debug_package %{nil}
23f10ec
%global _efi_vendor_ %(eval 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
Group: Development/System
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
Group: System Environment/Base
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
23f10ec
%autosetup -S git
23f10ec
23f10ec
%build
23f10ec
%make_build EFI_VENDOR=%{_efi_vendor_} clean all
23f10ec
23f10ec
%install
23f10ec
%make_install EFI_VENDOR=%{_efi_vendor_}
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
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
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.
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.