File ydotool.spec of Package ydotool
#
# spec file for package ydotool
#
Name: ydotool
Version: 1.0.4
Release: 0
Summary: Generic Linux command-line automation tool (no X!)
License: AGPL-3.0-only
URL: https://github.com/ReimuNotMoe/ydotool
Source: https://github.com/ReimuNotMoe/ydotool/archive/v1.0.4.tar.gz#/ydotool-1.0.4.tar.gz
BuildRequires: cmake >= 3.4
BuildRequires: scdoc
BuildRequires: systemd-rpm-macros
%description
ydotool is not limited to Wayland. You can use it on anything as long as it accepts keyboard/mouse/whatever input. For example, X11, text console, "RetroArch OS", fbdev apps (fbterm/mplayer/SDL1/LittleVGL/Qt Embedded), etc.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}d
%{_userunitdir}/%{name}.service
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man8/%{name}d.8%{?ext_man}
%changelog