%define _menudir %_prefix/lib/menu %define _miconsdir %_prefix/share/icons/mini %define _iconsdir %_prefix/share/icons %define _liconsdir %_prefix/share/icons/large %define AutoReq nolib %add_findprov_lib_path %_libdir/torcs/lib Name: TORCS Version: 1.2.4 Release: alt2 Summary: The Open Racing Car Simulator License: GPL Group: Games/Sports Url: http://torcs.sourceforge.net/ Packager: Igor Zubkov Source0: %name-%version-src.tgz Source1: %name-%version-src-robots-base.tgz Source2: %name-%version-src-robots-berniw.tgz Source3: %name-%version-src-robots-bt.tgz Source4: %name-%version-src-robots-olethros.tgz Source11: %name.16.xpm Source12: %name.32.xpm Source13: %name.48.xpm Patch3: torcs-1.2.4-alt-remove-gdb.patch Requires: %name-data = %version Requires: %name-data-tracks = %version Requires: %name-data-cars = %version # Automatically added by buildreq on Sun Oct 09 2005 BuildRequires: esound gcc-c++ libopenal-devel libpng-devel libstdc++-devel nvidia_glx_common plib-devel xorg-x11-devel xorg-x11-mesagl zlib-devel %description A 3D racing car simulator using OpenGL. %prep %setup -q -n torcs-%version %setup -q -T -D -b 1 -n torcs-%version %setup -q -T -D -b 2 -n torcs-%version %setup -q -T -D -b 3 -n torcs-%version %setup -q -T -D -b 4 -n torcs-%version %patch3 -p1 %build export TORCS_BASE=`pwd` MAKE_DEFAULT=`pwd`/Make-default.mk export CFLAGS="$CFLAGS -fPIC" export CXXFLAGS="$CXXFLAGS -fPIC" %configure %make_build %install %make_install DESTDIR=%buildroot install # Menu %__mkdir -p %buildroot%_menudir %__cat << EOF > %buildroot%_menudir/%name ?package(%name): \ needs="x11" \ section="Amusement/Sports" \ title="%name" \ longtitle="The Open Racing Car Simulator" \ command="torcs" \ icon="%name.xpm" EOF # Icons %__mkdir -p %buildroot%_miconsdir %__mkdir -p %buildroot%_liconsdir %__install -m 644 %SOURCE11 %buildroot%_miconsdir/%name.xpm %__install -m 644 %SOURCE12 %buildroot%_iconsdir/%name.xpm %__install -m 644 %SOURCE13 %buildroot%_liconsdir/%name.xpm %post %update_menus %postun %clean_menus %files %doc CHANGELOG.html README.linux TODO.html README %_bindir/* %_libdir/torcs/* %_datadir/games/torcs/* %_menudir/%name %_miconsdir/%name.xpm %_iconsdir/%name.xpm %_liconsdir/%name.xpm %changelog * Fri Oct 21 2005 Igor Zubkov 1.2.4-alt2 - remove old patch1 - change %%prefix to %%_prefix - remove gdb from requires :-) (patch3) * Sat Oct 08 2005 Igor Zubkov 1.2.4-alt1 - update to 1.2.4 (#3787) - removed robots: K1999, astigot and billy - removed some docs - add new robot olethros - update buildrequires and requires * Fri Oct 07 2005 Igor Zubkov 1.2.2-alt3 - change _libdir from /usr/lib/torcs to /usr/lib/games/torcs - update url - update and clean up buildrequires - change %%make to %%make_build - change %%makeinstall to %%make_install - remove COPYING file from package - clean up spec file - fix some rpmlint warnings - #7649 * Tue Jun 29 2004 Alexander Belov 1.2.2-alt2 - Change menu file location from /usr/share/menu -> /usr/lib/menu * Mon Mar 22 2004 Alexander Belov 1.2.2-alt1 - New versin 1.2.2 - New robots: billy, bt, astigot * Mon Jan 05 2004 Alexander Belov 1.2.1-alt4 - Fixed gcc-3.x compile - Cleanup spec - Updating BuildRequires * Wed Dec 17 2003 Alexander Belov 1.2.1-alt3 - Replace %make_build to %make - Updating BuildRequires * Thu Dec 11 2003 Alexander Belov 1.2.1-alt2 - Move *.so from /usr/share/games/torcs to /usr/lib/games/torcs - Added -fPIC option for compiler * Wed Apr 30 2003 Alexander Belov 1.2.1-alt1 - New version - Adding documentation * Fri Apr 4 2003 Alexander Belov 1.2.0-alt1 - Sisyphus first release * Mon Mar 24 2003 Eric Espié 1.2.0 - new version * Mon Jul 15 2002 Eric Espié 1.1.0-2 - improved specfile * Sat Jul 13 2002 Eric Espié 1.1.0 - version 1.1.0 * Mon Dec 17 2001 Eric Espié 1.0.0 - version 1.0.0 final * Sun Dec 9 2001 Eric Espié 1.0.0-rc5 - installation updates * Sat Dec 8 2001 Eric Espié 1.0.0-rc4 - initial RPM