%global commit 59ac913ebb71920992c52dc1002535b733994397 %global up wayfreeze # The release profile has no debug info, so there is nothing for a debuginfo package %global debug_package %{nil} Name: wayfreeze Version: 0.2.1 Release: 1%{?dist} Summary: Freeze the screen of a Wayland compositor # The vendored crates carry their own licenses (mostly MIT and Apache-2.0) License: AGPL-3.0-only URL: https://github.com/Jappie3/wayfreeze # Tarball of the upstream release tag with the crates vendored, produced by scripts/make-srpm.sh Source0: %{up}-%{commit}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc BuildRequires: pkgconfig(xkbcommon) %description Wayfreeze grabs the screen and shows it as a frozen overlay until it is stopped, so a region or window can be picked with slurp and captured with grim while the content underneath keeps changing. %prep %autosetup -n %{up}-%{commit} %build export CARGO_HOME=$PWD/.cargo-home cargo build --release --offline --locked %install install -D -m755 -p target/release/wayfreeze %{buildroot}%{_bindir}/wayfreeze %files %license LICENSE %doc README.md %{_bindir}/wayfreeze %changelog %autochangelog