File sugar-paint-activity.spec of Package sugar-paint-activity

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

Summary: Simple paint activity for Sugar
License: GPL-2.0+
Group: Sugar/Activities
Url: http://sugarlabs.org/

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

Requires: sugar-toolkit >= 0.83.6
Requires: python  

BuildRequires: sugar-activities
BuildRequires: sugar-toolkit >= 0.83.6
BuildRequires: python-gtk-devel  
BuildRequires: gtk2-devel  
BuildRequires: python-devel  
BuildRequires: gettext-runtime
BuildRequires: fdupes

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
The Draw activity will provide a canvas for an individual or a group of children
to express themselves creatively through drawing.
Oficina (the Paint Activity) was developed and adapted to the XO using Python
for the team NATE-LSI (Integrated Systems Laboratory), in the Polytechnical
School at University of Sao Paulo, Brazil.

%prep
%setup -q -n Paint.activity
# Remove prebulid binary
rm -r fill/{linux*,arm*}

%build
make -C fill/
python setup.py build

%install
python setup.py install --prefix=%{buildroot}/%{_prefix}
rm -f %{buildroot}/%{_datadir}/sugar/activities/Paint.activity/fill/{*.c,*.h,Makefile}
%find_lang org.laptop.Oficina
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

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

%changelog
openSUSE Build Service is sponsored by