Blame safetyblanket.spec

Mystro256 c9bed90
Name:           safetyblanket
Mystro256 c9bed90
Version:        1.01
f86ccd6
Release:        9%{?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 db99b7c
#https://github.com/SimonLarsen/safetyblanket/commit/5a3387b73bb5bd85718742ab813d9df44d075cd0
Mystro256 db99b7c
Patch1:         0001-Updated-for-L-VE-11.0.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 db99b7c
# List the arches that love builds on
Mystro256 db99b7c
ExclusiveArch: %{arm} %{ix86} x86_64 aarch64 ppc64le
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
f86ccd6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-9
f86ccd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f86ccd6
Mystro256 db99b7c
* Thu Mar 12 2020 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01-8
Mystro256 db99b7c
- Rebuilt for correct exclusive arch
Mystro256 db99b7c
- Fix some LOVE 11 issues
Mystro256 db99b7c
d52bb7a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-7
d52bb7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d52bb7a
ca789b8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-6
ca789b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ca789b8
4cc8216
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-5
4cc8216
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4cc8216
fe9d980
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-4
fe9d980
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fe9d980
Mystro256 8dc43c4
* Sat Jun 09 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01-3
Mystro256 8dc43c4
- Add love 11 support
Mystro256 8dc43c4
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