%global build_rustflags %{build_rustflags} -C target-feature=+fp16 Name: snap-pick Version: 0.1.0 Release: 1%{?dist} Summary: Wayland object picker that snaps to UI boxes and SAM shapes License: MIT URL: https://github.com/lacamar/%{name} Source0: %{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.xz Source2: https://huggingface.co/Acly/MobileSAM/resolve/main/mobile_sam_image_encoder.onnx Source3: https://huggingface.co/Acly/MobileSAM/resolve/main/sam_mask_decoder_multi.onnx ExclusiveArch: aarch64 BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(xkbcommon) Requires: vulkan-loader %description Full-screen picker for Wayland. It snaps to UI boxes and to MobileSAM shape outlines on a frozen screenshot and writes the picked object as PNG. %prep %autosetup -a1 %cargo_prep -v vendor mkdir -p models cp %{SOURCE2} %{SOURCE3} models/ %build %cargo_build %install %cargo_install %check %cargo_test %files %license LICENSE %doc README.md %{_bindir}/%{name} %changelog * Sun Nov 22 2026 Lachlan Marie - 0.1.0-1 - Initial package