commit 140bb1b664ca65129de95d51c5387fd777a06bb3 Author: MSVSphere Packaging Team Date: Tue Nov 26 15:54:44 2024 +0300 import efi-rpm-macros-6-3.el10 diff --git a/.efi-rpm-macros.metadata b/.efi-rpm-macros.metadata new file mode 100644 index 0000000..5bfb0ea --- /dev/null +++ b/.efi-rpm-macros.metadata @@ -0,0 +1 @@ +572ed93a939449ed0f2f0cf7dd0ad4739eb2b9d2 SOURCES/efi-rpm-macros-6.tar.bz2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..599a827 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/efi-rpm-macros-6.tar.bz2 diff --git a/SPECS/efi-rpm-macros.spec b/SPECS/efi-rpm-macros.spec new file mode 100644 index 0000000..a898e92 --- /dev/null +++ b/SPECS/efi-rpm-macros.spec @@ -0,0 +1,170 @@ +Summary: Common RPM Macros for building EFI-related packages +Name: efi-rpm-macros +Version: 6 +Release: 3%{?dist} +License: GPL-3.0-or-later +URL: https://github.com/rhboot/%{name}/ +BuildRequires: git sed +BuildRequires: make +BuildArch: noarch + +Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-6.tar.bz2 + +%global debug_package %{nil} +%global _efi_vendor_ %(eval echo $(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. + +%package -n efi-srpm-macros +Summary: Common SRPM Macros for building EFI-related packages +BuildArch: noarch +Requires: rpm + +%description -n efi-srpm-macros +efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages. + +%package -n efi-filesystem +Summary: The basic directory layout for EFI machines +BuildArch: noarch +Requires: filesystem + +%description -n efi-filesystem +The efi-filesystem package contains the basic directory layout for EFI +machine bootloaders and tools. + +%prep +%autosetup -S git_am -n %{name}-6 +git config --local --add efi.vendor "%{_efi_vendor_}" +git config --local --add efi.esp-root /boot/efi +git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}" + +%build +%make_build clean all + +%install +%make_install + +#%%files +#%%{!?_licensedir:%%global license %%%%doc} +#%%license LICENSE +#%%doc README +#%%{_rpmmacrodir}/macros.efi + +%files -n efi-srpm-macros +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README +%{_rpmmacrodir}/macros.efi-srpm +%{_rpmconfigdir}/brp-boot-efi-times + +%files -n efi-filesystem +%defattr(0700,root,root,-) +%dir /boot/efi +%dir /boot/efi/EFI +%dir /boot/efi/EFI/BOOT +%dir /boot/efi/EFI/%{_efi_vendor_} + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 6-3 +- Rebuilt for MSVSphere 10 + +* Tue Jul 30 2024 Nicolas Frayer - 6-3 +- Update to efi-rpm-macros version 6 +- Resolves: #RHEL-50848 + +* Mon Jun 24 2024 Troy Dawson - 5-12 +- Bump release for June 2024 mass rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Dec 13 2023 Nicolas Frayer +- Migrate to SPDX license +- Please refer to https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2 + +* Wed Jul 19 2023 Fedora Release Engineering - 5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 09 2023 Sandro Bonazzola - 5-8 +- Fixes permissions on /boot/efi/EFI +- Resolves: rhbz#2144459 + +* Thu Jan 19 2023 Fedora Release Engineering - 5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Sep 02 2021 Robbie Harwood - 5-4 +- Remove arm as an alt for aarch64 (would require cross compiler) + +* Wed Jul 21 2021 Fedora Release Engineering - 5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Apr 06 2021 Peter Jones - 5-2 +- There's always a typo. + +* Tue Apr 06 2021 Peter Jones - 5-1 +- Add arm as an alt for aarch64 + +* Tue Jan 26 2021 Fedora Release Engineering - 4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Sep 26 2018 Peter Jones - 4-1 +- Provide %%{efi_build_requires} and brp-boot-efi-times + +* Thu Jul 12 2018 Fedora Release Engineering - 3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri May 04 2018 Peter Jones - 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. + +* Fri May 04 2018 Peter Jones - 3-1 +- Update to version 3 to try and un-break rawhide composes due to + ExclusiveArch constraints. + +* Thu May 03 2018 Peter Jones - 2-6 +- Rework the macros for better srpm use. + +* Wed May 02 2018 Peter Jones - 2-5 +- Add efi-filesystem subpackage + +* Wed May 02 2018 Peter Jones - 2-4 +- Add %%{efi_has_alt_arch} + +* Tue May 01 2018 Peter Jones - 2-3 +- Make an efi-srpm-macros subpackage to pull in so %%{efi} works in + ExclusiveArch in koji. + +* Tue May 01 2018 Peter Jones - 2-2 +- Fix the non-efi and non-efi-alt-arch cases, hopefully. +- Make efi-*-macros packages not be ExclusiveArch, because they need to work + in non-efi-arch packages. + +* Tue May 01 2018 Peter Jones - 2-1 +- Lots of rpmlint fixups and the like. + +* Mon Apr 30 2018 Peter Jones - 1-1 +- First shot at building it.