File Projecteur.spec of Package Projecteur

# spec file for package Projecteur
# Copyright (c) 2019 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

Name:           Projecteur
Version:        0.5
Release:        0
Summary:        Application for the Logitech Spotlight device
License:        MIT
Group:          Hardware/Other
# PATCH-FIX-SUSE: do not generate generic binary packages
Patch0:         no-cpack.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(udev)
BuildRequires:  hicolor-icon-theme

Basically the USB Dongle Receiver of the Logitech Spotlight device will end up
being detected as one mouse input device and one keyboard input device. The
mouse input device sends relative cursor coordinates and left button presses.
The keyboard device basically just sends left and right arrow key events when
forward or back on the device is pressed.

%setup -q
%patch0 -p1
# Fix desktop file metadata
sed -i -e 's:Utility;Presentation;:Office;Presentation;:g' cmake/templates/