%global debug_package %{nil} Name: uke-control-fedora-spawn-check Version: 1.0.0 Release: 1%{?dist} Summary: Rust working-directory spawn ABI check on Fedora ARM64 License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust gcc binutils coreutils grep %description Verify the stable glibc alias with the package Cargo linker driver. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %build export UKE_SPAWN_COMPAT_OBJECT="$PWD/posix-spawn-compat.o" export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="$PWD/posix-spawn-linker.sh" rustc --edition=2021 --crate-type=lib --emit=obj -C panic=abort -C opt-level=2 -C relocation-model=pic -o "$UKE_SPAWN_COMPAT_OBJECT" posix-spawn-compat.rs cargo build --offline --release --target-dir target readelf -W --dyn-syms target/release/%{name} > runtime.symbols grep -E 'UND.*posix_spawn_file_actions_addchdir_np@GLIBC_2[.]29' runtime.symbols if grep -E 'UND.*@GLIBC_2[.]45([[:space:]]|$)' runtime.symbols; then exit 1; fi %install install -D -m755 target/release/%{name} %{buildroot}%{_libexecdir}/%{name} %check %{buildroot}%{_libexecdir}/%{name} %files %license LICENSE %{_libexecdir}/%{name} %changelog * Wed Dec 02 2026 Uke Linux Maintainers - 1.0.0-1 - Verify working-directory spawn via the stable glibc ABI.