%global debug_package %{nil} Name: uke-control-packaged-rust-check Version: 1.0.0 Release: 1%{?dist} Summary: ARM64 receipt for the exact packaged Uke Control Rust targets License: MIT AND Apache-2.0 AND GPL-3.0-or-later ExclusiveArch: aarch64 Source0: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros crate(libc/default) crate(serde/default) crate(serde/derive) BuildRequires: crate(serde_json/default) crate(serde_json/preserve_order) crate(serde_json/float_roundtrip) BuildRequires: crate(wayland-client/default) crate(wayland-protocols/client) crate(wayland-protocols/staging) BuildRequires: crate(ashpd/default) crate(ashpd/screencast) crate(gstreamer/default) BuildRequires: crate(tokio/macros) crate(tokio/net) crate(tokio/rt) crate(tokio/time) BuildRequires: pkgconfig(libsystemd) pkgconfig(libdrm) pkgconfig(gstreamer-1.0) pkgconfig(wayland-client) BuildRequires: pkgconfig(blkid) pkgconfig(openssl) pkgconfig(fdisk) pkgconfig(libselinux) pkgconfig(libdisplay-info) BuildRequires: pkgconfig(ncursesw) pkgconfig(ext2fs) pkgconfig(mount) pkgconfig(rpm) BuildRequires: binutils gcc coreutils /usr/bin/dbus-run-session %description Compiles every Rust target using the exact production Cargo manifest and runs power-profile tests against an isolated systemd D-Bus stand-in. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %build cargo check --offline --release --all-targets printf 'All packaged Rust targets type-checked with the production manifest\n' cargo build --offline --release --bin uke-native-power-profile-ready %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check %{__cc} %{build_cflags} -std=gnu17 -UNDEBUG -Wall -Wextra -Werror \ tests/power-profile-ready-fixture.c %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o profile-fixture cargo test --offline --release --lib admits_only_named_ready_native_profiles -- --nocapture UKE_PROFILE_FIXTURE="$PWD/profile-fixture" timeout 25s dbus-run-session -- \ cargo test --offline --release --lib profile_refresh_preserves_unit_admission_and_error_semantics -- --ignored --nocapture readelf -h target/release/uke-native-power-profile-ready | grep -E 'Machine:.*AArch64' %files %license LICENSE-MIT LICENSE-APACHE-2.0 LICENSE-GPL-3.0 %{_docdir}/%{name}/rust-package-sources.sha256 %changelog * Mon Nov 30 2026 Uke Linux Maintainers - 1.0.0-1 - Check all Rust targets with the exact packaged Cargo configuration.