Name: xtux Version: 20030306 Release: %mkrel 12 Epoch: 0 Summary: Multiplayer arcade game featuring open-source mascots Group: Games/Arcade License: GPL+ and LGPLv2+ URL: http://xtux.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2 Source1: %{name}-16.png Source2: %{name}-32.png Source3: %{name}-48.png Patch: xtux-fix-format-strings.patch BuildRequires: xpm-devel BuildRequires: X11-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description 2005: Microsoft finally releases Windows2000. The few remaining in line from midnight December 31, 1999 expecting Microsoft to deliver "on time" were slightly annoyed, but otherwise the response was extremely enthusiastic. ... You must Battle through hoards of Evil Microsoft lusers, Certified Peons and Bugs while collecting computer processors. Using these, construct a massive Beowulf machine capable of cracking the security on Microsofts secret database. Upload yourself into the internet, liberate friendly Linux sites, then battle your way into microsoft.com destroying all you can find. Only then can you turn your wrath towards your nemisis, the evil lord Gates. %prep %setup -q -n %{name} %patch -p2 %{__perl} -pi -e 's|./tux_serv|%{_gamesbindir}/tux_serv|;' src/client/menu.c %build %{make} CC="%{__cc} %{optflags}" DATADIR="%{_gamesdatadir}/%{name}" X11LIB="-L%{_prefix}/X11R6/%{_lib} -lX11" %install %{__mkdir_p} %{buildroot}%{_gamesbindir} %{__install} -m 755 %{name} %{buildroot}%{_gamesbindir} %{__mkdir_p} %{buildroot}%{_sbindir} %{__install} -m 755 tux_serv %{buildroot}%{_gamesbindir} %{__mkdir_p} %{buildroot}%{_gamesdatadir}/%{name} %{__cp} -a data/* %{buildroot}%{_gamesdatadir}/%{name} # icons %{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png %{__install} -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png %{__install} -D -m 644 %{SOURCE3} %{buildroot}%{_miconsdir}/%{name}.png # menus %{__mkdir_p} %{buildroot}%{_datadir}/applications %{__cat} > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=X-Tux Comment=X-Tux Exec=%{_gamesbindir}/%{name} Icon=%{name} Terminal=false Type=Application Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade; EOF %{_bindir}/find %{buildroot}%{_gamesdatadir}/%{name}/images -type d -name ".xvpics" | %{_bindir}/xargs -t %{__rm} -r %clean %{__rm} -rf %{buildroot} %if %mdkversion < 200900 %post %{update_menus} %endif %if %mdkversion < 200900 %postun %{clean_menus} %endif %files %defattr(0644,root,root,0755) %doc AUTHORS CHANGELOG COPYING README README.GGZ doc/* %attr(0755,root,root) %{_gamesbindir}/%{name} %attr(0755,root,root) %{_gamesbindir}/tux_serv %{_gamesdatadir}/%{name} %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_datadir}/applications/* %changelog * Mon Sep 21 2009 Thierry Vignaud <tvignaud@mandriva.com> 0:20030306-12mdv2010.0 + Revision: 446273 - rebuild * Wed Apr 01 2009 Götz Waschk <waschk@mandriva.org> 0:20030306-11mdv2009.1 + Revision: 363338 - fix menu entry (bug #49378) - update license - fix format strings * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0:20030306-10mdv2009.0 + Revision: 242998 - rebuild - drop old menu - kill re-definition of %%buildroot on Pixel's request - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Aug 28 2007 David Walluck <walluck@mandriva.org> 0:20030306-8mdv2008.0 + Revision: 72467 - rebuild - Import xtux * Thu Aug 24 2006 David Walluck <walluck@mandrake.org> 0:20030306-7mdv2007.0 - add xdg menu * Thu Dec 22 2005 Anssi Hannula <anssi@mandriva.org> 0:20030306-6mdk - fix X11LIB for lib64 - fix menu section * Thu Jun 02 2005 Sebastien savarin <plouf@mandriva.org> 0:20030306-5mdk - Rebuild for new gcc * Sat Dec 04 2004 Franck Villaume <fvill@freesurf.fr> 0:20030306-4mdk - fix buildrequires * Sat Oct 23 2004 David Walluck <walluck@mandrake.org> 0:20030306-3mdk - rebuild * Thu Apr 17 2003 David Walluck <david@anti-microsoft.org> 0:20030306-2plf - really update description - update summary * Thu Apr 17 2003 David Walluck <david@anti-microsoft.org> 0:20030306-1plf - 20030306 - add epoch - add menu icons and update menus - add description - fix path to tux_serv when launching through the game's menu * Sat Feb 08 2003 David Walluck <david@anti-microsoft.org> 20030207-1plf - 20030207 * Thu Apr 25 2002 David Walluck <david@anti-microsoft.org> 20010601-2plf - cleanup * Mon Apr 22 2002 David Walluck <david@anti-microsoft.org> 20010601-1plf - release