File TouchpadEmulator.spec of Package TouchpadEmulator
#
# spec file for package TouchpadEmulator
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: TouchpadEmulator
Version: 0~git20211022
Release: 0
Summary: Virtual mouse for Linux phones
License: GPL-2.0-only
URL: https://gitlab.com/CalcProgrammer1/TouchpadEmulator
Source: %{name}-%{version}.tar.xz
Patch0: TouchpadEmulator-set-proper-includes.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
Requires: polkit
%description
Emulate a touchpad mouse device using a touchscreen on Linux.
%prep
%setup -q
%patch0 -p1
%build
%make_build
%install
install -Dm755 TouchpadEmulator %{buildroot}%{_bindir}/TouchpadEmulator
install -Dm755 LaunchTouchpadEmulator.sh %{buildroot}%{_bindir}/LaunchTouchpadEmulator.sh
install -Dm644 TouchpadEmulator.png %{buildroot}%{_datadir}/icons/TouchpadEmulator.png
install -Dm644 TouchpadEmulator.desktop %{buildroot}%{_datadir}/applications/TouchpadEmulator.desktop
%files
%license LICENSE
%doc README.md
%{_bindir}/TouchpadEmulator
%{_bindir}/LaunchTouchpadEmulator.sh
%{_datadir}/applications/TouchpadEmulator.desktop
%{_datadir}/icons/TouchpadEmulator.png
%changelog