Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release-src > by-pkgid > c2b1b40f3daa8504c9eb8fea06e5b910 > files > 5

vdrift-20141020-8.mga7.src.rpm

%define versiondate 2014-10-20
%define date    %(echo %{versiondate} | sed -e 's/-//g')

Name:           vdrift
Version:        %{date}
Release:        %mkrel 8
Summary:        Open Source Car Racing Simulator
Group:          Games/Simulation
License:        GPLv3
Url:            http://vdrift.net/
Source0:        https://download.sf.net/%{name}/%{name}-%{versiondate}.tar.bz2
Patch0:         vdrift-2014-10-20-mga-bullet-2.85.patch
Patch1:         vdrift-fdr-error-output.patch
Patch2:         vdrift-2014-10-20-mga-scons3.patch

BuildRequires:  asio
BuildRequires:  boost-devel
BuildRequires:  pkgconfig(bullet)
BuildRequires:  pkgconfig(freealut)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(SDL2_gfx)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_net)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  python2-scons
Requires:       %{name}-data >= %{version}

%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 data
Summary:        Data files for the VDrift driving simulation
BuildArch:      noarch

%description data
This package contains data files for VDrift (Car Racing Simulator).

%prep
%setup -q -n %{name}
%autopatch -p1

%build
%setup_compile_flags
%scons2 \
  prefix=%{_prefix} \
  release=1

%install
install -D -m755 build/%{name} %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_gamesdatadir}/%{name}/data
cp -a data %{buildroot}%{_gamesdatadir}/%{name}
find %{buildroot}%{_gamesdatadir}/%{name} -name "SConscript*" -delete \
  -o -name "*.po*" -delete -o -name "*.py*" -delete
find %{buildroot}%{_gamesdatadir}/%{name} -type f -exec chmod 644 {} \;

install -D -m644 vdrift.appdata.xml \
  %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

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=%{name}
Terminal=false
Type=Application
Categories=Game;Simulation;
EOF

install -D -m644 data/textures/icons/vdrift-64x64.png \
  %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png

%files
%{_gamesbindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/64x64/apps/%{name}.png

%files data
%{_gamesdatadir}/%{name}/


%changelog
* Fri Apr 05 2019 daviddavid <daviddavid> 20141020-8.mga7
+ Revision: 1386045
- switch to Python2 scons support

* Mon Mar 04 2019 akien <akien> 20141020-7.mga7
+ Revision: 1371452
- Rebuild for bullet 2.88
+ luigiwalser <luigiwalser>
- rebuild for SDL_gfx

* Sun Sep 23 2018 umeabot <umeabot> 20141020-5.mga7
+ Revision: 1301577
- Mageia 7 Mass Rebuild

* Sun Jan 28 2018 daviddavid <daviddavid> 20141020-4.mga7
+ Revision: 1197558
- rebuild for new bullet 2.87

* Mon Oct 02 2017 daviddavid <daviddavid> 20141020-3.mga7
+ Revision: 1162722
- patch2: fix build with scons 3.0

* Sun Feb 26 2017 akien <akien> 20141020-2.mga6
+ Revision: 1087977
- Rebuild for bullet 2.86.1

* Thu Oct 27 2016 akien <akien> 20141020-1.mga6
+ Revision: 1063768
- Version 2014-10-20
- Fix build against bullet 2.85
- Install upstream appdata file
- Remove unneeded files from installed data and fix permissions
- Use Mageia optflags and ldflags and set release buildQFSFileEngine::open: No file name specified
- Rebuild for bullet 2.85.1

* Sun Oct 16 2016 tv <tv> 20120722-17.mga6
+ Revision: 1061017
- switch to %%autosetup (mga#15579)

* Wed Feb 17 2016 umeabot <umeabot> 20120722-16.mga6
+ Revision: 963189
- Mageia 6 Mass Rebuild

* Thu Aug 27 2015 sander85 <sander85> 20120722-15.mga6
+ Revision: 870214
- Rebuild for glew 1.13.0

* Wed Jun 24 2015 akien <akien> 20120722-14.mga6
+ Revision: 842163
- Rebuild for GLEW 1.12

* Wed Oct 15 2014 umeabot <umeabot> 20120722-13.mga5
+ Revision: 749714
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 20120722-12.mga5
+ Revision: 690189
- Mageia 5 Mass Rebuild

* Mon Sep 01 2014 luigiwalser <luigiwalser> 20120722-11.mga5
+ Revision: 670284
- rebuild for glew

* Sat Feb 15 2014 luigiwalser <luigiwalser> 20120722-10.mga5
+ Revision: 591742
- rebuild for SDL_gfx

* Sat Oct 19 2013 umeabot <umeabot> 20120722-9.mga5
+ Revision: 530487
- Mageia 4 Mass Rebuild

* Wed Jul 24 2013 sander85 <sander85> 20120722-8.mga4
+ Revision: 457725
- Rebuild for new glew

* Fri Jun 28 2013 fwang <fwang> 20120722-7.mga4
+ Revision: 447778
- rebuild for new libarchive

* 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