|
Mystro256 |
1f687ed |
Name: mrrescue
|
|
Mystro256 |
1f687ed |
Version: 1.02e
|
|
Mystro256 |
e9b0bf7 |
Release: 2%{?dist}
|
|
Mystro256 |
1f687ed |
Summary: Arcade-style fire fighting game
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
#See LICENSE file in source for details
|
|
Mystro256 |
1f687ed |
#All code and assests are CC-BY-SA
|
|
Mystro256 |
1f687ed |
#excluding slam, AnAL and TSerial, which are MIT
|
|
Mystro256 |
1f687ed |
License: CC-BY-SA and MIT
|
|
Mystro256 |
1f687ed |
URL: http://tangramgames.dk/games/mrrescue
|
|
Mystro256 |
1f687ed |
Source0: https://github.com/SimonLarsen/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Mystro256 |
1f687ed |
#Patch for appdata, manpage, execution script, and desktop file
|
|
Mystro256 |
1f687ed |
Patch0: %{name}-appdata.patch
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
BuildRequires: desktop-file-utils
|
|
Mystro256 |
1f687ed |
BuildRequires: libappstream-glib
|
|
Mystro256 |
1f687ed |
BuildRequires: ImageMagick
|
|
Mystro256 |
1f687ed |
BuildArch: noarch
|
|
Mystro256 |
1f687ed |
Requires: love
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
# List the arches that love builds on below for f26+
|
|
Mystro256 |
1f687ed |
%if 0%{?fedora} > 25
|
|
Mystro256 |
1f687ed |
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 ppc64
|
|
Mystro256 |
1f687ed |
%endif
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
#From the website (see URL above)
|
|
Mystro256 |
1f687ed |
%description
|
|
Mystro256 |
1f687ed |
Mr. Rescue is an arcade styled 2d action game centered around evacuating
|
|
Mystro256 |
1f687ed |
civilians from burning buildings. The game features fast paced fire
|
|
Mystro256 |
1f687ed |
extinguishing action, intense boss battles, a catchy soundtrack and lots of
|
|
Mystro256 |
1f687ed |
throwing people around in pseudo-randomly generated buildings.
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
%prep
|
|
Mystro256 |
1f687ed |
%autosetup -p1
|
|
Mystro256 |
1f687ed |
sed -i 's/VERSION/%{version}/g' appdata/%{name}.6
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
%build
|
|
Mystro256 |
1f687ed |
#love "binary" files are just zipped sources, but should exclude appdata
|
|
Mystro256 |
1f687ed |
zip -r %{name}.love . -x appdata
|
|
Mystro256 |
1f687ed |
#Generate icon (modified splash.png)
|
|
Mystro256 |
1f687ed |
convert data/splash.png -crop 256x205+0+0 -background none -gravity center -extent 256x256! %{name}.png
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
%install
|
|
Mystro256 |
1f687ed |
#Install love file
|
|
Mystro256 |
1f687ed |
install -p -D -m 0644 %{name}.love \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_datadir}/%{name}/%{name}.love
|
|
Mystro256 |
1f687ed |
#Install execution script
|
|
Mystro256 |
1f687ed |
install -p -D -m 0755 appdata/%{name} \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_bindir}/%{name}
|
|
Mystro256 |
1f687ed |
#Install manpage
|
|
Mystro256 |
1f687ed |
install -p -D -m 0644 appdata/%{name}.6 \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_mandir}/man6/%{name}.6
|
|
Mystro256 |
1f687ed |
#Install appdata.xml and verify
|
|
Mystro256 |
1f687ed |
install -p -D -m 0644 appdata/%{name}.appdata.xml \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
Mystro256 |
1f687ed |
appstream-util validate-relax --nonet \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
1f687ed |
#Install desktop, icon:
|
|
Mystro256 |
1f687ed |
desktop-file-install \
|
|
Mystro256 |
1f687ed |
--dir %{buildroot}%{_datadir}/applications \
|
|
Mystro256 |
1f687ed |
appdata/%{name}.desktop
|
|
Mystro256 |
1f687ed |
install -p -D -m 0644 %{name}.png \
|
|
Mystro256 |
1f687ed |
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
%files
|
|
Mystro256 |
7fe1cc8 |
%license LICENSE
|
|
Mystro256 |
1f687ed |
%{_mandir}/man6/%{name}.*
|
|
Mystro256 |
1f687ed |
%{_bindir}/%{name}
|
|
Mystro256 |
1f687ed |
%{_datadir}/%{name}/
|
|
Mystro256 |
1f687ed |
%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
1f687ed |
%{_datadir}/applications/%{name}.desktop
|
|
Mystro256 |
1f687ed |
%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
1f687ed |
|
|
Mystro256 |
1f687ed |
%changelog
|
|
Mystro256 |
e9b0bf7 |
* Wed Nov 23 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 1.02e-2
|
|
Mystro256 |
e9b0bf7 |
- Appdata fixes
|
|
Mystro256 |
e9b0bf7 |
|
|
Mystro256 |
1f687ed |
* Sun Nov 20 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 1.02e-1
|
|
Mystro256 |
1f687ed |
- Initial package
|