|
Mystro256 |
c9bed90 |
Name: safetyblanket
|
|
Mystro256 |
c9bed90 |
Version: 1.01
|
|
Mystro256 |
057a7e4 |
Release: 2%{?dist}
|
|
Mystro256 |
c9bed90 |
Summary: Creepy blanket simulator
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
#See LICENSE.txt file in source for details
|
|
Mystro256 |
c9bed90 |
#All code is zlib excluding slam.lua and AnAL.lua, which is MIT
|
|
Mystro256 |
c9bed90 |
#All assets are CC-BY 4.0, excluding font, which is CC-BY 3.0
|
|
Mystro256 |
c9bed90 |
License: zlib and MIT and CC-BY
|
|
Mystro256 |
c9bed90 |
URL: http://tangramgames.dk/games/safetyblanket/
|
|
Mystro256 |
c9bed90 |
Source0: https://github.com/SimonLarsen/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Mystro256 |
c9bed90 |
#Patch for appdata, manpage, execution script, and desktop file
|
|
Mystro256 |
c9bed90 |
Patch0: %{name}-appdata.patch
|
|
Mystro256 |
c9bed90 |
#Patch for LOVE v0.10.2
|
|
Mystro256 |
c9bed90 |
#https://github.com/SimonLarsen/safetyblanket/pull/2
|
|
Mystro256 |
c9bed90 |
Patch1: %{name}-%{version}-love0.10.2.patch
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
BuildRequires: desktop-file-utils
|
|
Mystro256 |
c9bed90 |
BuildRequires: libappstream-glib
|
|
Mystro256 |
c9bed90 |
BuildArch: noarch
|
|
Mystro256 |
c9bed90 |
Requires: love
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
057a7e4 |
# List the arches that love builds on prior to f28
|
|
Mystro256 |
057a7e4 |
%if 0%{?fedora} < 28
|
|
Mystro256 |
057a7e4 |
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 ppc64
|
|
Mystro256 |
057a7e4 |
%endif
|
|
Mystro256 |
057a7e4 |
|
|
Mystro256 |
c9bed90 |
#From the website (see URL above)
|
|
Mystro256 |
c9bed90 |
%description
|
|
Mystro256 |
c9bed90 |
Safety Blanket was developed in 48 hours for the Ludum Dare 29 game jam.
|
|
Mystro256 |
c9bed90 |
It’s bed time, the monsters are out to get you, and your blanket is just too
|
|
Mystro256 |
c9bed90 |
small to cover your body!
|
|
Mystro256 |
c9bed90 |
Cover your exposed limbs to fend off the approaching tentacles.
|
|
Mystro256 |
c9bed90 |
The tentacles will only go for your feet, hands and head.
|
|
Mystro256 |
c9bed90 |
If the tentacles reach you it’s game over!
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
%prep
|
|
Mystro256 |
c9bed90 |
%autosetup -p1
|
|
Mystro256 |
c9bed90 |
sed -i 's/VERSION/%{version}/g' appdata/%{name}.6
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
%build
|
|
Mystro256 |
c9bed90 |
#love "binary" files are just zipped sources, but should exclude appdata/docs
|
|
Mystro256 |
057a7e4 |
zip -r %{name}.love . -x appdata/* -x appdata/ -x LICENSE.txt
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
%install
|
|
Mystro256 |
c9bed90 |
#Install love file
|
|
Mystro256 |
c9bed90 |
install -p -D -m 0644 %{name}.love \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_datadir}/%{name}/%{name}.love
|
|
Mystro256 |
c9bed90 |
#Install execution script
|
|
Mystro256 |
c9bed90 |
install -p -D -m 0755 appdata/%{name} \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_bindir}/%{name}
|
|
Mystro256 |
c9bed90 |
#Install manpage
|
|
Mystro256 |
c9bed90 |
install -p -D -m 0644 appdata/%{name}.6 \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_mandir}/man6/%{name}.6
|
|
Mystro256 |
c9bed90 |
#Install appdata.xml and verify
|
|
Mystro256 |
c9bed90 |
install -p -D -m 0644 appdata/%{name}.appdata.xml \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
Mystro256 |
c9bed90 |
appstream-util validate-relax --nonet \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
c9bed90 |
#Install desktop, icon:
|
|
Mystro256 |
c9bed90 |
desktop-file-install \
|
|
Mystro256 |
c9bed90 |
--dir %{buildroot}%{_datadir}/applications \
|
|
Mystro256 |
c9bed90 |
appdata/%{name}.desktop
|
|
Mystro256 |
c9bed90 |
install -p -D -m 0644 res/gfx/title_text1.png \
|
|
Mystro256 |
c9bed90 |
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
%files
|
|
Mystro256 |
c9bed90 |
%license LICENSE.txt
|
|
Mystro256 |
c9bed90 |
%{_mandir}/man6/%{name}.*
|
|
Mystro256 |
c9bed90 |
%{_bindir}/%{name}
|
|
Mystro256 |
c9bed90 |
%{_datadir}/%{name}/
|
|
Mystro256 |
c9bed90 |
%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
c9bed90 |
%{_datadir}/applications/%{name}.desktop
|
|
Mystro256 |
c9bed90 |
%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
c9bed90 |
|
|
Mystro256 |
c9bed90 |
%changelog
|
|
Mystro256 |
057a7e4 |
* Mon Mar 19 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01-2
|
|
Mystro256 |
057a7e4 |
- Prepare backport to all fedora branches
|
|
Mystro256 |
057a7e4 |
- Properly exclude appdata folder from binary
|
|
Mystro256 |
057a7e4 |
|
|
Mystro256 |
c9bed90 |
* Sun Mar 18 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01-1
|
|
Mystro256 |
c9bed90 |
- Initial package
|