File sugar-etoys.spec of Package sugar-etoys

#
# spec file for package sugar-etoys
#
# 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-etoys
Version:        116
%if 0%{?suse_version}
Release:        1
%else
Release:        1%{?dist}
%endif
License:        MIT Apache-1.0
Summary:        Squeak Etoys activity for Sugar
Url:            http://sugarlabs.org/
Group:          Sugar/Activities

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

Requires:       etoys >= 4.0.2229
Requires:       sugar-toolkit >= 0.84.4

BuildRequires:  fdupes
BuildRequires:  sugar-toolkit >= 0.84.4

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

%description
Squeak Etoys was inspired by LOGO, PARC-Smalltalk, Hypercard, starLOGO
and AgentSheets. It is a media-rich authoring environment with a simple,
powerful scripted object model for many kinds of objects created by end-users
that runs on many platforms, and it is free and open source. It includes 2D and
3D graphics, images, text, particles, presentations, web-pages, videos, sound
and MIDI, etc. It includes the ability to share desktops with other Etoy users
in real-time, so many forms of immersive mentoring and play can be done over
the Internet.

%prep
%setup -q -n Etoys-%{version}

%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
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/*
%doc COPYING NEWS

%changelog
openSUSE Build Service is sponsored by