Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > 523d94c3dedcccfbd1303a5275fb9e6e > files > 4

90secondportraits-1.01b-3.2.mga8.src.rpm

Name:           90secondportraits
Version:        1.01b
%define subrel  2
Release:        %mkrel 3
Summary:        Speed painting game: paint portraits in 90 seconds!
Group:          Games/Arcade
License:        zlib and CC-BY-SA 4.0 and CC-BY
URL:            http://tangramgames.dk/games/90secondportraits/
# Repacked with submodules from https://github.com/SimonLarsen/90-Second-Portraits
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}-128.png
Source2:        README.md
Patch0:         90secondportraits-1.01b-mga-Support-fkeys-and-numpad-for-scaling.patch

BuildArch:      noarch
BuildRequires:  zip
Requires:       love0.10

%description
Time is money and you have neither!
In 90 Second Portraits you're paying the bills by speed painting
portraits of bypassing customers!

You have 90 seconds to paint the customer and his/her prefered background.
Your work day ends after 5 customers!

%files
%doc CREDITS.txt LICENSE.txt README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp %{_sourcedir}/README.md .

%build
# Create .love archive
zip -9 -q -r %{name}.love .

# Launcher script
cat > %{name}.sh << EOF
#!/bin/sh
love0.10 %{_gamesdatadir}/%{name}/%{name}.love
EOF

# Desktop entry
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=90 Second Portraits
GenericName=Speed painting
Comment=Speed painting game: paint portraits in 90 seconds!
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%install
install -D -m 644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love
install -D -m 755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}
install -D -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 644 %{_sourcedir}/%{name}-128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png


%changelog
* Fri Oct 22 2021 akien <akien> 1.01b-3.2.mga8
+ Revision: 1752594
- Rebuild to fix missing signature
- Require love0.10 compatibility package (mga#25716)

* Tue Feb 11 2020 umeabot <umeabot> 1.01b-3.mga8
+ Revision: 1489255
- Mageia 8 Mass Rebuild

* Tue Sep 18 2018 umeabot <umeabot> 1.01b-2.mga7
+ Revision: 1259540
- Mageia 7 Mass Rebuild

* Fri Apr 15 2016 akien <akien> 1.01b-1.mga6
+ Revision: 1002821
- Version 1.01b (love 0.10 compatibility)

* Tue Feb 09 2016 umeabot <umeabot> 1.01-2.mga6
+ Revision: 952020
- Mageia 6 Mass Rebuild

* Tue Jan 13 2015 akien <akien> 1.01-1.mga5
+ Revision: 810380
- imported package 90secondportraits