%global commit b5e720e4a080bf4e7cc2edc09c19d73db21b401a %global commitdate 20251118 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # This builds an UEFI binary, not a Linux ELF binary, disable debug sub-packages %global debug_package %{nil} Name: stubble Version: 0.0 Release: 2.%{commitdate}git%{shortcommit}%{?dist} Summary: UEFI kernel boot stub with auto-DTB selection License: LGPL-2.1-or-later URL: https://github.com/ubuntu/%{name}/ Source0: https://github.com/ubuntu/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz # To be dropped after package-review, needed to get this added to the .src.rpm Source1: %{name}.rpmlintrc Patch1: 0001-Makefile-Add-fPIC-to-CFLAGS.patch BuildRequires: make gcc python3-pyelftools # This is only useful on aarch64 ExclusiveArch: aarch64 %description A minimal UEFI kernel boot stub that serves a single purpose: Loading machine specific device trees embedded within a kernel image. stubble is compatible with systemd-stub(7) and ukify(1). %prep %autosetup -p 1 -n %{name}-%{commit} %build # This builds an UEFI binary, not a Linux ELF binary, disable distro flags unset CFLAGS unset LDFLAGS make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT %files %license LICENSE.LGPL2.1 %doc README.md %{_prefix}/lib/%{name} %{_datadir}/%{name} %changelog * Sat Dec 13 2025 Hans de Goede - 0.0-2.20251118gitb5e720e - Add ExclusiveArch: aarch64 * Sat Dec 13 2025 Hans de Goede - 0.0-1.20251118gitb5e720e - Initial Fedora stubble package