11%global debug_package %{nil }
22%ifarch x86_64
33%global buildarch x86_64
4+ %global grubefiname grubx64.efi
5+ %global sdbootefiname systemd-bootx64.efi
6+ %elifarch aarch64
7+ %global buildarch aarch64
8+ %global grubefiname grubaa64.efi
9+ %global sdbootefiname systemd-bootaa64.efi
410%endif
511
612# Support for quick builds with rpmbuild --build-in-place.
@@ -14,7 +20,7 @@ Version: 255
1420# determine the build information from local checkout
1521Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
1622%endif
17- Release: 22 %{?dist }
23+ Release: 23 %{?dist }
1824License: LGPL-2.1 -or-later AND MIT AND GPL-2.0 -or-later
1925Vendor: Microsoft Corporation
2026Distribution: Azure Linux
@@ -32,8 +38,7 @@ URL: https://systemd.io
3238# 3. Place the unsigned package and signed binary in this spec's folder
3339# 4. Build this spec
3440Source0: systemd-boot-%{version }-%{release }.%{buildarch }.rpm
35- Source1: systemd-bootx64.efi
36- ExclusiveArch: x86_64
41+ Source1: %{sdbootefiname }
3742
3843%description
3944This package contains the systemd-boot EFI binary signed for secure boot. The package is
@@ -71,8 +76,8 @@ pushd rpm_contents
7176
7277# This spec's whole purpose is to inject the signed systemd-boot binary
7378rpm2cpio %{SOURCE0 } | cpio -idmv
74- cp %{SOURCE1 } ./usr/lib/systemd/boot/efi/systemd-bootx64.efi
7579
80+ cp %{SOURCE1 } ./usr/lib/systemd/boot/efi/%{sdbootefiname }
7681popd
7782
7883%install
@@ -81,7 +86,7 @@ pushd rpm_contents
8186# Don't use * wildcard. It does not copy over hidden files in the root folder...
8287cp -rp ./. %{buildroot }/
8388
84- cp %{buildroot }/usr/lib/systemd/boot/efi/systemd-bootx64.efi %{buildroot }/boot/efi/EFI/BOOT/grubx64.efi
89+ cp %{buildroot }/usr/lib/systemd/boot/efi/%{ sdbootefiname } %{buildroot }/boot/efi/EFI/BOOT/%{ grubefiname }
8590
8691popd
8792
9095/usr/share/man/man5/loader.conf.5.gz
9196/usr/share/man/man7/sd-boot.7.gz
9297/usr/share/man/man7/systemd-boot.7.gz
93- /boot/efi/EFI/BOOT/grubx64.efi
98+ /boot/efi/EFI/BOOT/%{ grubefiname }
9499
95100%changelog
101+ *
Mon Aug 18 2025 Sean Dougherty <[email protected] > -
255-23 102+ - Add aarch64 package
103+
96104*
Wed Aug 06 2025 Sean Dougherty <[email protected] > -
255-22 97105- Bump release to match systemd spec
98106
0 commit comments