File qjoypad.spec of Package qjoypad

Name:           qjoypad
Summary:        Remap joystick events as keyboard or mouse events
Group:          Hardware/Joystick
Version:        4.1.0
Release:        1
License:        GPL v2.0
Url:            http://qjoypad.sourceforge.net/
Source0:        %{name}-%{version}.tar.gz
Patch0:         qjoypad-docs-path.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ libqt4-devel

%description
qjoypad a simple Linux/QT program that lets you use your gaming devices where you want them: in your games! 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.

%prep
%setup -q
%patch0 -p1

%build
export SUBLIBS="-lX11"

pushd src
./config --prefix=%{_prefix} --install-dir=%{buildroot}
make %{?_smp_mflags}
popd

%install
pushd src
%makeinstall
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt
%{_bindir}/%{name}
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*


%changelog
openSUSE Build Service is sponsored by