File logiops.spec of Package logiops
#
# spec file for package logiops
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: logiops
Version: master
Release: 0
Summary: HID++ Driver
License: GPL-3.0
Url: https://github.com/PixlOne/logiops
Source: _service
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: libevdev-devel
BuildRequires: libudev-devel
BuildRequires: libconfig++-devel
BuildRequires: systemd
BuildRequires: hidpp-devel
BuildRequires: glib2-devel
%description
An unofficial driver for Logitech branded keyboards and mice
%prep
%setup -q -n %{_sourcedir}/%{name}-%{version} -T -D
%build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/"
make
%install
cd build
%makeinstall
mkdir -p "%buildroot/%_docdir/%{name}"
cp -a %{_sourcedir}/%{name}-%{version}/README.md "%buildroot/%_docdir/%{name}"
mkdir -p "%buildroot/usr/share/licenses/%{name}"
cp -a %{_sourcedir}/%{name}-%{version}/LICENSE "%buildroot/usr/share/licenses/%{name}"
%files
%_docdir/%{name}
/usr/share/licenses/%{name}
%defattr(-,root,root,-)
%{_bindir}/*
%{_unitdir}/*
%{_datadir}/dbus-1/system.d/pizza.pixl.LogiOps.conf
%changelog