Name: uke-control-rust-tui-check Version: 2.22.0 Release: 6%{?dist} Summary: Uke Control Rust terminal model source check License: MIT BuildArch: noarch Source0: ukectl-tui-rust.tar.xz Source1: uke-control-legacy-tui-inputs.tar.xz Source2: uke-control-legacy-pty.tar.xz Source3: uke-rgb.h Source4: oss-brightness-curve.hpp Source5: reference-brightness.cpp BuildRequires: crate(serde_json/float_roundtrip) BuildRequires: cargo-rpm-macros gcc-c++ binutils jq BuildRequires: gcc ncurses-base pkgconfig(ncursesw) pkgconfig(vterm) BuildRequires: e2fsprogs f2fs-tools util-linux pipewire-libs BuildRequires: crate(libc/default) crate(serde/default) crate(serde_json/default) crate(serde_json/preserve_order) BuildRequires: pkgconfig(ext2fs) pkgconfig(mount) pkgconfig(libselinux) pkgconfig(libsystemd) pkgconfig(libdrm) BuildRequires: pkgconfig(libdisplay-info) >= 0.3.0 BuildRequires: pkgconfig(fdisk) pkgconfig(openssl) /usr/bin/sfdisk BuildRequires: pkgconfig(libspa-0.2) pkgconfig(jsoncpp) %description Verify the Rust terminal sources against the existing Uke Control interface. %prep %setup -q -n ukectl -a 1 -a 2 (cd legacy && sha256sum --check --strict SHA256SUMS) %cargo_prep %build set -o pipefail %set_build_flags test "$(uname -m)" = aarch64 mkdir -p reviewed-uapi install -m644 %{SOURCE3} reviewed-uapi/uke-rgb.h %{__cc} $CFLAGS -std=c11 -UNDEBUG -Wall -Wextra -Werror -I reviewed-uapi tests/led-broker-abi.c $LDFLAGS -lsystemd -o led-broker-abi ./led-broker-abi %{__cc} -std=c11 -Wall -Wextra -Werror -fsyntax-only tests/terminal-abi.c %{__cxx} $CXXFLAGS -std=c++20 -Wall -Wextra -Werror -Ilegacy tests/legacy-tui-reference.cpp legacy/client.cpp legacy/client-catalog.cpp $(pkg-config --cflags --libs jsoncpp) $LDFLAGS -o legacy-tui readelf -h legacy-tui | grep -F AArch64 ./legacy-tui > legacy-menus.json jq -e 'length == 25 and ([.[].items[] | select(.action)] | length == 134)' legacy-menus.json export UKE_TUI_LEGACY_REFERENCE="$PWD/legacy-menus.json" %{__cxx} $CXXFLAGS -std=c++20 -Wall -Wextra -Werror -I%{_sourcedir} %{SOURCE5} $LDFLAGS -o legacy-brightness ./legacy-brightness > legacy-brightness.json truncate -s 32M gpt-slot-test.img printf "label: gpt\nsize=8MiB,name=boot_a\nsize=8MiB,name=boot_b\n" | sfdisk --no-reread --no-tell-kernel gpt-slot-test.img sfdisk --part-attrs gpt-slot-test.img 1 54 sfdisk --part-attrs gpt-slot-test.img 2 50,55 sha256sum gpt-slot-test.img > gpt.before export UKE_UPDATE_GPT_FIXTURE="$PWD/gpt-slot-test.img" export UKE_BRIGHTNESS_LEGACY_CURVE="$PWD/legacy-brightness.json" UKE_RESIZE_TEST_F2FS=1 cargo test --offline --target-dir target -- --nocapture | tee checks.txt grep -F "test led_broker::tests::validates_rgb_kernel_status_before_reporting ... ok" checks.txt grep -F "test torch::tests::torch_requires_the_exact_provider_current_channels_and_exclusive_trigger ... ok" checks.txt grep -F 'PASS: Rust brightness curve preserves the reviewed C++ normal-range points' checks.txt sha256sum --check --strict gpt.before grep -F 'PASS: Rust update status read exact flags from the disposable GPT' checks.txt grep -F "test wide_key_mouse_resize_and_handoff_preserve_termios ... ok" checks.txt grep -F "test termination_restores_idle_terminal ... ok" checks.txt grep -F "test rust_application_reads_a_fixture_and_refuses_saving_in_simulation ... ok" checks.txt grep -F 'PASS: Rust resize grew a disposable F2FS image and retained its identity' checks.txt grep -F 'PASS: all 25 bilingual menus and 134 action placements match the C++ frontend' checks.txt > result.txt # Run the original independent case bodies against the new executable. %{__cxx} $CXXFLAGS -std=c++20 -UNDEBUG -Wall -Wextra -Werror -Ilegacy legacy-regression/pty.cpp legacy/client.cpp legacy/client-catalog.cpp $(pkg-config --cflags --libs jsoncpp vterm) -lutil $LDFLAGS -o legacy-regression/pty-tests mkdir -p legacy-regression/build ln -s "$PWD/target/debug/ukectl-cli" legacy-regression/build/uke-control-tui ( cd legacy-regression ulimit -c 0 failures=0 for case in menu_coverage navigation observations forms background_reads touch_editor touch_search confirmations_and_paths wireless_shortcuts drag_and_resize readonly_and_signals; do if timeout 35s ./pty-tests "$case" > "$case.log" 2>&1; then printf 'PASS existing PTY case %%s\n' "$case" else printf 'FAIL existing PTY case %%s\n' "$case" tail -n 40 "$case.log" failures=$((failures + 1)) fi done test "$failures" = 0 ) %install install -Dm644 result.txt %{buildroot}%{_datadir}/%{name}/result.txt %check grep -Fx 'PASS: all 25 bilingual menus and 134 action placements match the C++ frontend' %{buildroot}%{_datadir}/%{name}/result.txt %files %{_datadir}/%{name}/result.txt %changelog * Sun Nov 29 2026 Uke Linux - 2.22.0-6 - Exercise Rust boot identities and readonly libfdisk on a disposable GPT. * Sun Nov 29 2026 Uke Linux - 2.22.0-5 - Compare the Rust brightness curve to the reviewed C++ normal range. * Sun Nov 29 2026 Uke Linux - 2.22.0-4 - Check Rust LED broker ABI and guarded torch current and provider selection. * Sun Nov 29 2026 Uke Linux - 2.22.0-3 - Carry the explicit F2FS confirmation into the shutdown environment. - Check DNF channel identification and private operation receipts in Rust. * Sun Nov 29 2026 Uke Linux - 2.22.0-2 - Validate the Rust F2FS program using a disposable filesystem and existing terminal regressions. * Sun Nov 29 2026 Uke Linux - 2.22.0-1 - Exercise the terminal inside the Uke Control binary and its historical command alias. * Sun Nov 29 2026 Uke Linux - 2.21.0-1 - Verify the Rust graphical terminal request companion and preserve the existing terminal cases. * Sun Nov 29 2026 Uke Linux - 2.20.0-7 - Compare the Rust terminal menu and action placements with the C++ frontend. - Exercise read cancellation, receipt handling and review admission. - Check foreground and background metadata for all reviewed actions. - Verify the ncurses ABI and exercise keyboard, touch and terminal mode in a PTY. - Start the Rust application in a PTY and exercise a synthetic read and receipt refusal. - Compare the interactive Rust application with all eleven legacy PTY cases. - Display the localized choice label in action reviews.