2018-05-01 17:03:22 +00:00
|
|
|
Summary: Common RPM Macros for building EFI-related packages
|
|
|
|
Name: efi-rpm-macros
|
|
|
|
Version: 2
|
2018-05-01 19:46:16 +00:00
|
|
|
Release: 3%{?dist}
|
2018-05-01 17:03:22 +00:00
|
|
|
Group: Development/System
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://github.com/rhboot/%{name}/
|
|
|
|
ExclusiveArch: x86_64 aarch64 %{arm} %{ix86}
|
|
|
|
BuildRequires: git sed
|
|
|
|
Requires: rpm
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
Patch0001: 0001-Simplify-efi_arch_upper.patch
|
|
|
|
Patch0002: 0002-Add-a-changelog-entry-to-the-.spec-for-version-2.patch
|
|
|
|
Patch0003: 0003-efi-rpm-macros.spec.in-use-autosetup.patch
|
|
|
|
Patch0004: 0004-Add-efi_alt_arch-and-efi_alt_arch_upper.patch
|
|
|
|
Patch0005: 0005-Return-nil-instead-of-on-unsupported-arches.patch
|
2018-05-01 18:49:43 +00:00
|
|
|
Patch0006: 0006-efi_arch-turns-out-nil-is-definitely-not-what-we-wan.patch
|
2018-05-01 19:46:16 +00:00
|
|
|
Patch0007: 0007-Make-a-macros.efi-srpm-that-defines-efi.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
|
|
|
|
Requires: rpm
|
|
|
|
|
|
|
|
%description -n efi-srpm-macros
|
|
|
|
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
|
|
|
|
|
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_}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README
|
2018-05-01 19:46:16 +00:00
|
|
|
%{_rpmmacrodir}/macros.efi
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%changelog
|
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.
|