File sugar-maze.spec of Package sugar-maze

#
# spec file for package sugar-maze
#
# 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-maze
Version:        24
%if 0%{?suse_version}
Release:        1
%else
Release:        3%{?dist}
%endif
Summary:        Maze for Sugar

License:        GPL-3.0+
Url:            http://wiki.laptop.org/go/Maze
Group:          Sugar/Activities
Source0:        http://download.sugarlabs.org/activities/4071/maze-%{version}.xo
Source1:        %{name}-rpmlintrc

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-toolkit

Requires:       pygame
Requires:       python-olpcgames
Requires:       sugar

%description
A simple maze game for the XO laptop. You can play by yourself or race
to solve it with your buddies. Up to 3 people can play on a single XO
laptop and lots more can play when shared over the network.

%prep
%setup -q -n Maze.activity

%build
python ./setup.py build

%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang vu.lux.olpc.Maze
find  %{buildroot}%{_datadir}/sugar/activities/Maze.activity/activity.py  -type f -name \* -exec chmod 644 {} \;
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f vu.lux.olpc.Maze.lang
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/sugar/activities/Maze.activity/

%changelog
openSUSE Build Service is sponsored by