File sugar-turtleart.spec of Package sugar-turtleart

# spec file for package sugar-turtleart
# 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

Name:           sugar-turtleart
Version:        170
%if 0%{?suse_version}
Release:        2
Release:        1%{?dist}
License:        MIT
Summary:        Pseudo-Logo graphical programming language for Sugar
Group:          Sugar/Activities

Source1:        %{name}-rpmlintrc

Requires:       python
Requires:       python-numpy
Requires:       sugar-toolkit >= 0.84.4

BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  python-devel
BuildRequires:  sugar-toolkit >= 0.84.4

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

Turtle Art is an activity with a Logo-inspired graphical "turtle"
that draws colorful art based on Scratch-like snap-together visual
programming elements.
There are many restrictions compared to LOGO. The two allowed user-defined
procedures can't have parameters. Only two numeric global variables
are available, no lists or other data-structures. You can't make user defined
functions which return a value. The conditionals and some of the functions
only take constants or variables, not expressions. Limited screen real-estate
makes building large programs unfeasible.

%setup -q -n TurtleArt-%{version}

python build

python install --prefix=%{buildroot}/%{_prefix}
find %{buildroot} -name '*.py.orig' -print0 | xargs -0 rm -f
%find_lang org.laptop.TurtleArtActivity
%fdupes -s %{buildroot}

rm -rf %{buildroot}

%files -f org.laptop.TurtleArtActivity.lang
%doc NEWS

openSUSE Build Service is sponsored by