input-utils-0-0.20061008.3kkr2009.0.spec
%define name input-utils
%define version 0
%define cvsrev 20061008
%define rel 3
%define release %mkrel 0.%cvsrev.%rel
Summary: Linux input utilities
Name: %name
Version: %version
Release: %release
Group: System/Kernel and hardware
URL: http://linuxconsole.sourceforge.net/
# From cvs ruby/utils
Source: %name-%cvsrev.tar.bz2
Source1: jscal.1
Source2: jstest.1
Source3: evtest.1
Source4: inputattach.1
Patch0: joystick-1.2.15-dont-exit-when-wrong-version.patch
Patch1: button-axis-remapping.patch
Patch2: jitter-tolerance.patch
Patch3: eviocgbit-buffer.patch
Patch4: usb-joystick-segfault-fix.patch
License: GPL
BuildRequires: SDL-devel
Obsoletes: joystick
Provides: joystick
BuildRoot: %{_tmppath}/%{name}-root
%description
Userspace utilities for input devices:
- evtest: test event device
- ffcfstress: stress test constant force
- ffmvforce: test constant force with SDL window
- ffset: set force feedback options
- fftest: test force feedback
- inputattach: attach a serial line to an input device
- jscal: calibrate joystick
- jstest: test joystick device
%prep
%setup -q -n utils
%patch0 -p0 -b .version
%patch1 -p2 -b .mapping
%patch2 -p2 -b .jitter
%patch3 -p2 -b .eviocgbit
%patch4 -p2 -b .usbsegfault
cp %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 .
%build
%make CFLAGS="%optflags"
%install
rm -rf %{buildroot}
install -d -m755 %{buildroot}%{_bindir}
install -m755 evtest inputattach jstest jscal fftest ffmvforce ffset \
ffcfstress %{buildroot}%{_bindir}
install -d -m755 %{buildroot}%{_mandir}/man1
install -m644 jscal.1 jstest.1 evtest.1 inputattach.1 %{buildroot}%{_mandir}/man1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/jscal.1*
%{_mandir}/man1/jstest.1*
%{_mandir}/man1/evtest.1*
%{_mandir}/man1/inputattach.1*
%changelog
* Thu Jul 16 2009 kakurasan <kakurasan AT gmail DOT com> 0-0.20061008.3kkr2009.0
- add patches from Debian
* button-axis-remapping.patch
* jitter-tolerance.patch
* eviocgbit-buffer.patch
* usb-joystick-segfault-fix.patch
- add/update manpages (from Debian)
* Fri Mar 06 2009 Antoine Ginies <aginies AT mandriva DOT com> 0-0.20061008.2mdv2009.1
+ Revision: 350285
- 2009.1 rebuild
* Wed Jan 02 2008 Olivier Blin <oblin AT mandriva DOT com> 0-0.20061008.1mdv2009.0
+ Revision: 140776
- restore BuildRoot
* Mon Dec 17 2007 Thierry Vignaud <tvignaud AT mandriva DOT com> 0-0.20061008.1mdv2008.1
+ Revision: 127072
- kill re-definition of %%buildroot on Pixel's request
* Fri Nov 03 2006 Anssi Hannula <anssi AT mandriva DOT org> 0-0.20061008.1mdv2007.0
+ Revision: 76370
- Import input-utils