Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > c66f6322b95219b7ead4e4902713df94 > files > 6

vdrift-20141020-18.mga9.src.rpm

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

Name:           vdrift
Version:        %{date}
Release:        %mkrel 18
Summary:        Open Source Car Racing Simulator
Group:          Games/Simulation
License:        GPLv3
Url:            https://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-python3.patch
Patch3:         vdrift-2014-10-20-bullet-double.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:  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
%set_build_flags
%scons \
  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 Dec 09 2022 rapsys <rapsys> 20141020-18.mga9
+ Revision: 1919674
- Improve bullet double precision patch for upstream submission

* Thu Dec 08 2022 rapsys <rapsys> 20141020-17.mga9
+ Revision: 1919304
- Add patch for bullet double precision
- Rebuild for bullet 3.24 with double precision

* Mon Apr 04 2022 umeabot <umeabot> 20141020-16.mga9
+ Revision: 1843673
- Mageia 9 Mass Rebuild

* Wed May 26 2021 akien <akien> 20141020-15.mga9
+ Revision: 1728367
- Rebuild for bullet 3.17

* Wed Dec 30 2020 akien <akien> 20141020-14.mga8
+ Revision: 1665652
- Rebuild for bullet 3.08

* Thu Dec 17 2020 akien <akien> 20141020-13.mga8
+ Revision: 1660146
- Rebuild for bullet 3.07

* Sat Oct 17 2020 akien <akien> 20141020-12.mga8
+ Revision: 1636579
- Rebuild for bullet 3.06

* Sun Feb 16 2020 umeabot <umeabot> 20141020-11.mga8
+ Revision: 1532783
- Mageia 8 Mass Rebuild

* Sat Feb 15 2020 daviddavid <daviddavid> 20141020-10.mga8
+ Revision: 1526401
- rebuild for bullet 2.89
+ wally <wally>
- replace deprecated %%setup_compile_flags

* Tue Sep 17 2019 daviddavid <daviddavid> 20141020-9.mga8
+ Revision: 1443184
- switch to python3-scons

* 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