Author: jwrdegoede
Update of /cvs/free/rpms/megamario/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv21760
Modified Files:
.cvsignore sources
Added Files:
megamario-1.5-compile-fix.patch megamario.desktop
megamario.spec
Log Message:
* Thu Jul 24 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.5-2
- Release bump for rpmfusion
megamario-1.5-compile-fix.patch:
--- NEW FILE megamario-1.5-compile-fix.patch ---
diff -up megamario-1.5/src/unixutils.h~ megamario-1.5/src/unixutils.h
--- megamario-1.5/src/unixutils.h~ 2008-07-24 17:01:34.000000000 +0200
+++ megamario-1.5/src/unixutils.h 2008-07-24 17:01:34.000000000 +0200
@@ -1,4 +1,8 @@
#ifdef __unix__
+
+/* for PATH_MAX */
+#include <sys/param.h>
+
#ifdef __cplusplus
extern "C"
{
--- NEW FILE megamario.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Mega Mario
Comment=Well known platform game clone
Exec=megamario
Icon=megamario.png
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;ActionGame;
--- NEW FILE megamario.spec ---
Name: megamario
Version: 1.5
Release: 2%{?dist}
Summary: Well known platform game clone
Group: Amusements/Games
License: LGPL+
URL:
http://mmario.sourceforge.net/
Source0:
http://downloads.sourceforge.net/mmario/MegaMario_v1.5_w32_linux.zip
Source1: %{name}.desktop
Patch0: megamario-1.5-compile-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL_mixer-devel SDL_image-devel SDL_ttf-devel
BuildRequires: ImageMagick desktop-file-utils
Requires: hicolor-icon-theme
%description
MegaMario is a clone of a well know platform game, featuring 25 new levels. In
the game you play Mario and your task is to free his brother Luigi, who was
captured by the evil Bowser.
%prep
%setup -q -c
%patch0 -p1
sed -i 's/\r//' *.txt
%build
make %{?_smp_mflags} PREFIX=%{_prefix} \
CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
convert -transparent '#FF00FF' data/gfx/characters/small/player1r.PNG \
%{name}.png
%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
# cruft removal
rm $RPM_BUILD_ROOT%{_datadir}/megamario/levels/1/1
rm $RPM_BUILD_ROOT%{_datadir}/megamario/levels/11/maiin
rm $RPM_BUILD_ROOT%{_datadir}/megamario/save.sav
rm $RPM_BUILD_ROOT%{_datadir}/megamario/sfx/jump.gpk
rm $RPM_BUILD_ROOT%{_datadir}/megamario/gfx/tiles/pipes/left/Desktop.ini
# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor dribble \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{SOURCE1}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{name}.png \
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%files
%defattr(-,root,root,-)
%doc CONTROLS.txt licence.txt readme.txt fixes_v1.5.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/dribble-%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%changelog
* Thu Jul 24 2008 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.5-2
- Release bump for rpmfusion
* Tue Jun 5 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.5-1%{?dist}
- New upstream release 1.5
* Sat Mar 10 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.3-3%{?dist}
- Fixup .desktop file categories for games-menus usage
- No longer use preconverted .png as RH bug 196010 is fixed
* Sun Jul 9 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.3-2%{?dist}
- Use a preconverted .png as icon to work around RH bug 196010
* Thu Jun 15 2006 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.3-1%{?dist}
- Initial Fedora Extras package
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/megamario/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Jun 2008 12:06:28 -0000 1.1
+++ .cvsignore 24 Jul 2008 14:59:29 -0000 1.2
@@ -0,0 +1 @@
+MegaMario_v1.5_w32_linux.zip
Index: sources
===================================================================
RCS file: /cvs/free/rpms/megamario/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Jun 2008 12:06:28 -0000 1.1
+++ sources 24 Jul 2008 14:59:29 -0000 1.2
@@ -0,0 +1 @@
+45853daeba399fe67bcb289d3543641d MegaMario_v1.5_w32_linux.zip