%global _vpath_srcdir %{name}-%{version} Name: wl-kbptr Version: 0.4.1 Release: %autorelease Summary: Control the mouse pointer with the keyboard on Wayland License: GPL-3.0-or-later URL: https://github.com/moverest/wl-kbptr Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: meson BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(opencv) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) Recommends: opencv-core %description %{summary} %prep %autosetup -c %conf %meson -Dopencv=enabled %build %meson_build %install %meson_install install -D %{_vpath_srcdir}/LICENSE -t %{buildroot}%{_defaultlicensedir}/%{name} install -D %{_vpath_srcdir}/{README.md,config.example} -t %{buildroot}%{_docdir}/%{name} install %{_vpath_srcdir}/helpers/wl-kbptr-sway-active-win -t %{buildroot}%{_bindir} %check %meson_test desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_bindir}/wl-kbptr-sway-active-win %{_datadir}/applications/%{name}.desktop %{_docdir}/%{name}/config.example %changelog %autochangelog