Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d19dc049c3f21caecf3c79d629b5cc50 > files > 3

vdrift-20120722-6.mga3.src.rpm

%define oname		VDrift
%define versiondate 	2012-07-22
%define date 		%(echo %{versiondate} | sed -e 's/-//g')
%define dataname 	%{name}-data

Summary:	Open Source Car Racing Simulator
Name: 		vdrift
Version: 	%{date}
Release: 	%mkrel 6
Source0: 	%{name}-%{versiondate}.tar.bz2
# Upstream patch to fix bugs on 20120722 release and build with SDL < 2.x
# /!\ new version of the patch for bullet 281: https://github.com/VDrift/vdrift/issues/113
Patch0:		vdrift-2012-07-22c_bullet281_patch.diff
License: 	GPLv3
Group: 		Games/Simulation
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.
The driving physics engine was recently re-written from scratch but
was inspired and owes much to the Vamos physics engine.

%package 	-n %{dataname}
Summary:	Data files for the VDrift driving simulation
Requires:	%{name}  
Group: 		Games/Simulation
Obsoletes: 	%{dataname} < %{date}
BuildArch:  	noarch

%description 	-n %{dataname}
This package contains data files for VDrift (Car Racing Simulator).

%prep
%setup -q -n %{oname}
%apply_patches

%build
scons NLS=0 use_binreloc=0 prefix=%{_prefix}

%install
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/%{name}.desktop << EOF
[Desktop Entry]
Name=VDrift
GenericName=Car Racing Simulation
Comment=A driving simulation made with drift racing in mind
Exec=%{name}
Icon=%{_gamesdatadir}/%{name}/data/textures/icons/%{name}-64x64.png
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%files
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop

%files -n %{dataname}
%dir %{_gamesdatadir}/%{name}
%dir %{_gamesdatadir}/%{name}/data
%{_gamesdatadir}/%{name}/data/*


%changelog

* Thu Apr 11 2013 dams <dams> 20120722-6.mga3
+ Revision: 409650
- rebuild for new boost

* Mon Jan 14 2013 umeabot <umeabot> 20120722-5.mga3
+ Revision: 385388
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 09 2013 malo <malo> 20120722-4.mga3
+ Revision: 343864
- updated RPM group

* Mon Nov 12 2012 dams <dams> 20120722-3.mga3
+ Revision: 317234
- add a patch to fix build with new bullet (2.81)

* Mon Aug 20 2012 dams <dams> 20120722-2.mga3
+ Revision: 282505
- rebuild for new glew

* Mon Jul 30 2012 dams <dams> 20120722-1.mga3
+ Revision: 275933
- add the upstream vdrift-2012-07-22c patch to fix build (SDL < 2.x) and fix bugs
- new version 2012-07-22
- clean specfile

* Tue May 29 2012 dams <dams> 20111022-5.mga3
+ Revision: 248800
+ rebuild (emptylog)

* 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