Name:		logiops
Version:	0.2.2
Release:	alt0
Group:		Settings
License:	GPL-3
Url:		https://github.com/PixlOne/logiops/
Source0:	%name-%version.tar
Summary:	Unofficial driver for Logitech mice and keyboards.
Packager:	Vadim Illarionov <gbIMoBou@gmail.com>

BuildRequires: cmake gcc-c++ libconfig-c++-devel libconfig-devel libevdev-devel libudev-devel

%description
Currently compatible only with HID++ >2.0 devices.
Default location for the configuration file is /etc/logid.cfg, can be specified with -c flag.

%prep
%setup -q

%build
%cmake_insource
%make_build VERBOSE=1

%install
%makeinstall_std
mkdir -p %buildroot/%_sysconfdir
cp logid.example.cfg %buildroot/%_sysconfdir/logid.cfg

%post
%post_service logid

%files
%doc README.md TESTED.md
%_bindir/logid
%_unitdir/logid.service
%config(noreplace) %_sysconfdir/logid.cfg

%changelog
* Tue Nov 09 2021 Vadim Illarionov <gbIMoBou@gmail.com> 0.2.2-59-alt0
- Initial build for ALT Linux.
