File sugar-implode.spec of Package sugar-implode
#
# spec file for package sugar-implode
#
# 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: sugar-implode
Version: 15
%if 0%{?suse_version}
Release: 1
%else
Release: 1%{?dist}
%endif
Summary: Implode for Sugar
Group: Sugar/Activities
License: GPL-3.0+
URL: http://wiki.laptop.org/go/Implode
Source0: http://download.sugarlabs.org/activities/4086/implode-%{version}.xo
Source1: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: fdupes
BuildRequires: python
BuildRequires: sugar-toolkit-gtk3
Requires: sugar
BuildArch: noarch
%description
Implode is a logic game based on the "falling block" model of Tetris. The game
starts with a grid partially filled with blocks. The player makes a move by
removing adjacent blocks of the same color in groups of three or more. When
blocks are removed, higher blocks fall to fill their space, and when a column
is cleared, the blocks on either side close to fill the gap. The object of the
game is to remove all the blocks. Since the patterns of blocks above changes
when lower blocks are removed, the player must carefully decide what order
in which to remove the blocks so that there are no isolated blocks left at
the end of the game. The levels are generated in such a way that there is
always a sequence of removals that clears the board.
%prep
%setup -q -n Implode.activity
echo "summary = Logic game based on the “falling block” model of Tetris." >> activity/activity.info
%build
python ./setup.py build
%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
#executables
find %{buildroot}%{_datadir}/sugar/activities/Implode.activity/*.py -type f | xargs chmod a+x
for file in %{buildroot}%{_datadir}/sugar/activities/Implode.activity/{board,boardgen,color,gridwidget,implodeactivity,implodegame,setup}.py; do
chmod a+x $file
done
%find_lang com.jotaro.ImplodeActivity
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files -f com.jotaro.ImplodeActivity.lang
%defattr(-,root,root,-)
%doc COPYING NEWS
%{_datadir}/sugar/activities/Implode.activity/
%changelog