File nottetris2.spec of Package nottetris2

#
# spec file for package nottetris2
#
# 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/
#


Name:           nottetris2
Version:        0
Release:        0
Summary:        Classic Tetris mixed with physics
License:        Zlib
Group:          Amusements/Games/Action/Arcade
Url:            http://stabyourself.net/nottetris2/
Source:         %{name}-source.zip
BuildRequires:  unzip
Requires:       love-0_7_2
BuildArch:      noarch

%description
Not Tetris 2 is the spiritual successor of the classic Tetris mixed with physics.
The result is a fun spinoff in which blocks are no longer bound to the usual grid.
Blocks can be rotated and placed at any angle, resulting in a complete mess if
not careful. And with the newest cutting edge technology, Not tetris 2 allows
line clears when the lines are sufficiently filled. The old mode is still
available for play and is now called Stack.

%prep
%setup -q -c
sed -i 's/\r$//' *.txt
mv 'Not Readme.txt' readme.txt
mv 'Not Tetris 2.love' %{name}.love
echo -e "#!/bin/sh\nlove-0.7.2 %{_datadir}/%{name}/%{name}.love\n" > %{name}

%build
# skip

%install
install -D -m 0644 %{name}.love %{buildroot}%{_datadir}/%{name}/%{name}.love
install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root)
%doc readme.txt
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.love

%changelog
openSUSE Build Service is sponsored by