Name: qjoypad Version: 4.0.0 Release: 1%{?dist} Summary: Gamepad translator software Group: Amusements/Games License: GPLv2 URL: http://qjoypad.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel BuildRequires: libXtst-devel BuildRequires: desktop-file-utils %description QJoyPad takes input from a gamepad or joystick and translates it into key strokes or mouse actions, letting you control any XWindows program with your game controller. This lets you play all those games that for some reason don't have joystick support with your joystick. %prep %setup -q iconv -f iso8859-1 -t utf-8 README.txt > README cp LICENSE{.txt,} sed -i -e 's,qmake,qmake-qt4,g' src/config %build cd src # why cannot everyone just use GNU Autotools.. test -d $RPM_BUILD_ROOT || mkdir -p $RPM_BUILD_ROOT ./config --prefix=%{_prefix} --install-dir=$RPM_BUILD_ROOT make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT cd src make install # die die die! rm -rf $RPM_BUILD_ROOT%{_defaultdocdir} ln -s %{name}/gamepad4-64x64.png %{_datadir}/pixmaps/%{name}.png desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE %{_bindir}/* %{_datadir}/applications/* %{_datadir}/pixmaps/%{name} %{_datadir}/pixmaps/%{name}.png %changelog * Sat Oct 17 2009 Alexander Kahl - 4.0.0-1 - initial creation