# Generated by rust2rpm 24 %bcond_without check %global crate xidlehook Name: rust-xidlehook Version: 0.10.0 Release: %autorelease Summary: Xautolock rewrite in Rust, with a few extra features License: MIT URL: https://crates.io/crates/xidlehook Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: Xautolock rewrite in Rust, with a few extra features.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} # FIXME: no license files detected %doc README.md %{_bindir}/xidlehook %{_bindir}/xidlehook-client %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog