Summary: JoyStick Wrapper library Name: libjsw Version: 1.5.6 Release: 1%{?dist} License: GPL Group: System Environment/Libraries URL: http://wolfpack.twu.net/libjsw/ Source: http://wolfpack.twu.net/users/wolfpack/libjsw-%{version}.tar.bz2 Patch0: libjsw-1.5.6-Makefile.patch Patch1: libjsw-1.5.6-build.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gtk+-devel %description The Joystick Wrapper library (libjsw) is designed to provide a uniform API and user configuration for joysticks and other game controllers on all platforms. It also features several levels of advanced joystick input error correction. %package calibrator Summary: JoyStick Wrapper library calibrator utility Group: Applications/System Requires: %{name} = %{version}-%{release} %description calibrator The Joystick Wrapper library (libjsw) integrated library level calibration tool which provides a one time calibration for any program that uses libjsw. %package devel Summary: Development files for the JoyStick Wrapper library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The Joystick Wrapper library (libjsw) is designed to provide a uniform API and user configuration for joysticks and other game controllers on all platforms. It also features several levels of advanced joystick input error correction. %prep %setup -q %patch0 -p1 -b .Makefile %patch1 -p1 -b .build %build cd libjsw %{__make} -f Makefile.Linux %{?_smp_mflags} \ CFLAGS="%{optflags} -fPIC" cd .. cd jscalibrator %{__make} -f Makefile.Linux %{?_smp_mflags} \ CFLAGS="%{optflags} -fPIC `gtk-config --cflags`" \ LIB_DIRS="-L../libjsw" \ INC_DIRS="-I../include" cd .. %install %{__rm} -rf %{buildroot} cd libjsw %{__make} -f Makefile.Linux install \ JSW_LIB_DIR=%{_libdir} \ DESTDIR=%{buildroot} cd .. cd jscalibrator %{__make} -f Makefile.Linux install \ DESTDIR=%{buildroot} cd .. %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS INSTALL LICENSE README %{_libdir}/libjsw.so.* %files calibrator %defattr(-,root,root,-) %{_bindir}/jscalibrator %{_mandir}/jscalibrator.1* %files devel %defattr(-,root,root,-) %{_includedir}/jsw.h %{_libdir}/libjsw.so %{_mandir}/man3/JS*.3* %changelog * Tue May 8 2007 Matthias Saou 1.5.6-1 - Initial RPM release.