%global debug_package %{nil} Name: uke-control-boot-notify-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 boot and charging notification contract test License: MIT ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) crate(serde/default) crate(serde_json/default) BuildRequires: gcc pkgconfig(libsystemd) /usr/bin/dbus-run-session binutils %description Qualifies the Rust boot notification consumer and its shared charging-message transport on a private session bus. The result is a build receipt. %prep %autosetup %cargo_prep %build cargo build --offline --release --bin boot-notify %install sha256sum src/{bus,boot_notice,state}.rs src/bin/boot-notify.rs tests/boot-notify-fixture.c > notification-sources.sha256 install -D -m644 notification-sources.sha256 %{buildroot}%{_docdir}/%{name}/notification-sources.sha256 %check %{__cc} %{build_cflags} -std=gnu17 -Wall -Wextra -Werror -UNDEBUG $(pkg-config --cflags libsystemd) tests/boot-notify-fixture.c %{build_ldflags} $(pkg-config --libs libsystemd) -o notify-fixture cargo test --offline --release --lib -- --nocapture UKE_BOOT_NOTIFY_FIXTURE="$PWD/notify-fixture" timeout 24s dbus-run-session -- cargo test --offline --release --lib boot_notice_native_bus -- --ignored --nocapture readelf -h target/release/boot-notify > boot-notify.elf readelf -d target/release/boot-notify >> boot-notify.elf grep -F 'AArch64' boot-notify.elf if grep -F 'libstdc++' boot-notify.elf; then exit 1; fi %files %license LICENSE %{_docdir}/%{name}/notification-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Exercise the Rust boot and charging notification protocol on a private bus.