Sophie

Sophie

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

xmoto-0.5.10-4.mga3.src.rpm

Summary:	A challenging 2D motocross platform game
Name:		xmoto
Version:	0.5.10
Release:	%mkrel 4
License:	GPLv2+
Group:		Games/Arcade
Url:		http://xmoto.sourceforge.net/
Source0:	http://download.tuxfamily.org/xmoto/xmoto/%{version}/%{name}-%{version}-src.tar.gz
Source1:	%{name}.png
Patch0:		%{name}-%{version}-gcc47.patch
BuildRequires:	mesaglu-devel
BuildRequires:	ode-devel
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	SDL_net-devel
BuildRequires:	curl-devel
BuildRequires:	jpeg-devel
BuildRequires:	png-devel
BuildRequires:	bzip2-devel
BuildRequires:	imagemagick
BuildRequires:	lua5.1-devel
BuildRequires:	sqlite3-devel
BuildRequires:	bison
BuildRequires:	xdg-basedir-devel
BuildRequires:	libxml2-devel
# Use fonts-ttf-dejavu package rather than included fonts
Requires:	fonts-ttf-dejavu

%description
X-Moto is a challenging 2D motocross platform game, where physics play
an all important role in the gameplay. You need to control your bike
to its limit, if you want to have a chance finishing the more
difficult of the challenges.
First you'll try just to complete the levels, while later you'll
compete with yourself and others, racing against the clock.

%prep
%setup -q
%patch0 -p0

%build
%configure2_5x \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--with-localesdir=%{_datadir}/locale \
	--disable-rpath \
	--enable-threads=pth \
	--with-renderer-openGl=1 \
	--with-unoptimized=0

%make

%install
%makeinstall bindir=%{buildroot}%{_gamesbindir} datadir=%{buildroot}%{_gamesdatadir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=X-Moto
Comment=Motocross platform game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# Remove included DejaVu fonts and replace with symlinks to fonts-ttf-dejavu packaged fonts  
rm -f %{buildroot}%{_datadir}/games/xmoto/Textures/Fonts/DejaVu*
ln -sf %{_datadir}/fonts/TTF/dejavu/DejaVuSans.ttf %{buildroot}%{_datadir}/games/xmoto/Textures/Fonts/DejaVuSans.ttf 
ln -sf %{_datadir}/fonts/TTF/dejavu/DejaVuSansMono.ttf %{buildroot}%{_datadir}/games/xmoto/Textures/Fonts/DejaVuSansMono.ttf 

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
install %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
convert -scale 64 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 48 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/*


%changelog

* Wed Mar 13 2013 barjac <barjac> 0.5.10-4.mga3
+ Revision: 402728
- Require fonts-ttf-dejavu for fonts
- remove DejaVu fonts from package
- symlink to fonts-ttf-dejavu fonts

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

* Tue Jul 03 2012 dams <dams> 0.5.10-2.mga3
+ Revision: 266992
- add a patch to fix build with gcc47 (thanks to rtp)
- really fix icon size and clean specfile

* Tue Jun 26 2012 dams <dams> 0.5.10-1.mga3
+ Revision: 263951
- new version 0.5.10
- remove uneeded patch
- update icon size to have a better GNOME3 experience

* Sun Nov 13 2011 dams <dams> 0.5.9-1.mga2
+ Revision: 167348
- update BR add 'libxml2'
- new version 0.5.9

* Thu Sep 15 2011 fwang <fwang> 0.5.7-1.mga2
+ Revision: 144044
- fix build with latest png

* Mon Apr 11 2011 dams <dams> 0.5.7-1.mga1
+ Revision: 83184
- Update to 0.5.7

* Thu Apr 07 2011 dams <dams> 0.5.6-1.mga1
+ Revision: 81684
- Update to 0.5.6

* Wed Mar 23 2011 dams <dams> 0.5.5-2.mga1
+ Revision: 75902
- Fix new icon

* Wed Mar 23 2011 dams <dams> 0.5.5-1.mga1
+ Revision: 75895
- New version 0.5.5 and change icone

* Thu Jan 20 2011 blino <blino> 0.5.3-3.mga1
+ Revision: 25186
- use real vendor instead of hardcoded name
- imported package xmoto


* Mon Nov 15 2010 blino <blino> 0.5.3-2mdv2011.0
+ Revision: 597878
- drop deprecated menu macros

* Fri Aug 20 2010 blino <blino> 0.5.3-1mdv2011.0
+ Revision: 571446
- buildrequire xdg-basedir-devel
- 0.5.3
- drop merged 64bit patch

* Mon Sep 14 2009 fhimpe <fhimpe> 0.5.2-1mdv2010.0
+ Revision: 441035
- Add patch from Gentoo to fix build error on x86_64
- Update to new version 0.5.2
- Remove gcc 4.4 patch: not needed anymore

* Sat Aug 22 2009 fwang <fwang> 0.5.1-1mdv2010.0
+ Revision: 419530
- new version 0.5.1

* Sun Nov 30 2008 tpg <tpg> 0.5.0-1mdv2009.1
+ Revision: 308476
- update to new version 0.5.0
- add missing buildrequires on SDL_net-devel and bison
- disable rpath
- enable pth threads
- OpenGL is now default renderer
- move icons to fd.o compliant directory

* Fri Aug 08 2008 tv <tv> 0.4.2-3mdv2009.0
+ Revision: 269804
- rebuild early 2009.0 package (before pixel changes)

  + pixel <pixel>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Wed Apr 16 2008 blino <blino> 0.4.2-2mdv2009.0
+ Revision: 194604
+ rebuild (emptylog)

* Thu Apr 10 2008 blino <blino> 0.4.2-1mdv2009.0
+ Revision: 192553
- update man page location
- 0.4.2

* Wed Feb 20 2008 blino <blino> 0.4.1-1mdv2008.1
+ Revision: 173162
- subversion is not required anymore at build time
- 0.4.1

* Fri Feb 01 2008 fwang <fwang> 0.4.0-1mdv2008.1
+ Revision: 160967
- BR svn
- New version 0.4.0

  + blino <blino>
    - restore BuildRoot

  + tv <tv>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Oct 27 2007 blino <blino> 0.3.4-1mdv2008.1
+ Revision: 102544
- 0.3.4

* Wed Sep 05 2007 fwang <fwang> 0.3.3-1mdv2008.0
+ Revision: 79722
- New version 0.3.3

  + tv <tv>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Tue Aug 07 2007 blino <blino> 0.3.2-1mdv2008.0
+ Revision: 59725
- 0.3.2

* Thu Jul 05 2007 blino <blino> 0.3.1-1mdv2008.0
+ Revision: 48446
- 0.3.1

* Thu Jun 14 2007 blino <blino> 0.3.0-1mdv2008.0
+ Revision: 39317
- do not run automake anymore
- 0.3.0
- buildrequire SDL_ttf-devel and sqlite-devel


* Mon Mar 19 2007 Olivier Blin <oblin@mandriva.com> 0.2.7-1mdv2007.1
+ Revision: 146717
- 0.2.7 (bugfix release)

* Mon Mar 12 2007 Olivier Blin <oblin@mandriva.com> 0.2.6-2mdv2007.1
+ Revision: 141625
- get man page from upstream SVN
- 0.2.6
- temporarily remove corrupted man page

* Mon Jan 22 2007 Olivier Blin <oblin@mandriva.com> 0.2.4-2mdv2007.1
+ Revision: 111784
- rebuild for new ode

* Tue Jan 02 2007 Olivier Blin <oblin@mandriva.com> 0.2.4-1mdv2007.1
+ Revision: 103095
- 0.2.4

* Sat Oct 14 2006 Olivier Blin <oblin@mandriva.com> 0.2.2-2mdv2007.1
+ Revision: 64521
- buildrequires bzip2-devel
- buildrequires png-devel
- buildrequires jpeg-devel
- package locale files
- add man pages
- fix parallel build
- 0.2.2
- remove 2006.0 hacks and menu
- Import xmoto

* Sun Sep 10 2006 Olivier Blin <blino@mandriva.com> 0.2.0-3mdv2007.0
- use soundwrapper

* Tue Aug 08 2006 Olivier Blin <blino@mandriva.com> 0.2.0-2mdv2007.0
- rebuild for single precision ode (#24139)

* Sat Jul 29 2006 Olivier Blin <blino@mandriva.com> 0.2.0-1mdv2007.0
- 0.2.0

* Fri Jul 21 2006 Olivier Blin <blino@mandriva.com> 0.1.16-2mdv2007.0
- rebuild for new libode
- XDG menu
- fix old menu section

* Sat Jun 17 2006 Olivier Blin <oblin@mandriva.com> 0.1.16-1mdv2007.0
- New release 0.1.16

* Sun May 21 2006 Olivier Blin <oblin@mandriva.com> 0.1.14-1mdk
- New release 0.1.14
- adapt to new X11 package name in BuildRequires
- BuildRequires curl-devel, for online high-scores

* Mon Apr 10 2006 Olivier Blin <oblin@mandriva.com> 0.1.12-1mdk
- New release 0.1.12

* Tue Feb 07 2006 Olivier Blin <oblin@mandriva.com> 0.1.11-1mdk
- New release 0.1.11

* Sat Dec 03 2005 Olivier Blin <oblin@mandriva.com> 0.1.10-1mdk
- New release 0.1.10

* Fri Dec 02 2005 Olivier Blin <oblin@mandriva.com> 0.1.9-2mdk
- add linking workaround for lua as well
- enable linking workaround if <= 2006.0 only

* Fri Dec 02 2005 Olivier Blin <oblin@mandriva.com> 0.1.9-1mdk
- New release 0.1.9

* Tue Nov 15 2005 Olivier Blin <oblin@mandriva.com> 0.1.8-3mdk
- add SDL_mixer-devel BuildRequires

* Tue Nov 15 2005 Olivier Blin <oblin@mandriva.com> 0.1.8-2mdk
- add icons
- mkrel
- workaround not to link against the devel .so
- fix x86_64 build

* Fri Nov 11 2005 Olivier Blin <oblin@mandriva.com> 0.1.8-1mdk
- initial Mandriva release