|
Mystro256 |
f6d0289 |
Name: 90-Second-Portraits
|
|
Mystro256 |
f6d0289 |
Version: 1.01b
|
|
|
d8a88d7 |
Release: 6%{?dist}
|
|
Mystro256 |
f6d0289 |
Summary: Frantic street painting game
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
#See LICENSE file in source for details
|
|
Mystro256 |
f6d0289 |
#All code is zlib excluding slam.lua, which is MIT
|
|
Mystro256 |
f6d0289 |
#All assets are CC-BY-SA 4.0, excluding music, which is CC-BY 3.0
|
|
Mystro256 |
f6d0289 |
License: zlib and MIT and CC-BY-SA and CC-BY
|
|
Mystro256 |
f6d0289 |
URL: http://tangramgames.dk/games/90secondportraits/
|
|
Mystro256 |
f6d0289 |
Source0: https://github.com/SimonLarsen/%{name}/releases/download/%{version}/90secondportraits-%{version}.love#/%{name}-%{version}.zip
|
|
Mystro256 |
f6d0289 |
#Patch for appdata, manpage, execution script, and desktop file
|
|
Mystro256 |
f6d0289 |
Patch0: %{name}-appdata.patch
|
|
Mystro256 |
3963d5c |
%if 0%{?fedora} > 28
|
|
Mystro256 |
71e4b08 |
#https://github.com/SimonLarsen/90-Second-Portraits/pull/6
|
|
Mystro256 |
3963d5c |
Patch2: %{name}-%{version}-love11.patch
|
|
Mystro256 |
3963d5c |
%endif
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
BuildRequires: desktop-file-utils
|
|
Mystro256 |
f6d0289 |
BuildRequires: libappstream-glib
|
|
Mystro256 |
f6d0289 |
BuildArch: noarch
|
|
Mystro256 |
f6d0289 |
Requires: love
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
4d743da |
# List the arches that love builds on prior to f28
|
|
Mystro256 |
4d743da |
%if 0%{?fedora} < 28
|
|
Mystro256 |
4d743da |
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 ppc64
|
|
Mystro256 |
4d743da |
%endif
|
|
Mystro256 |
4d743da |
|
|
Mystro256 |
f6d0289 |
#From the website (see URL above)
|
|
Mystro256 |
f6d0289 |
%description
|
|
Mystro256 |
f6d0289 |
90 Second Portraits is a silly speed painting game developed for Ludum Dare 31
|
|
Mystro256 |
f6d0289 |
Jam competition. Time is money and you have neither! In 90 SECOND PORTRAITS
|
|
Mystro256 |
f6d0289 |
you’re paying the bills by speed painting portraits of bypassing customers!
|
|
Mystro256 |
f6d0289 |
You have 90 seconds to paint the customer and his/her preferred background!
|
|
Mystro256 |
f6d0289 |
Your work day ends after 5 customers!
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
%prep
|
|
Mystro256 |
f6d0289 |
%autosetup -c -p1
|
|
Mystro256 |
f6d0289 |
sed -i 's/VERSION/%{version}/g' appdata/%{name}.6
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
%build
|
|
Mystro256 |
f6d0289 |
#love "binary" files are just zipped sources, but should exclude appdata/docs
|
|
Mystro256 |
37bb18b |
zip -r %{name}.love . -x appdata/* -x appdata/ -x *.txt -x *.md
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
%install
|
|
Mystro256 |
f6d0289 |
#Install love file
|
|
Mystro256 |
f6d0289 |
install -p -D -m 0644 %{name}.love \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_datadir}/%{name}/%{name}.love
|
|
Mystro256 |
f6d0289 |
#Install execution script
|
|
Mystro256 |
f6d0289 |
install -p -D -m 0755 appdata/%{name} \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_bindir}/%{name}
|
|
Mystro256 |
f6d0289 |
#Install manpage
|
|
Mystro256 |
f6d0289 |
install -p -D -m 0644 appdata/%{name}.6 \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_mandir}/man6/%{name}.6
|
|
Mystro256 |
f6d0289 |
#Install appdata.xml and verify
|
|
Mystro256 |
f6d0289 |
install -p -D -m 0644 appdata/%{name}.appdata.xml \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
Mystro256 |
f6d0289 |
appstream-util validate-relax --nonet \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
f6d0289 |
#Install desktop, icon:
|
|
Mystro256 |
f6d0289 |
desktop-file-install \
|
|
Mystro256 |
f6d0289 |
--dir %{buildroot}%{_datadir}/applications \
|
|
Mystro256 |
f6d0289 |
appdata/%{name}.desktop
|
|
Mystro256 |
f6d0289 |
install -p -D -m 0644 data/images/title_background.png \
|
|
Mystro256 |
f6d0289 |
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
%files
|
|
Mystro256 |
f6d0289 |
%doc README.md CREDITS.txt
|
|
Mystro256 |
f6d0289 |
%license LICENSE.txt
|
|
Mystro256 |
f6d0289 |
%{_mandir}/man6/%{name}.*
|
|
Mystro256 |
f6d0289 |
%{_bindir}/%{name}
|
|
Mystro256 |
f6d0289 |
%{_datadir}/%{name}/
|
|
Mystro256 |
f6d0289 |
%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
f6d0289 |
%{_datadir}/applications/%{name}.desktop
|
|
Mystro256 |
f6d0289 |
%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
%changelog
|
|
|
d8a88d7 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.01b-6
|
|
|
d8a88d7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
d8a88d7 |
|
|
|
24c4a95 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.01b-5
|
|
|
24c4a95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
24c4a95 |
|
|
Mystro256 |
3963d5c |
* Tue Jun 12 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01b-4
|
|
Mystro256 |
3963d5c |
- Add love 11 support
|
|
Mystro256 |
3963d5c |
|
|
Mystro256 |
4d743da |
* Sat Mar 17 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01b-3
|
|
Mystro256 |
4d743da |
- Prepare backport to all fedora branches
|
|
Mystro256 |
37bb18b |
- Properly exclude appdata folder from binary
|
|
Mystro256 |
4d743da |
|
|
Mystro256 |
f6d0289 |
* Fri Mar 16 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01b-2
|
|
Mystro256 |
f6d0289 |
- Fix license and use license macro
|
|
Mystro256 |
f6d0289 |
- Move some documentation to correct location
|
|
Mystro256 |
f6d0289 |
|
|
Mystro256 |
f6d0289 |
* Fri Mar 16 2018 Jeremy Newton <alexjnewt at hotmail dot com> - 1.01b-1
|
|
Mystro256 |
f6d0289 |
- Initial package
|