A new user interface for you! Read more...

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 https://bugs.opensuse.org/
#


Name:           Projecteur
Version:        0.5
Release:        0
Summary:        Application for the Logitech Spotlight device
License:        MIT
Group:          Hardware/Other
URL:            https://github.com/jahnf/Projecteur
Source0:        https://github.com/jahnf/Projecteur/archive/v%{version}.tar.gz
# 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

%description
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.

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

%build
%cmake
%cmake_build

%install
%cmake_install

%files
%{_bindir}/projecteur
%{_udevrulesdir}/55-spotlight.rules
%{_datadir}/applications/projecteur.desktop
%{_datadir}/icons/hicolor/*

%changelog