%define name vdrift %define versiondate 2011-10-22 %define date %(echo %{versiondate} | sed -e 's/-//g') %define distname %{name}-%{versiondate} %define dataname %{name}-data %define subrel 1 Summary: Open Source Car Racing Simulator Name: %{name} Version: %{date} Release: %mkrel 1 Source0: %{distname}.tar.bz2 License: GPLv3 Group: Games/Arcade Url: http://vdrift.net/ BuildRequires: scons BuildRequires: libcurl-devel BuildRequires: libarchive-devel BuildRequires: SDL-devel SDL_image-devel SDL_net-devel libSDL_gfx-devel BuildRequires: mesaglu-devel BuildRequires: freealut-devel, openal-devel, libvorbis-devel, bullet-devel, glew-devel BuildRequires: libboost-devel BuildRequires: asio Obsoletes: %{name} < %{date} Requires: %{dataname} %description VDrift is a cross-platform, open source driving simulation made with drift racing in mind. %package -n %{dataname} Summary: Data files for the VDrift driving simulation Requires: %{name} Group: Games/Arcade Obsoletes: %{dataname} < %{date} BuildArch: noarch %description -n %{dataname} VDrift is a cross-platform, open source driving simulation made with drift racing in mind. This package contains data files for VDrift. %prep %setup -q -n %{distname} %build scons NLS=0 use_binreloc=0 prefix=%{_prefix} %install rm -rf %{buildroot} install -D -m755 build/%{name} %{buildroot}%{_gamesbindir}/%{name} install -d %{buildroot}%{_gamesdatadir}/%{name}/data cp -a data %{buildroot}%{_gamesdatadir}/%{name} install -d %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=VDrift Comment=Driving simulation Exec=soundwrapper %_gamesbindir/%{name} Icon=%{_gamesdatadir}/%{name}/data/textures/icons/%{name}-64x64.png Terminal=false Type=Application Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade; EOF %files %{_gamesbindir}/%{name} %{_datadir}/applications/mandriva-%{name}.desktop %files -n %{dataname} %dir %{_gamesdatadir}/%{name} %dir %{_gamesdatadir}/%{name}/data %{_gamesdatadir}/%{name}/data/* %changelog * Fri Jan 13 2012 dams <dams> 20111022-1.1.mga1 + Revision: 195516 - import to fix bug #1231 * Wed Jan 04 2012 fwang <fwang> 20111022-4.mga2 + Revision: 190646 - rebuild for new libarchive * Tue Nov 29 2011 dams <dams> 20111022-3.mga2 + Revision: 174196 - rebuild for new 'bullet' * Tue Nov 29 2011 dams <dams> 20111022-2.mga2 + Revision: 174123 - rebuild for new 'bullet' (2.79) * Tue Nov 22 2011 dams <dams> 20111022-1.mga2 + Revision: 170852 - clean specfile - update BR - imported package vdrift * Thu Jul 29 2010 PeÅ¥oÅ¡ Å afaÅÃk <petos@mandriva.org> 0.4-0.20100630.1mdv2011.0 + Revision: 563182 - New version 2010-06-30 (v.0.4) Merged with vdrift-data SRC.RPM (one tar.gz file is provided by VDrift project) * Fri Feb 19 2010 PeÅ¥oÅ¡ Å afaÅÃk <petos@mandriva.org> 0.3-0.20090615.2mdv2010.1 + Revision: 508373 - Patch removed -- already in mainstream - version 2009-06-15 Add libboost-devel to BuildRequires + Thierry Vignaud <tv@mandriva.org> - rebuild + Zombie Ryushu <ryushu@mandriva.org> - update to latest snapshot provided by upstream - update to latest snapshot provided by upstream * Fri Mar 14 2008 Antoine Ginies <aginies@mandriva.com> 0.2-0.20080223.4mdv2008.1 + Revision: 187868 - new release - remove duplicate patch entry - rename sconstruct patch - add glew-devel buildrequires, remove graphics.cpp patch, update to latest release 2008-02-23-RC1 to be able to report bug to upstream with a recent release. * Fri Mar 14 2008 Antoine Ginies <aginies@mandriva.com> 0.2-0.20071226.4mdv2008.1 + Revision: 187785 - fix path for graphics.cpp in patch - don't return an exception for "OpenGL error on FBO end" * Thu Mar 13 2008 Antoine Ginies <aginies@mandriva.com> 0.2-0.20071226.3mdv2008.1 + Revision: 187459 - bump release - fix path to icon * Tue Mar 11 2008 Antoine Ginies <aginies@mandriva.com> 0.2-0.20071226.2mdv2008.1 + Revision: 186959 - fix carrier return in patch - add patch tag - fix build using bullet system includes - scons build must use bullet headers - remove old source * Tue Mar 11 2008 Antoine Ginies <aginies@mandriva.com> 0.2-0.20071226.1mdv2008.1 + Revision: 185172 - new tarball - add some buildrequires + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' * Tue May 01 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.2-0.20070323.1mdv2008.0 + Revision: 20016 - new snapshot - drop P0 - add buildrequires on SDL_gfx0-devel * Fri Jan 05 2007 Olivier Blin <oblin@mandriva.com> 0.1-2.20061006mdv2007.0 + Revision: 104365 - buildrequires freealut-devel - build with freealut * Sat Dec 02 2006 Olivier Blin <oblin@mandriva.com> 0.1-1.20061006mdv2007.1 + Revision: 90003 - add menu entry * Sun Nov 05 2006 Olivier Blin <oblin@mandriva.com> 0.1-0.20061006mdv2007.1 + Revision: 76798 - buildrequire SDL_net-devel - buildrequire SDL_image-devel - initial vdrift release - Create vdrift