%global commit 61df6f0a9531520c898718874c460826bc7e2b42 %global scommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20181024 %global gitrel .%{gitdate}git%{scommit} %global gitver -%{gitdate}git%{scommit} Name: grim Version: 0.0.1 Release: 2%{?gitrel}%{?dist} Summary: Grab images from a Wayland compositor License: MIT URL: https://github.com/emersion/%{name} Source: %{url}/archive/%{commit}.tar.gz#/%{name}-%{version}%{?gitver}.tar.gz Patch0: %{url}/pull/25/commits/aa679f0501a30fb5a452d35f7ef9d7ed2c3fa2f9.patch#/Fix-i686-build-Werror-incompatible-pointer-types-com.patch BuildRequires: gcc BuildRequires: meson BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: scdoc # patch application BuildRequires: git %description %{summary}. %prep %global __scm git_am %autosetup -n %{name}-%{commit} -p 1 %build %meson %meson_build %install %meson_install %check %meson_test %files %{_bindir}/%{name} %doc README.md %license LICENSE %{_mandir}/man1/%{name}.1* %changelog * Sat Nov 10 2018 Jan Pokorný - 0.0.1-2.20181024git61df6f0 - Replace %%define usage with %%global * Sat Nov 03 2018 Jan Pokorný - 0.0.1-1.20181024git61df6f0 - Initial packaging