vdrift/vdrift.spec

283 lines
8.7 KiB
RPMSpec

Name: vdrift
Version: 20120722
Release: 12%{?dist}
Summary: Driving/drift racing simulation
Group: Amusements/Games
License: GPLv3+
URL: http://vdrift.net
#Source0: %{name}-2010-06-30.tar.bz2
Source0: http://downloads.sourceforge.net/%{name}/%{name}-2012-07-22.tar.bz2
#Original upstream:
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-2009-06-15-src.tar.bz2
# Modified:
# cd docs
# rm SConscript INSTALL
# cd ..
# rm -rf tools/win
Source1: vdrift.desktop
Source2: vdrift.png
Patch0: vdrift-SConstruct.patch
Patch1: vdrift-20071226-paths.patch
Patch4: vdrift-20090215-joepack-includes.patch
#Patch5: vdrift-20090615-dsolink.patch
# patch to unbundle bullet, not upstreamable
#Patch6: vdrift-2010-06-30-unbundle.patch
#Patch7: vdrift-2011-09-09-curl.patch
Patch8: vdrift-20111022-constfix.patch
Patch9: vdrift-2012-07-22c_bullet281_patch.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: SDL_gfx-devel
BuildRequires: scons
BuildRequires: libGL-devel
BuildRequires: libvorbis-devel
BuildRequires: desktop-file-utils
BuildRequires: glew-devel
BuildRequires: boost-devel
BuildRequires: asio-devel
BuildRequires: bullet-devel
BuildRequires: libarchive-devel
BuildRequires: libcurl-devel
Requires: vdrift-data = %{version}
#Obsoletes: vdrift-data <= 20071226
#Provides: vdrift-data = %{version}-%{release}
%description
VDrift is a cross-platform, open source driving simulation made with drift
racing in mind. It's powered by the excellent Vamos physics engine. It is
released under the GNU General Public License (GPL) v2. It is currently
available for Linux, FreeBSD, Mac OS X and Windows (Cygwin).
%package data
Summary: Driving/drift racing simulation data
Group: Amusements/Games
Requires: vdrift = %{version}
BuildArch: noarch
%description data
VDrift is a cross-platform, open source driving simulation made with drift
racing in mind. It's powered by the excellent Vamos physics engine. It is
released under the GNU General Public License (GPL) v2. It is currently
available for Linux, FreeBSD, Mac OS X and Windows (Cygwin).
These are the data files.
%prep
%setup -qn VDrift
# unbundling
rm -rf bullet
%ifarch ppc ppc64
sed -i 's/linuxx86/linuxppc/' src/SConscript
%endif
%patch0 -p0
%patch1 -p0
%patch4 -p0
#%patch5 -p0
#%patch6 -p0
#%patch7 -p0
%patch8 -p0
%patch9 -p0
#/bin/chmod -x src/gamestate.cpp
#/bin/chmod -x src/logo.cpp
#/bin/chmod -x src/objects.cpp
/bin/chmod -x src/main.cpp
/bin/chmod -x src/game.cpp
%build
CC="gcc" CXX="g++" CXXFLAGS="%{optflags}" \
scons \
bin=/bin prefix=/usr use_binreloc=0 \
release=1 os_cc=1 os_cxx=1 os_cxxflags=1 \
NLS=0 \
verbose=1 \
%{?_smp_mflags}
%install
# As described in the README scons install is broken so DIY
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}
install -m 755 build/vdrift %{buildroot}%{_bindir}
cp -pr data %{buildroot}%{_datadir}/vdrift
rm `find %{buildroot}%{_datadir}/vdrift -name "SConscript*"`
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE1}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
install -p -m 644 %{SOURCE2} \
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%doc README.md LICENSE
%{_bindir}/vdrift
%{_datadir}/applications/vdrift.desktop
%{_datadir}/icons/hicolor/32x32/apps/vdrift.png
%files data
%{_datadir}/vdrift
%changelog
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120722-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 13 2014 Hans de Goede <hdegoede@redhat.com> - 20120722-11
- Rebuild for new SDL_gfx
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120722-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 20120722-9
- Rebuild for boost 1.55.0
* Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 20120722-8
- Rebuild for bullet-2.82
* Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 20120722-7
- rebuilt for GLEW 1.10
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120722-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 20120722-5
- Rebuild for boost 1.54.0
* Sat Feb 09 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 20120722-4
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
* Thu Jan 17 2013 Tomas Bzatek <tbzatek@redhat.com> - 20120722-3
- Rebuilt for new libarchive
* Thu Dec 13 2012 Adam Jackson <ajax@redhat.com> - 20120722-2
- Rebuild for glew 1.9.0
* Wed Oct 24 2012 Jon Ciesla <limburgher@gmail.com> - 20120722-1
- Latest upstream.
* Sat Oct 13 2012 Rich Mattes <richmattes@gmail.com> - 20111022-8
- Rebuild for new bullet
- Add fix for build error with new bullet
* Wed Aug 01 2012 Adam Jackson <ajax@redhat.com> - 20111022-7
- Rebuild for new glew
* Thu Jul 26 2012 Jon Ciesla <limburgher@gmail.com> - 20111022-6
- Rebuilt for boost 1.50.
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20111022-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon May 28 2012 Rich Mattes <richmattes@gmail.com> - 20111022-4
- Rebuild for bullet 2.80
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20111022-3
- Rebuilt for c++ ABI breakage
* Thu Jan 26 2012 Tomas Bzatek <tbzatek@redhat.com> - 20111022-2
- Rebuilt for new libarchive
* Wed Jan 18 2012 Jon Ciesla <limburgher@gmail.com> - 20111022-1
- New upstream.
- License changed to GPLv3+.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100630-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Dec 19 2011 Jon Ciesla <limburgher@gmail.com> - 20100630-7
- Bump and rebuild for new bullet..
* Fri Jul 15 2011 Jon Ciesla <limb@jcomserv.net> - 20100630-6
- Bump and rebuild for new SDL.
* Mon Jun 20 2011 ajax@redhat.com - 20100630-5
- Rebuild for new glew soname
* Thu May 12 2011 Jon Ciesla <limb@jcomserv.net> - 20100630-4
- Rebuild for new bullet.
* Sat Feb 19 2011 Thomas Spura <tomspur@fedoraproject.org> - 20100630-3
- unbundle bullet (#621623)
- remove unneeded BR
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100630-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Oct 28 2010 Jon Ciesla <limb@jcomserv.net> - 20100630-1
- New upstream.
* Mon Jun 28 2010 Jon Ciesla <limb@jcomserv.net> - 20090615-4
- FTBFS fix, BZ 599767.
* Thu Aug 06 2009 Jon Ciesla <limb@jcomserv.net> - 20090615-3
- Path fix, BZ 515908.
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090615-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Jun 30 2009 Jon Ciesla <limb@jcomserv.net> - 20090615-1
- Update to 2009-06-15.
- Split data into noarch subpackage, BZ 508079.
* Thu Feb 19 2009 Jon Ciesla <limb@jcomserv.net> - 20090215-1
- Update to 2009-02-15.
- Includes patch.
* Mon Nov 24 2008 Jon Ciesla <limb@jcomserv.net> - 20080805-3
- Cleaned up summary.
* Tue Oct 21 2008 Hans de Goede <hdegoede@redhat.com> - 20080805-2
- Actually install the data now that its merged into the main package
* Tue Aug 12 2008 Jon Ciesla <limb@jcomserv.net> - 20080805-1
- Update to new upstream.
- Dropped gcc4.3 and jamfile patches, applied upstream.
- Merged and obsolete/provided -data package, following upstream.
- Added glew-devel BR.
* Fri Feb 15 2008 Jon Ciesla <limb@jcomserv.net> - 20071226-3
- Multiple fixes for the review.
* Thu Feb 14 2008 Jon Ciesla <limb@jcomserv.net> - 20071226-2
- Multiple package fixes.
* Tue Feb 12 2008 Jon Ciesla <limb@jcomserv.net> - 20071226-1
- Updated to current release.
* Wed Apr 18 2007 Jon Ciesla <limb@jcomserv.net> - 20070323-4
- Added patch to fix mouse driving from thelusiv@gmail.com.
* Mon Apr 16 2007 Jon Ciesla <limb@jcomserv.net> - 20070323-3
- Corrected patch to allow build without minimal data.
- Added release=1 to scons options.
- Passing compiler flags to scons.
- Turned off translations.
* Mon Apr 04 2007 Jon Ciesla <limb@jcomserv.net> - 20070323-2
- Split out minimal data.
* Thu Mar 28 2007 Jon Ciesla <limb@jcomserv.net> - 20070323-1
- Initial packaging