%global git_date 20220330 %global git_hash 47e2658 %global git_ver 1.4.0 %global rel 68 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: grim Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Grab images from a Wayland compositor. License: MIT URL: https://github.com/emersion/grim Source0: %{url}/%{src_name} BuildRequires: meson cmake BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: wayland-devel BuildRequires: cairo-devel BuildRequires: libjpeg-devel BuildRequires: wayland-protocols-devel BuildRequires: scdoc %description %summary %prep %autosetup -n grim %build %meson %meson_build %install %meson_install %files %license LICENSE %{_bindir}/grim %{_mandir}/man1/grim.1* %changelog