File qjoypad.spec of Package qjoypad
#
# spec file for package qjoypad
#
# Copyright (c) 2016-2019 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: qjoypad
Version: 4.3.1
Release: lp151.1.3
License: GPL-2.0
Summary: Gamepad or joystick configuration utility
Url: https://github.com/panzi/qjoypad
Group: Hardware/Joystick
Source0: https://github.com/panzi/qjoypad/%{name}/archive/%{name}-%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-linguist-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(xtst)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
QJoyPad is a convenient little program with a Qt interface that converts
movement and button presses on a gamepad or joystick into key presses,
mouse clicks, and mouse movement in X. It should work on almost
every Linux system and with any Linux-supported gaming device.
%prep
%setup -q
#FIXME incorrect-fsf-address
sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA./g' LICENSE.txt
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%install
%cmake_install
%suse_update_desktop_file -r %{name} Settings HardwareSettings
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE.txt
%{_bindir}/qjoypad
%{_datadir}/applications/qjoypad.desktop
%{_datadir}/icons/hicolor/*/apps/qjoypad.png
%{_datadir}/qjoypad
%changelog
* Sat Jul 13 2019 malcolmlewis@opensuse.org
- Update to version 4.3.1:
* Fix compilation with Qt 5.13.
* Sat Dec 17 2016 malcolmlewis@opensuse.org
- Initial build.