File orderoftwilight.spec of Package orderoftwilight
#
# spec file for package
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _binname Order_of_Twilight
Name: orderoftwilight
Version: 1.0
Release: 0
License: Zlib
Summary: Univorn Jump'n'run with spell features
Url: http://stabyourself.net/orderoftwilight/
Group: Amusements/Games/Action/Other
Source: %{name}-source.zip
Source1: %{name}.png
Source2: %{name}.desktop
BuildRequires: unzip
BuildRequires: update-desktop-files
Requires: love >= 0.8.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a game where you use your arrow keys to cast a number of different spells to help you progress through the levels. It has a dozen level to go through and a challenge mode to test your wits.
Features:
* Magic
* Small pastel horses
* More Magic
%prep
%setup -q -c
sed -i 's/\r$//' *.txt
echo -e "#!/bin/sh\nlove %{_datadir}/%{name}/%{name}_%{version}.love\n" > %{name}
%build
%install
install -D -m 0644 %{_binname}.love %{buildroot}%{_datadir}/%{name}/%{name}_%{version}.love
install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%defattr(-,root,root)
%doc LICENSE.txt
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}_%{version}.love
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog