File sugar-typing-turtle.spec of Package sugar-typing-turtle

#
# spec file for package sugar-typing-turtle
#
# 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-typing-turtle
Version:        30
%if 0%{?suse_version}
Release:        1
%else
Release:        1%{?dist}
%endif

Summary:        Turtle Art activity for sugar

License:        GPL-2.0+
Url:            http://sugarlabs.org/go/Activities/TurtleArt
Group:          Sugar/Activities
Source0:        http://download.sugarlabs.org/activities/4026/typing_turtle-%{version}.xo
Source1:        %{name}-rpmlintrc
BuildArch:      noarch

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-activities
BuildRequires:  sugar-toolkit
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       python-simplejson
Requires:       sugar

%description
Typing Turtle features a sequence of lessons designed to gradually introduce students to touch typing, teaching them a few keys
at a time until they have mastered the entire keyboard. Fun graphics, sounds and characters make for an entertaining
experience. An on-screen keyboard with overlaid hand positions shows the correct way to press each key, encouraging good typing
habits. If Typing Turtle does not already contain lessons in your native language, a lesson builder script is included in the
activity bundle, which creates keyboarding lessons from a dictionary file.

%prep
%setup -q -n TypingTurtle.activity

%build
python ./setup.py build

%install
mkdir -p %{buildroot}%{sugaractivitydir}
python ./setup.py install --prefix=%{buildroot}/%{_prefix}

%find_lang org.laptop.community.TypingTurtle
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f org.laptop.community.TypingTurtle.lang
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/TypingTurtle.activity/
%doc NEWS TODO COPYING

%changelog
openSUSE Build Service is sponsored by