%global debug_package %{nil} Name: uke-control-display-dock-service-check Version: 1.0.1 Release: 1%{?dist} Summary: ARM64 receipt for the native Uke Control display dock service 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 gcc-c++ coreutils /usr/bin/dbus-run-session %description Compiles the Rust display dock service with production Cargo metadata and checks its policy and Plasma transport alongside the existing Motion1 suite. %prep %autosetup sha256sum --check --strict --quiet rust-package-sources.sha256 %cargo_prep %build cargo build --offline --release --bin uke-display-dock --bin uke-motion %install install -D -m644 rust-package-sources.sha256 %{buildroot}%{_docdir}/%{name}/rust-package-sources.sha256 %check g++ -std=c++20 -O2 -UNDEBUG -Wall -Wextra -Werror -Ireference/src \ reference/src/dock-layout.cpp reference/tests/dock-layout.cpp -o dock-layout-reference ./dock-layout-reference printf 'Exact signed-source C++ display dock layout assertions passed\n' cargo test --offline --release --lib dock:: -- --nocapture cargo test --offline --release --lib process:: -- --nocapture g++ %{build_cxxflags} -std=c++20 -UNDEBUG -Wall -Wextra -Werror \ reference/tests/wayland-manager-test.cpp %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o wayland-reference runtime=$(mktemp -d /tmp/uke-dk.XXXXXXXX) timeout 20s dbus-run-session -- ./wayland-reference "$runtime" rmdir -- "$runtime" %{__cc} %{build_cflags} -std=gnu17 -UNDEBUG -Wall -Wextra -Werror \ tests/display-dock-bus-fixture.c %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o display-dock-fixture UKE_DISPLAY_DOCK_FIXTURE="$PWD/display-dock-fixture" timeout 25s dbus-run-session -- \ cargo test --offline --release --lib private_bus_preserves_mutter_serial_verification_and_plasma_socket_admission -- --ignored --nocapture readelf -h target/release/uke-display-dock | grep -E 'Machine:.*AArch64' readelf -d target/release/uke-display-dock > display-dock-rust-linkage.txt if grep -E 'libstdc\+\+|libQt6' display-dock-rust-linkage.txt; then exit 1; fi printf 'Rust display dock ARM64 linkage passed\n' %{__cc} %{build_cflags} -std=gnu17 -UNDEBUG -Wall -Wextra -Werror \ tests/motion-rust-bus-fixture.c %{build_ldflags} $(pkg-config --cflags --libs libsystemd) -o motion-bus-fixture cargo test --offline --release --lib motion:: -- --nocapture UKE_MOTION_BUS_FIXTURE="$PWD/motion-bus-fixture" timeout 25s dbus-run-session -- \ cargo test --offline --release --lib motion::broker::tests::private_bus_preserves_claim_authorization_and_unicast -- --ignored --nocapture readelf -h target/release/uke-motion | grep -E 'Machine:.*AArch64' readelf -d target/release/uke-motion > motion-rust-linkage.txt if grep -F libstdc++ motion-rust-linkage.txt; then exit 1; fi set +e target/release/uke-motion invalid invalid_status=$? set -e test "$invalid_status" -eq 2 printf 'Motion1 ELF, direct runtime linkage and invalid-argument exit verified\n' %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.1-1 - Check the native display dock service and shared Motion1 event loop.