File sugar-storybuilder.spec of Package sugar-storybuilder

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


%define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")

Name:           sugar-storybuilder
Version:        19
%if 0%{?suse_version}
Release:        1
%else
Release:        1{?dist}
%endif
License:        GPL-1.0+
Summary:        Story Builder
Url:            http://sugarlabs.org/
Group:          Sugar/Activities

Source:         http://download.sugarlabs.org/activities/4073/story_builder-%{version}.xo
Source1:        %{name}-rpmlintrc

Requires:       python-pygame
Requires:       sugar-toolkit >= 0.83.6

BuildRequires:  fdupes
BuildRequires:  sugar-toolkit >= 0.83.6

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

%description
Story Builder is a graphical story constructor tool. Drag & drop a variety of characters (stamps) into a background, and create
an imaginative scene. Simple word-processing capability is included to encourage and facilitate free-form creative writing and
the saving of original stories. When finalized, users will also be able to add their own images (created with Paint, Camera,
etc.) and share their stories via the mesh. This is a WorldWideWorkshop project.

%prep
%setup -q -n StoryBuilder.activity


%build
python  \
	setup.py \
	build

%install
python  \
	setup.py \
	install \
	--prefix=%{buildroot}/%{_prefix}

rm %{buildroot}%{_datadir}/sugar/activities/StoryBuilder.activity/data/layout.png.orig

%find_lang org.worldwideworkshop.olpc.storybuilder
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f org.worldwideworkshop.olpc.storybuilder.lang
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/StoryBuilder.activity/
%doc AUTHORS COPYING NEWS
openSUSE Build Service is sponsored by