%global commit 7c0a8fe7e0b58741607b1312fe994968815f5552 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20210131 Name: i3expo-ng Version: 0 Release: 1.%{commitdate}.git%{shortcommit}%{?dist} Summary: Exposè for i3 WM License: MIT URL: https://github.com/morrolinux/%{name} Source0: %{URL}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source1: meson.build Patch0: add-global-installation.patch BuildRequires: gcc BuildRequires: pkgconfig(x11) BuildRequires: meson Requires: python3 Requires: python3dist(i3ipc) Requires: python3dist(pygame) Requires: python3dist(pillow) %description Exposè for i3 WM. Fork of https://gitlab.com/d.reis/i3expo to fix crashes and improve features/usability %prep %autosetup -n %{name}-%{commit} -p1 rm prtscn.so cp %{S:1} . %build %meson %meson_build %install %meson_install %files %license LICENSE %doc README.md %_bindir/i3expod %dir %_sysconfdir/i3expo %dir %_libdir/%{name} %config(noreplace) %_sysconfdir/i3expo/config %_libdir/%{name}/libprtscn.so %changelog * Wed Feb 24 2021 Dan Čermák - 0-1.20210131.git7c0a8fe - Initial package version