File qjoypad.spec of Package qjoypad
#
# spec file for package qjoypad
#
# Copyright (c) 2016 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.2
Release: 0
License: GPL-2.0
Summary: Gamepad or joystick configuration utility
Url: https://github.com/panzi/qjoypad
Group: Hardware/Joystick
Source0: %{name}-%{version}.tar.gz
#Source0 via https://codeload.github.com/panzi/qjoypad/tar.gz/v4.3.0
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
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.md
%{_bindir}/qjoypad
%{_datadir}/applications/qjoypad.desktop
%{_datadir}/icons/hicolor/*/apps/qjoypad.png
%{_datadir}/qjoypad
%changelog