%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 distro cflags and debug pkg %undefine _auto_set_build_flags %global debug_package %{nil} Name: stubble Version: 0.0~%{commitdate}git%{shortcommit} Release: 1%{?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 %make_build %install %make_install %files %license LICENSE.LGPL2.1 %doc README.md %{_prefix}/lib/%{name}/ %{_datadir}/%{name}/ %changelog * Sun Dec 14 2025 Hans de Goede - 0.0~20251118gitb5e720e-1 - Move the git snapshot date + hash to the version field - Use %%undefine _auto_set_build_flags, %%make_build, %%make_install - Add trailing slash after stubble directory listings in %%files * 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