%global debug_package %{nil} Name: uke-control-speaker-calibration-check Version: 1.1.0 Release: 1%{?dist} Summary: ARM64 synthetic witness for Uke speaker calibration License: GPL-2.0-only ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros cargo rust gcc-c++ coreutils crate(libc/default) pkgconfig(libcrypto) binutils pkgconfig(alsa) %description Checks the Uke speaker calibration parser, runtime payload and read-only volume admission against the published interface using synthetic data. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check ulimit -c 0 g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror -Ireference/include reference/tests/audio-speaker-runtime.cpp $(pkg-config --cflags --libs libcrypto) -o speaker-reference ./speaker-reference cargo test --offline --release --lib -- --nocapture cargo build --offline --release --bin uke-speaker-runtime readelf -h target/release/uke-speaker-runtime | grep -E "Machine:.*AArch64" readelf -d target/release/uke-speaker-runtime > speaker-linkage if grep -Fq libstdc++ speaker-linkage; then exit 1; fi cc -std=c11 -Wall -Wextra -Werror $(pkg-config --cflags alsa) -fsyntax-only tests/asound-abi.c g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror -Ireference/include reference/uke-speaker-runtime.cpp $(pkg-config --cflags --libs alsa libcrypto) -o speaker-cli-reference g++ -std=c++20 -O2 -Wall -Wextra -Werror -fPIC -shared reference/tests/audio-speaker-control-mock.cpp $(pkg-config --cflags --libs alsa) -o speaker-alsa-fixture.so bash tests/command-parity.sh ./speaker-cli-reference ./target/release/uke-speaker-runtime "$PWD/speaker-alsa-fixture.so" %files %license LICENSE %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.1.0-1 - Compare the protected speaker command with the published command under ALSA shims.