Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 99f08180e174b8c7407683d0aa162b71 > files > 2

supertuxkart-0.8-2.mga3.src.rpm

%define	oname	SuperTuxKart

Summary:	Kart racing game
Name: 		supertuxkart
Version: 	0.8
Release: 	%mkrel 2
Source0: 	http://sourceforge.net/projects/%{name}/files/SuperTuxKart/%{version}/%{name}-%{version}-src.tar.bz2
License: 	GPLv2+
Group: 		Games/Arcade
URL: 		http://supertuxkart.sourceforge.net/
BuildRequires:	fribidi-devel
BuildRequires:	openal-devel
BuildRequires:	oggvorbis-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	libcurl-devel
BuildRequires:	mesagl-devel
BuildRequires:	cmake
Requires: 	%{name}-data = %{version}

%description
SuperTuxKart is an improved version of TuxKart, a kart racing game
featuring Tux and friends. SuperTuxKart contains new characters, new
tracks and a reworked user interface.

%package data
Summary: Games data for the Kart racing game game
Group: Games/Arcade
Conflicts: supertuxkart < 0.7-3
Requires: %{name} = %{version}
BuildArch: noarch

%description data
This package contains data files for Kart racing game game.

%prep
%setup -qn %{oname}-%{version}

%build
# STK forked Irrlicht:
# https://projects.archlinux.org/svntogit/community.git/commit/?h=packages/supertuxkart&id=cc91df1ed8838a99d6573f4be771550883f0db0b
pushd lib/irrlicht/source/Irrlicht
NDEBUG=1 %make
popd

mkdir build
pushd build
cmake -DSTK_INSTALL_BINARY_DIR=%{_gamesbindir} -DSTK_INSTALL_DATA_DIR=%{_gamesdatadir}/%{name} ..
%make
popd

%install
pushd build
%make DESTDIR=%{buildroot} install
popd

mkdir %{buildroot}%{_datadir}/applications/
cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=SuperTuxKart
Icon=supertuxkart
GenericName=A kart racing game
GenericName[de_DE]=Ein Kart-Rennspiel
GenericName[fr_FR]=Un jeu de karting
GenericName[gl]=Xogo de carreiras con karts
GenericName[ro_RO]=Un joc de curse cu carturi
Exec=supertuxkart --log=file
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;ArcadeGame;
X-Desktop-File-Install-Version=0.21
EOF

rm -rf %{buildroot}%{_datadir}/pixmaps/%{name}_*.xpm %{buildroot}%{_gamesdatadir}/{doc,icons} %{buildroot}%{_prefix}/local
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{32x32,64x64}/apps
convert data/%{name}_32.xpm %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert data/%{name}_64.xpm %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png

%files
%doc AUTHORS ChangeLog README TODO
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

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


%changelog

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

* Thu Dec 20 2012 dams <dams> 0.8-1.mga3
+ Revision: 332924
- add mesagl-devel as buildrequire
- new version 0.8
- remove useless patches
- remove irrlicht as buildrequire as it has been forked and provided in the tarball
- add cmake as buildrequire

* Thu Sep 13 2012 dams <dams> 0.7.3-3.mga3
+ Revision: 293625
- add a require on engine game on the data package

* Wed Mar 14 2012 dams <dams> 0.7.3-2.mga2
+ Revision: 223344
- fix missing icon

* Tue Mar 06 2012 dams <dams> 0.7.3-1.mga2
+ Revision: 219462
- Add a patch to fix build with pthread
- new version 0.7.3

  + obgr_seneca <obgr_seneca>
    - fixed conflicting return value due to new libirrlicht
    - fixed desktop file
    - fix for a fixed typo in libirrlicht

* Sat Dec 10 2011 fwang <fwang> 0.7-3.mga2
+ Revision: 180234
- br fribidi
- split data package

* Fri Sep 23 2011 fwang <fwang> 0.7-2.mga2
+ Revision: 146955
- fix desktop file
- clean br

* Wed Apr 20 2011 dams <dams> 0.7-1.mga1
+ Revision: 89141
- revert to 0.7 as 0.7.1 needs irrlicht 1.8 now yet stable
- imported package supertuxkart