0331491
Name:           blobwars
e0922bb
Version:        1.11
e0922bb
Release:        1%{?dist}
0331491
Summary:        Mission and Objective based 2D Platform Game
0331491
Group:          Amusements/Games
41c8516
License:        GPLv2+ and Redistributable, no modification permitted
41c8516
#see README.fedora-music for details
0331491
URL:            http://www.parallelrealities.co.uk/blobWars.php
41c8516
# no full URL as it gets downloaded through a php script, and nonfree sound files has been removed
41c8516
Source0:        %{name}-%{version}.tar.bz2
e0922bb
Source1:        %{name}-1.09b2-music.tar.bz2
41c8516
Patch0:         blobwars-1.09b2-makefile.patch
e0922bb
#Patch1:         blobwars-1.05-desktop.patch
41c8516
#Patch2:         blobwars-1.07-es.patch
e0922bb
#Patch3:         blobwars-1.09b2-font_error.patch
e0922bb
Patch4:         blobwars-1.11-es.patch
e0922bb
Patch5:         blobwars-1.11-es-title.patch
0331491
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0331491
BuildRequires:  SDL_mixer-devel SDL_image-devel SDL_ttf-devel zlib-devel
87a497c
BuildRequires:  gettext desktop-file-utils
25a7937
Requires:       hicolor-icon-theme
0331491
0331491
%description
0331491
Blob Wars : Metal Blob Solid. This is Episode I of the Blob Wars Saga.
0331491
You must undertake the role of fearless Blob solider, Bob, as he infiltrates
0331491
various enemy installations and hideouts in an attempt to rescue as many
0331491
MIAs as possible.
0331491
0331491
0331491
%prep
41c8516
%setup -q -a 1
41c8516
%patch0 -p0 -z .makefile
e0922bb
#%patch1 -p1 -z .dsktop
41c8516
#%patch2 -p0
e0922bb
#%patch3 -p1 -z .font_error
e0922bb
%patch4 -p0
e0922bb
%patch5 -p0
41c8516
e0922bb
#
e0922bb
sed -e "s#Name=Metal Blob Solid#Name=Blob Wars : Metal Blob Solid#" -i icons/blobwars.desktop
e0922bb
echo >> "Comment=Mission and Objective based 2D Platform Game" icons/blobwars.desktop
e0922bb
e0922bb
chmod a-x src/* doc/*
e0922bb
 
41c8516
cp -p *{.xm,.s3m,.mod} music/
0331491
0331491
0331491
%build
0331491
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
0331491
  DOCDIR=%{_docdir}/%{name}-%{version}/
0331491
0331491
0331491
%install
0331491
rm -rf $RPM_BUILD_ROOT
0331491
make install DESTDIR=$RPM_BUILD_ROOT
25a7937
%find_lang %{name}
0331491
desktop-file-install --vendor fedora --delete-original    \
0331491
  --dir $RPM_BUILD_ROOT%{_datadir}/applications           \
e0922bb
  --remove-category=Application                           \
e0922bb
  --add-category=ActionGame                               \
e0922bb
  --remove-key=X-Desktop-File-Install-Version             \
0331491
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
0331491
41c8516
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
0331491
0331491
%clean
0331491
rm -rf $RPM_BUILD_ROOT
0331491
0331491
0331491
%post
0331491
touch --no-create %{_datadir}/icons/hicolor || :
f52deaa
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
f52deaa
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
f52deaa
fi
0331491
0331491
%postun
0331491
touch --no-create %{_datadir}/icons/hicolor || :
f52deaa
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
f52deaa
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
f52deaa
fi
0331491
0331491
25a7937
%files -f %{name}.lang
0331491
%defattr(-,root,root,-)
41c8516
%doc doc/* README.fedora-music
0331491
%{_bindir}/%{name}
0331491
%{_datadir}/%{name}
0331491
%{_datadir}/applications/fedora-%{name}.desktop
0331491
%{_datadir}/icons/hicolor/*/apps/%{name}.png
0331491
0331491
0331491
%changelog
e0922bb
* Sat Mar 07 2009 Rafał Psota <rafalzaq@gmail.com> 1.11-1
e0922bb
- update to 1.11 (bz 488584)
e0922bb
eb0584a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09b2-3
eb0584a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
eb0584a
53f7ad3
* Sat Aug 30 2008 Rafał Psota <rafalzaq@gmail.com> 1.09b2-2
53f7ad3
- FONT_ERROR patch (thanks to Michał Bentkowski)
53f7ad3
41c8516
* Fri Aug 29 2008 Rafał Psota <rafalzaq@gmail.com> 1.09b2-1
41c8516
- remove nonfree sounds and music
41c8516
38002a4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.07-2
38002a4
- Autorebuild for GCC 4.3
38002a4
a676ee7
* Sun Sep 16 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.07-1
a676ee7
- New upstream version 1.07 (bz 292391)
a676ee7
f52deaa
* Sun Aug  5 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.06-2
f52deaa
- Update License tag for new Licensing Guidelines compliance
f52deaa
25a7937
* Tue Apr 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.06-1
25a7937
- New upstream release 1.06-2
25a7937
b926389
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.05-3
b926389
- FE6 Rebuild
b926389
0331491
* Thu Jun  1 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.05-2
0331491
- remove extreanous BR SDL-devel and ImageMagick
25a7937
- remove extreanous "export" in %%build section
25a7937
- remove extreanous "-n %%{name}-%%{version}" under %%setup
0331491
- cleanup .desktop file
0331491
0331491
* Sun May 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.05-1
0331491
- initial Fedora Extras package