diff --git a/.gitignore b/.gitignore index e69de29..aa258c6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mrrescue-1.02e.tar.gz diff --git a/mrrescue-appdata.patch b/mrrescue-appdata.patch new file mode 100644 index 0000000..1cc8e70 --- /dev/null +++ b/mrrescue-appdata.patch @@ -0,0 +1,94 @@ +--- a/appdata/mrrescue ++++ b/appdata/mrrescue +@@ -0,0 +1,13 @@ ++#!/bin/sh ++if [ $# -ne 0 ] ++then ++ if [ "$1" == "-h" ]||[ "$1" == "--help" ] ++ then ++ man 6 mrrescue ++ exit ++ fi ++ echo "Invalid option(s): $*" 1>&2 ++ echo Usage: `basename $0` [-h] 1>&2 ++ exit 1 ++fi ++love /usr/share/mrrescue/mrrescue.love +--- a/appdata/mrrescue.6 ++++ b/appdata/mrrescue.6 +@@ -0,0 +1,17 @@ ++.TH mrrescue 6 "VERSION" "Mr. Rescue" ++.SH NAME ++mrrescue - Mr. Rescue v VERSION ++.SH SYNOPSIS ++Arcade-style fire fighting game ++.SH DESCRIPTION ++Mr. Rescue is an arcade styled 2d action game centered around evacuating ++civilians from burning buildings. The game features fast paced fire ++extinguishing action, intense boss battles, a catchy soundtrack and lots of ++throwing people around in pseudo-randomly generated buildings. ++This game is made with LOVE. You can find more games and ++information about the author(s) at http://tangramgames.dk/ ++.SH OPTIONS ++.BR \-h ", " \-\-help ++Show manpage. ++.SH SEE ALSO ++.BR love(6) +--- a/appdata/mrrescue.appdata.xml ++++ b/appdata/mrrescue.appdata.xml +@@ -0,0 +1,44 @@ ++ ++ ++ mrrescue.desktop ++ CC-BY-SA ++ CC-BY-SA ++ Mr Rescue ++ A perspective based puzzle game ++ ++

++ Mr. Rescue is an arcade styled 2d action game centered around evacuating ++ civilians from burning buildings. The game features fast paced fire ++ extinguishing action, intense boss battles, a catchy soundtrack and lots of ++ throwing people around in pseudo-randomly generated buildings. ++

++
++ ++ ++ http://tangramgames.dk/games/mrrescue/images/1.png ++ Example gameplay 1 ++ ++ ++ http://tangramgames.dk/games/mrrescue/images/2.png ++ Example gameplay 2 ++ ++ ++ http://tangramgames.dk/games/mrrescue/images/3.png ++ Example gameplay 3 ++ ++ ++ http://tangramgames.dk/games/mrrescue/images/4.png ++ Example gameplay 4 ++ ++ ++ http://tangramgames.dk/games/mrrescue/images/5.png ++ Example gameplay 5 ++ ++ ++ http://tangramgames.dk/games/mrrescue/images/6.png ++ Example gameplay 6 ++ ++ ++ http://tangramgames.dk/games/mrrescue/ ++ https://github.com/SimonLarsen/mrrescue/issues ++
+--- a/appdata/mrrescue.desktop ++++ b/appdata/mrrescue.desktop +@@ -0,0 +1,8 @@ ++[Desktop Entry] ++Name=Mr. Rescue ++Comment=Arcade-style fire fighting game ++Exec=mrrescue ++Type=Application ++Categories=Game;ArcadeGame; ++Terminal=false ++Icon=mrrescue diff --git a/mrrescue.spec b/mrrescue.spec new file mode 100644 index 0000000..b4968cd --- /dev/null +++ b/mrrescue.spec @@ -0,0 +1,76 @@ +Name: mrrescue +Version: 1.02e +Release: 1%{?dist} +Summary: Arcade-style fire fighting game + +#See LICENSE file in source for details +#All code and assests are CC-BY-SA +#excluding slam, AnAL and TSerial, which are MIT +License: CC-BY-SA and MIT +URL: http://tangramgames.dk/games/mrrescue +Source0: https://github.com/SimonLarsen/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +#Patch for appdata, manpage, execution script, and desktop file +Patch0: %{name}-appdata.patch + +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: ImageMagick +BuildArch: noarch +Requires: love + +# List the arches that love builds on below for f26+ +%if 0%{?fedora} > 25 +ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 ppc64 +%endif + +#From the website (see URL above) +%description +Mr. Rescue is an arcade styled 2d action game centered around evacuating +civilians from burning buildings. The game features fast paced fire +extinguishing action, intense boss battles, a catchy soundtrack and lots of +throwing people around in pseudo-randomly generated buildings. + +%prep +%autosetup -p1 +sed -i 's/VERSION/%{version}/g' appdata/%{name}.6 + +%build +#love "binary" files are just zipped sources, but should exclude appdata +zip -r %{name}.love . -x appdata +#Generate icon (modified splash.png) +convert data/splash.png -crop 256x205+0+0 -background none -gravity center -extent 256x256! %{name}.png + +%install +#Install love file +install -p -D -m 0644 %{name}.love \ + %{buildroot}/%{_datadir}/%{name}/%{name}.love +#Install execution script +install -p -D -m 0755 appdata/%{name} \ + %{buildroot}/%{_bindir}/%{name} +#Install manpage +install -p -D -m 0644 appdata/%{name}.6 \ + %{buildroot}/%{_mandir}/man6/%{name}.6 +#Install appdata.xml and verify +install -p -D -m 0644 appdata/%{name}.appdata.xml \ + %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/appdata/*.appdata.xml +#Install desktop, icon: +desktop-file-install \ + --dir %{buildroot}%{_datadir}/applications \ + appdata/%{name}.desktop +install -p -D -m 0644 %{name}.png \ + %{buildroot}/%{_datadir}/pixmaps/%{name}.png + +%files +%doc LICENSE +%{_mandir}/man6/%{name}.* +%{_bindir}/%{name} +%{_datadir}/%{name}/ +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/applications/%{name}.desktop +%{_datadir}/appdata/*.appdata.xml + +%changelog +* Sun Nov 20 2016 Jeremy Newton - 1.02e-1 +- Initial package diff --git a/sources b/sources index e69de29..60561fc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b599789e69de55577fff68d8bf93547a mrrescue-1.02e.tar.gz