Name: wayidle Version: r28.g2ffeb8f Release: 100.1%{?dist} Summary: Wait for Wayland compositor idle timeouts License: ISC URL: https://sr.ht/~whynothugo/wayidle BuildRequires: cargo BuildRequires: rust BuildRequires: gcc BuildRequires: git BuildRequires: scdoc BuildRequires: wayland-devel Provides: wayidle = %{version}-%{release} Conflicts: wayidle-git %description Wayidle waits until the Wayland compositor reports that the session has been idle for a specified number of seconds. If a command is specified, it execs that command; otherwise it exits successfully. %prep git clone https://git.sr.ht/~whynothugo/wayidle wayidle cd wayidle version="%{version}" case "$version" in *.g*) commit="${version##*.g}" echo "Checking out git commit from pkgver(): $commit" git checkout "$commit" ;; *) if git rev-parse --verify --quiet "v${version}^{commit}" >/dev/null; then echo "Checking out tag: v${version}" git checkout "v${version}" elif git rev-parse --verify --quiet "${version}^{commit}" >/dev/null; then echo "Checking out ref: ${version}" git checkout "${version}" else echo "Could not resolve wayidle git ref from RPM Version: ${version}" exit 1 fi ;; esac %build cd wayidle export CARGO_HOME="$PWD/.cargo" export CARGO_TARGET_DIR=target cargo build --release %install cd wayidle install -Dm755 target/release/wayidle %{buildroot}%{_bindir}/wayidle if [ -f wayidle.1.scd ]; then scdoc < wayidle.1.scd > wayidle.1 install -Dm644 wayidle.1 %{buildroot}%{_mandir}/man1/wayidle.1 fi %check cd wayidle export CARGO_HOME="$PWD/.cargo" export CARGO_TARGET_DIR=target cargo test --release || true %files %doc wayidle/README.md %{_bindir}/wayidle %{_mandir}/man1/wayidle.1* %changelog * Sat Jun 20 2026 Sl (Shahaf Levi) - 1.0.1-1 - Initial COPR package for Slash