Name: warmux Version: 11.04.1 Release: 2%{?dist} Summary: 2D turn-based artillery game Group: Amusements/Games # fixedpoint library seems to be under BSD license # Some parts of src/tool/xml_document.cpp are taken from libxml2 (released under the MIT license) License: GPLv2+ and BSD and MIT URL: http://www.wormux.org Source0: http://download.gna.org/warmux/warmux-%{version}.tar.bz2 # to work with newer zlib Patch1: warmux-zlib.patch BuildRequires: SDL_image-devel SDL_gfx-devel SDL_mixer-devel BuildRequires: SDL_ttf-devel SDL_net-devel curl-devel libpng-devel BuildRequires: gettext libxml++-devel desktop-file-utils BuildRequires: zlib-devel Requires: warmux-data = %{version} Requires: hicolor-icon-theme Provides: wormux = %{version}-%{release} Obsoletes: wormux < 0.9.2.1-7 %description Let's begin the WAR of Mascots from UniX! They'll represent your favorite free software titles while battling it out in the arena using dynamite, grenades, baseball bats and other bazookas... Exterminate your opponent in a 2D environment with toon-style scenery. Each player controls the team of his choice (penguin, gnu, firefox, wilber,...) and must destroy his adversary using more or less casual weapons. Although a minimum of strategy is required to vanquish, WarMUX is pre-eminently a "convivial mass murder" game where, turn by turn, each member of each team. The project was started as Wormux, and was renamed to Warmux in November 2010. %package data Summary: Data files for warmux Group: Amusements/Games Requires: %{name} = %{version} BuildArch: noarch Provides: wormux-data = %{version}-%{release} Obsoletes: wormux-data < 0.9.2.1-7 %description data Data files for warmux %prep %setup -q -n warmux-11.04 %patch1 -p1 -b .zlib # Remove a backup file rm -f data/game_mode/rope_objects.xml~ rm -f data/game_mode/skin_viewer.xml~ %build %configure --enable-fribidi make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} sed -i -e 's/Icon=.*/Icon=warmux/' \ %{buildroot}%{_datadir}/applications/warmux.desktop desktop-file-install \ --dir %{buildroot}%{_datadir}/applications/ \ --remove-category=Application \ --remove-category=ArcadeGame \ --add-category=StrategyGame \ --delete-original \ %{buildroot}%{_datadir}/applications/warmux.desktop install -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/ install -p -m 644 data/icon/warmux_128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/warmux.png rm -f %{buildroot}%{_datadir}/warmux/.nomedia %find_lang %{name} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %doc AUTHORS COPYING ChangeLog %{_bindir}/warmux %{_bindir}/warmux-list-games %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/128x128/apps/warmux.png %{_datadir}/pixmaps/warmux*.png %{_mandir}/man6/*.6.gz %files data %{_datadir}/warmux %changelog * Mon Jan 16 2012 Jiri Popelka - 11.04.1-2 - fixed problems from Package Review (#773419) * Wed Jan 11 2012 Jiri Popelka - 11.04.1-1 - wormux renamed to warmux - updated to 11.04.1 * Tue Dec 06 2011 Adam Jackson - 0.9.2.1-6 - Rebuild for new libpng * Tue Jul 26 2011 Bruno Wolff III - 0.9.2.1-5 - Rebuild for SDL_gfx soname bump. * Mon Feb 07 2011 Fedora Release Engineering - 0.9.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Sep 29 2010 jkeating - 0.9.2.1-3 - Rebuilt for gcc bug 634757 * Mon Sep 13 2010 Wart 0.9.2.1-2 - Re-add french translations that had gone missing * Sun Sep 12 2010 Wart 0.9.2.1-1 - Update to 0.9.2.1 with fix for 64-bit builds * Sat Sep 11 2010 Wart 0.9.2-1 - Update to 0.9.2 * Sat Feb 6 2010 Wart 0.9.0-1 - Update to 0.9.0 * Sat Oct 10 2009 Wart 0.8.5-1 - Update to 0.8.5 * Mon Jul 27 2009 Fedora Release Engineering - 0.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 18 2009 Wart 0.8.4-1 - Update to 0.8.4 * Thu May 7 2009 Ville Skyttä - 0.8.3-2 - Build with $RPM_OPT_FLAGS. * Wed May 6 2009 Wart 0.8.3-1 - Update to 0.8.3 - Make -data subpackage noarch * Wed Feb 25 2009 Fedora Release Engineering - 0.8.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Jan 29 2009 Wart 0.8.2-4 - Yet another font package rename * Thu Jan 1 2009 Wart 0.8.2-3 - Fix font package name for F11 * Wed Dec 24 2008 Wart 0.8.2-2 - Add coreutils requirement for rpm post scripts - Replace bundled font with a symlink to an identical system font (BZ #477484) * Fri Nov 7 2008 Wart 0.8.2-1 - Update to 0.8.2 * Thu May 29 2008 Wart 0.8-1 - Update to 0.8 * Fri Feb 8 2008 Wart 0.7.9-6 - Rebuild for gcc 4.3 * Tue Aug 21 2007 Wart 0.7.9-5 - License tag clarification * Tue Jun 19 2007 Matthias Saou 0.7.9-4 - Rebuild against SDL_gfx 2.0.16. * Wed Mar 28 2007 Wart 0.7.9-3 - Enable use of $RPM_OPT_FLAGS * Fri Mar 9 2007 Wart 0.7.9-2 - Clean up desktop file categories - Use upstream's desktop file and icon * Sat Feb 17 2007 Wart 0.7.9-1 - Update to 0.7.9 * Fri Sep 1 2006 Wart 0.7.4-1 - Update to 0.7.4 * Fri Aug 04 2006 Wart 0.7.2-6 - Add 'ArcadeGame' category to .desktop file * Fri Jun 09 2006 Wart 0.7.2-5 - Improve grammar in description * Fri Jun 09 2006 Wart 0.7.2-4 - Fix broken path to desktop icon - Fix typo in description * Fri Jun 09 2006 Wart 0.7.2-3 - Use RPM_BUILD_ROOT consistently - Put the wormux icon in a size-specific directory - Removed INSTALL from the documentation files * Fri Jun 09 2006 Wart 0.7.2-2 - Expanded the description - Separated game data into a subpackage * Fri Jun 02 2006 Wart 0.7.2-1 - Initial Fedora Extras package