Name: openmortal Version: 0.7 Release: 4%{?dist} Summary: Parody of the an once popular coin-up fighting game License: GPLv2 and LGPLv2+ URL: http://%{name}.sf.net/ Source0: http://sf.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2 Source1: http://slackbuilds.org/slackbuilds/14.1/games/%{name}/%{name}.desktop Patch0: http://sf.net/p/%{name}/bugs/_discuss/thread/ee44287e/f17c/attachment/%{name}-0.7-gcc41.patch ##upstream is aware about incorrect-fsf-address #PatchX: http://sf.net/p/openmortal/bugs/21/attachment/openmortal-0.7-fix-fsf-address.patch BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel SDL_net-devel BuildRequires: freetype-devel perl(ExtUtils::Embed) BuildRequires: desktop-file-utils ## noarch dependencies Requires: %{name}-data = %{version}-%{release} Requires: %{name}-fonts = %{version}-%{release} ## perl fiddling Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %global __requires_exclude_from %{_datadir}/%{name}/script/ %description Open Mortal is a parody of an once popular coin-up fighting game. There is network game, team mode, etc. New characters can be added, so be an Open Mortal actor today! %package characters Summary: Characters for the game Open Mortal BuildArch: noarch Requires: %{name} = %{version}-%{release} %description characters There are 24 playable characters for the game Open Mortal, some more in the making. %package data Summary: Graphics and sound files for the game Open Mortal BuildArch: noarch Requires: %{name} = %{version}-%{release} %description data Graphics and sound files for the game Open Mortal. %package fonts Summary: Fonts for the game Open Mortal BuildArch: noarch %description fonts Fonts for the game Open Mortal. %prep %setup -q %patch0 ## adjust freetype path %if 0%{?fedora} >= 21 sed -i s,freetype/,, src/sge_tt_text.cpp %endif ## remove bundled 3rdparty stuff (unneeded) rm -rf src/sigc++/ %build %configure make %{?_smp_mflags} %install %make_install for file in %{buildroot}%{_datadir}/%{name}/script/*.pl; do sed -i -e '1i#!/usr/bin/perl' $file chmod a+x $file done desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} install -D %{_builddir}/%{buildsubdir}/data/gfx/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %files %doc AUTHORS COPYING ChangeLog PACKAGERS README TODO %{_bindir}/%{name} %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/script %{_datadir}/%{name}/script/*.pl %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %files characters %{_datadir}/%{name}/characters/ %files data %{_datadir}/%{name}/gfx/ %{_datadir}/%{name}/sound/ %files fonts %{_datadir}/%{name}/fonts/ %changelog * Sun Sep 14 2014 Raphael Groner - 0.7-4 - fix folder ownership - disable patch for right fsf address cause of legal reasons - remove trademarked original game name * Sun Sep 07 2014 Raphael Groner - 0.7-3 - fix freetype - fix fsf address * Sat Sep 06 2014 Raphael Groner - 0.7-2 - fix perl * Sun Aug 10 2014 Raphael Groner - 0.7-1 - initial build