%define name trophy %define version 1.1.3 %define release 3mdk %define Summary Trophy is a 2D car racing action game for Linux. Name: %{name} Summary: %{Summary} Version: %{version} Release: %{release} Source: http://heanet.dl.sourceforge.net/sourceforge/trophy/%{name}-%{version}-src.tar.bz2 Source1: trophy-designer-manual.tar.bz2 Source10: %{name}.16.png Source11: %{name}.32.png Source12: %{name}.48.png URL: http://trophy.sourceforge.net/index.php3 License: GPL Group: Games/Arcade Packager: Guillaume Cottenceau <gc@mandrakesoft.com> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: clanlib0.6-devel libclanlib-network libclanlib-sound libhermes-devel # (gc) needed because of binary incompatibility of datafiles between versions of clanlib Requires: clanlib0.6 = 0.6.5 %description Trophy is a single-player racing game for Linux. Even though the goal is basically to finish the laps as the first, Trophy is an action game which offers much more than just a race. Lots of extras enable "unusual" features for races such as shooting, putting mines and many others. %prep %setup -q -n %{name}-%{version}-src -a 1 rm -rf `find -type d -name CVS` %build # (gc) workaround g++ exception bug when -fomit-frame-pointer is set export CFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer" CXXFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer" cd trophy autoconf %configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir} %make %install rm -rf "$RPM_BUILD_ROOT" mkdir -p $RPM_BUILD_ROOT/%{_gamesbindir} cp trophy/trophy $RPM_BUILD_ROOT/%{_gamesbindir}/trophy.real cat > $RPM_BUILD_ROOT/%{_gamesbindir}/trophy << EOF #!/bin/sh pushd %{_gamesdatadir}/trophy %{_gamesbindir}/trophy.real popd EOF chmod a+x $RPM_BUILD_ROOT/%{_gamesbindir}/trophy mkdir -p $RPM_BUILD_ROOT/%{_gamesdatadir}/trophy cp -a trophy/resources* $RPM_BUILD_ROOT/%{_gamesdatadir}/trophy mkdir -p $RPM_BUILD_ROOT/%{_menudir} cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name} ?package(%{name}):command="%{_gamesbindir}/%{name}" icon="%{name}.png" \ needs="x11" section="Amusement/Arcade" title="Trophy" \ longtitle="%{Summary}" EOF install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png %post %{update_menus} %postun %{clean_menus} %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %doc AUTHORS COPYING README designer_manual_en %{_gamesbindir}/* %{_gamesdatadir}/* %{_menudir}/%{name} %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %changelog * Tue Sep 2 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 1.1.3-3mdk - fix deps for 64bit build * Fri Jul 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.1.3-2mdk - rebuild - change summary macro to avoid possible conflicts if we were to build debug package - convert icons to png format - drop Prefix tag - use %%make macro * Wed May 28 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 1.1.3-1mdk - new release * Mon Jan 20 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 1.1.1-1mdk - take good work from Crispin Boylan <viewtronix@uklinux.net> - New version 1.1.1 * Wed Aug 14 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.6-10mdk - Automated rebuild with gcc 3.2-0.3mdk * Mon Jul 29 2002 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.6-9mdk - Remove NO_XALF from menu entry * Thu Jul 25 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.6-8mdk - Automated rebuild with gcc3.2 * Wed May 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-7mdk - recompile against latest libstdc++ and latest clanlib * Sat Jan 19 2002 Stefan van der Eijk <stefan@eijk.nu> 1.0.6-6mdk - BuildRequires * Mon Nov 12 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-5mdk - recompile against clanlib-0.5.1 (binary datafiles are not compatible with 0.5.0) * Tue Oct 16 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-4mdk - fix obsolete-tag Copyright * Tue Sep 11 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-3mdk - use absolute path in script to prevent from PATH's without /usr/games * Mon Sep 10 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-2mdk - don't use launch_x11_clanapp anymore (cl 0.5) * Tue Jun 26 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.6-1mdk - trophy 1.0.6 that is (really) compliant with ClanLib 0.5 * Tue May 1 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.2-1mdk - trophy 1.0.2 that is compliant with ClanLib 0.5 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 1.0.1-9mdk - Correct GNOME menu entry * Fri Mar 30 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-8mdk - use no-omit-frame-pointer to workaround g++ exceptions bug * Fri Feb 16 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-7mdk - add 48x48 icon - add designal manual - fix requires on launch_x11_clanapp * Fri Dec 8 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-6mdk - fix BuildRequires * Fri Nov 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-5mdk - recompile against newest libstdc++ - against lowercased hermes and clanlib * Wed Sep 6 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-4mdk - menu: now launches automatically the x11 target * Wed Aug 23 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-3mdk - automatically added packager tag * Wed Aug 16 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-2mdk - really work (forgot support for PKGDATADIR in some places, forgot some data) * Wed Aug 16 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.0.1-1mdk - first mdk package. thanks to alix.