File sugar-playgo.spec of Package sugar-playgo

#
# spec file for package sugar-playgo
#
# 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-playgo
Version:        6
%if 0%{?suse_version}
Release:        1
%else
Release:        2%{?dist}
%endif
Summary:        Go for Sugar

License:        GPL-2.0
Url:            http://wiki.laptop.org/go/PlayGo
Group:          Sugar/Activities
Source0:        http://download.sugarlabs.org/activities/4083/playgo-%{version}.xo
Source1:        %{name}-rpmlintrc

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

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-toolkit

Requires:       gnugo
Requires:       sugar

%description
The PlayGo activity implements Go a strategic board game for two players. Go
originated in ancient China, centuries before its earliest known references
in 5th century BC writing. It is mostly popular in East Asia but has nowadays
gained some popularity in the rest of the world as well. Go is noted for being
rich in strategic complexity despite its simple rules.

%prep
%setup -q -n PlayGo.activity
rm -rf bin/gnugo
chmod -x infopanel.py

%build
python ./setup.py build

%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang org.laptop.PlayGo
%fdupes %{buildroot}

%clean
rm -rf  %{buildroot}

%files -f org.laptop.PlayGo.lang
%defattr(-,root,root,-)
%doc NEWS README TODO
%{sugaractivitydir}/PlayGo.activity/

%changelog
openSUSE Build Service is sponsored by