|
Mystro256 |
94f1e08 |
%global githash 84c2c9672181e7ef6b9dd573cf4be301d7a77691
|
|
Mystro256 |
94f1e08 |
%global shortcommit %(c=%{githash}; echo ${c:0:7})
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
Name: orthorobot
|
|
Mystro256 |
94f1e08 |
Version: 1.1
|
|
Mystro256 |
94f1e08 |
Release: 3%{?dist}
|
|
Mystro256 |
94f1e08 |
Summary: A perspective based puzzle game
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
License: WTFPL
|
|
Mystro256 |
94f1e08 |
URL: http://stabyourself.net/orthorobot/
|
|
Mystro256 |
94f1e08 |
Source0: https://github.com/Stabyourself/%{name}/archive/%{githash}.tar.gz#/%{name}-%{shortcommit}.tar.gz
|
|
Mystro256 |
94f1e08 |
#Source1 is a copy of the license, straight from wtfpl.net
|
|
Mystro256 |
94f1e08 |
Source1: http://www.wtfpl.net/txt/copying
|
|
Mystro256 |
94f1e08 |
#Patch for appdata, manpage, execution script, and desktop file
|
|
Mystro256 |
94f1e08 |
Patch0: %{name}-%{version}-appdata.patch
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
BuildRequires: desktop-file-utils
|
|
Mystro256 |
94f1e08 |
BuildRequires: libappstream-glib
|
|
Mystro256 |
94f1e08 |
BuildArch: noarch
|
|
Mystro256 |
94f1e08 |
Requires: love
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
#From the website (see URL above)
|
|
Mystro256 |
94f1e08 |
%description
|
|
Mystro256 |
94f1e08 |
Literally bridging the gap between 2D and 3D games, Ortho Robot is a
|
|
Mystro256 |
94f1e08 |
perspective based puzzle game, where you flatten the view to move
|
|
Mystro256 |
94f1e08 |
across gaps. This game is made with LOVE.
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
%prep
|
|
Mystro256 |
94f1e08 |
%setup -q -n %{name}-%{githash}
|
|
Mystro256 |
94f1e08 |
%patch0 -p1
|
|
Mystro256 |
94f1e08 |
#Fix line encoding for license file:
|
|
Mystro256 |
94f1e08 |
sed 's/\r$//' %{SOURCE1} > ./LICENSE
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
%build
|
|
Mystro256 |
94f1e08 |
#love "binary" files are just zipped sources, but should exclude appdata
|
|
Mystro256 |
94f1e08 |
zip -r %{name}.love . -x appdata
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
%install
|
|
Mystro256 |
94f1e08 |
#Install love file
|
|
Mystro256 |
94f1e08 |
install -p -D -m 0644 %{name}.love \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_datadir}/%{name}/%{name}.love
|
|
Mystro256 |
94f1e08 |
#Install execution script
|
|
Mystro256 |
94f1e08 |
install -p -D -m 0755 appdata/%{name} \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_bindir}/%{name}
|
|
Mystro256 |
94f1e08 |
#Install manpage
|
|
Mystro256 |
94f1e08 |
install -p -D -m 0644 appdata/%{name}.6 \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_mandir}/man6/%{name}.6
|
|
Mystro256 |
94f1e08 |
#Install appdata.xml and verify
|
|
Mystro256 |
94f1e08 |
install -p -D -m 0644 appdata/%{name}.appdata.xml \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
|
|
Mystro256 |
94f1e08 |
appstream-util validate-relax --nonet \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
94f1e08 |
#Install desktop, icon:
|
|
Mystro256 |
94f1e08 |
desktop-file-install \
|
|
Mystro256 |
94f1e08 |
--dir %{buildroot}%{_datadir}/applications \
|
|
Mystro256 |
94f1e08 |
appdata/%{name}.desktop
|
|
Mystro256 |
94f1e08 |
install -p -D -m 0644 helpplayer.png \
|
|
Mystro256 |
94f1e08 |
%{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
%files
|
|
Mystro256 |
94f1e08 |
%doc LICENSE
|
|
Mystro256 |
94f1e08 |
%{_mandir}/man6/%{name}.*
|
|
Mystro256 |
94f1e08 |
%{_bindir}/%{name}
|
|
Mystro256 |
94f1e08 |
%{_datadir}/%{name}/
|
|
Mystro256 |
94f1e08 |
%{_datadir}/pixmaps/%{name}.png
|
|
Mystro256 |
94f1e08 |
%{_datadir}/applications/%{name}.desktop
|
|
Mystro256 |
94f1e08 |
%{_datadir}/appdata/*.appdata.xml
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
%changelog
|
|
Mystro256 |
94f1e08 |
* Mon Feb 22 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 1.1-3
|
|
Mystro256 |
94f1e08 |
- Adding appdata and basic manpage via patch
|
|
Mystro256 |
94f1e08 |
- Moving desktop and script to appdata patch
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
* Fri Feb 19 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 1.1-2
|
|
Mystro256 |
94f1e08 |
- Adding license file
|
|
Mystro256 |
94f1e08 |
- Fixing source0
|
|
Mystro256 |
94f1e08 |
- Generate desktop file similar to the execution script
|
|
Mystro256 |
94f1e08 |
- Forgot to exclude zipping the execution script
|
|
Mystro256 |
94f1e08 |
- Removed duplicate package file
|
|
Mystro256 |
94f1e08 |
|
|
Mystro256 |
94f1e08 |
* Mon Nov 30 2015 Jeremy Newton <alexjnewt at hotmail dot com> - 1.1-1
|
|
Mystro256 |
94f1e08 |
- Initial package
|