File sugar-colors.spec of Package sugar-colors

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

Summary: Colors is a simple natural media painting activity

Group: Sugar/Activities
License: GPL-2.0+
URL: http://wiki.sugarlabs.org/go/Activities/XoEditor
Source0: http://people.sugarlabs.org/rafael/UY/Colors!-16.1.xo 
Source1:        sugar-colors-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel gstreamer-0_10-devel python-gtk-devel gtk2-devel swig gcc-c++
BuildRequires: sugar-toolkit
BuildRequires: fdupes
Requires: sugar

%description
Colors is a simple natural media painting activity for the XO laptop, based on a Nintendo DS program by Jens 
Andersson. Rather than constructing images from geometric shapes, the user is encouraged to keep painting on their 
work until it looks right, starting with rough strokes and then adding extra details. The activity features soft 
brushes, collaborative painting, the ability to watch tutorial paintings as they are painted, and a variety of 
input methods including "video paint" using the webcam.

%prep
unzip -o ../SOURCES/Colors!-16.1.xo
%setup -TD -n Colors!.activity

%build
python ./setup.py build

%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
pushd %{buildroot}/%_datadir/sugar/activities/Colors!.activity/colorsc
%__make
rm *.o
popd
%find_lang org.laptop.community.Colors
rm -rf %{buildroot}/%_datadir'/sugar/activities/Colors!.activity/pygame'
cd %{buildroot}/%_datadir'/sugar/activities/Colors!.activity/colorsc/'
rm Makefile canvas.cpp canvas.h colorsc.h colorsclib.i  deploy.sh drwfile.h palette.cpp palette.h
chmod -x __init__.py
%ifarch x86_64
rm -rf armv7l_27 linux32* linux64_25 linux64_26
%else
rm -rf armv7l_27 linux64* linux32_25 linux32_26
%endif
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%files -f org.laptop.community.Colors.lang
%defattr(-,root,root,-)
%dir %_datadir/sugar/activities/Colors!.activity
%_datadir/sugar/activities/Colors!.activity/*
%doc NEWS

%changelog
openSUSE Build Service is sponsored by