File sugar-pippy.spec of Package sugar-pippy

#
# spec file for package sugar-pippy
#
# 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-pippy
Version:        66
%if 0%{?suse_version}
Release:        2
%else
Release:        1%{?dist}
%endif
License:        GPL-2.0+
Summary:        Python programming activity for Sugar
Url:            http://sugarlabs.org/
Group:          Sugar/Activities
BuildArch:      noarch

Source:         http://download.sugarlabs.org/sources/sucrose/fructose/Pippy/Pippy-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc

Requires:       pybox2d
Requires:       pygame
Requires:       python-elements
Requires:       python-gtksourceview
#Requires:       sugar-activities
Requires:       sugar-toolkit >= 0.84.4

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

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

%description
Teaches Python programming by providing access to Python code samples
and a fully interactive Python interpreter.
The user can type and execute simple Python expressions. For example,
it would be possible for a user to write Python statements to calculate
expressions, play sounds, or make simple text animation.
The initial build ships with about twenty short Python examples covering
various aspects of the language.

%prep
%setup -q -n Pippy-%{version}
rm -rf library/pippy/physics
find -name .gitmodules -delete

%build
rm -f MANIFEST
python setup.py build

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

%clean
rm -rf %{buildroot}

%files -f org.laptop.Pippy.lang
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/*
%doc NEWS

%changelog
openSUSE Build Service is sponsored by