33
44Summary: Common RPM Macros for building EFI-related packages
55Name: efi-rpm-macros
6- Version: 4
7- Release: 6 %{?dist }
8- License: GPLv3
6+ Version: 5
7+ Release: 1 %{?dist }
8+ License: GPL-3.0 -or-later
99Vendor: Microsoft Corporation
1010Distribution: Azure Linux
1111URL: https://github.com/rhboot/%{name }/
12- Source0: https://github.com/rhboot/%{name }/archive/refs/tags/%{version }.tar.gz#/%{name}-%{version}.tar.gz
12+ Source0: https://github.com/rhboot/%{name }/releases/download/%{version }/%{name }-5.tar.bz2
13+
14+ Patch0001: 0001-Don-t-have-arm-as-an-alt-arch-of-aarch64 .patch
15+ Patch0002: 0002-Makefile-fix-permission-on-boot-efi-EFI.patch
1316
1417BuildArch: noarch
1518
1619BuildRequires: %{_sysconfdir }/os-release
1720BuildRequires: bash
1821BuildRequires: git
1922BuildRequires: sed
23+ BuildRequires: make
2024
2125%description
2226%{name } provides a set of RPM macros for use in EFI-related packages.
2327
2428%package -n efi-srpm-macros
2529Summary: Common SRPM Macros for building EFI-related packages
26-
27- Requires: rpm
30+ BuildArch: noarch
31+ Requires: rpm
2832
2933%description -n efi-srpm-macros
3034efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
3135
3236%package -n efi-filesystem
3337Summary: The basic directory layout for EFI machines
34-
35- Requires: filesystem
38+ BuildArch: noarch
39+ Requires: filesystem
3640
3741%description -n efi-filesystem
3842The efi-filesystem package contains the basic directory layout for EFI
3943machine bootloaders and tools.
4044
4145%prep
42- %autosetup -S git
46+ %autosetup -S git_am -n %{ name }-5
4347git config --local --add efi.vendor " %{_efi_vendor_}"
4448git config --local --add efi.esp-root /boot/efi
4549git config --local --add efi.arches " x86_64 aarch64 %{arm} %{ix86}"
4650
4751%build
48- %make_build SHELL=/bin/bash clean all
52+ %make_build clean all
4953
5054%install
51- %make_install SHELL=/bin/bash
55+ %make_install
5256
5357%files -n efi-srpm-macros
58+ %{! ? _licensedir:%global license %%doc }
5459%license LICENSE
5560%doc README
5661%{_rpmmacrodir }/macros.efi-srpm
@@ -64,6 +69,9 @@ git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
6469%dir /boot/efi/EFI/%{_efi_vendor_ }
6570
6671%changelog
72+ * Mon Nov 04 2024 Sumit Jena <v-sumtjena@microsoft.com> - 5-1
73+ - Update to version 5.
74+
6775* Wed May 25 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 4-6
6876- Fixing package build by adding an explicit BR on '/etc/os-release'.
6977- License verified.
0 commit comments