Name: uke-control-delegation-check Version: 2.18.0 Release: 1%{?dist} Summary: Verify the Uke Control command handoff License: MIT BuildArch: noarch Source0: uke-control-delegation-source.tar.xz BuildRequires: gcc-c++ binutils patch BuildRequires: pkgconfig(jsoncpp) pkgconfig(ext2fs) pkgconfig(mount) BuildRequires: pkgconfig(libsystemd) pkgconfig(libspa-0.2) pkgconfig(libdrm) %description A test result for the command handoff from Uke Control to ukectl. %prep %setup -q -c bash overlay/apply.sh . %build %set_build_flags %{__cxx} -std=c++20 $CXXFLAGS -Wall -Wextra -Werror -fsyntax-only src/main.cpp $(pkg-config --cflags jsoncpp ext2fs mount libsystemd libspa-0.2 libdrm) %{__cxx} -std=c++20 $CXXFLAGS -Wall -Wextra -Werror -UNDEBUG overlay/test.cpp $LDFLAGS -o delegate-test %{__cxx} -std=c++20 $CXXFLAGS -Wall -Wextra -Werror overlay/argv-probe.cpp $LDFLAGS -o argv-probe %check set -o pipefail test "$(uname -m)" = aarch64 readelf -h ./delegate-test | grep -F AArch64 cp ./argv-probe ./non-executable chmod 0644 ./non-executable cp ./argv-probe ./writable chmod 0775 ./writable ln -s argv-probe ./old-link ln ./delegate-test ./self-link ./delegate-test ./argv-probe ./non-executable ./writable ./old-link ./self-link | tee result.txt %install install -Dm644 result.txt %{buildroot}%{_datadir}/%{name}/result.txt %files %{_datadir}/%{name}/result.txt