File sugar-labyrinth.spec of Package sugar-labyrinth

#
# spec file for package sugar-labyrinth
#
# 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-labyrinth
Version:        16
Release:        1
Summary:        Mindmapping tool for Sugar

Group:          Sugar/Activities
License:        GPL-2.0+
URL:            http://wiki.sugarlabs.org/go/Activities/Labyrinth
Source0:        http://download.sugarlabs.org/activities/4078/labyrinth-%{version}.xo
Source1:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-toolkit

Requires:       sugar


%description
Labyrinth allows creating mind maps from a mixture of text, freehand drawings, and 
images from your Journal. There is an infinite sized canvas for your map that can 
be panned and zoomed while you work.

%prep
%setup -q -n Labyrinth.activity
chmod +x {src/labyrinth.py,src/MMapArea.py,labyrinthactivity.py,src/TextThought.py}

%build
python ./setup.py build

%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang org.gnome.Labyrinth
%fdupes -s %{buildroot}

%clean
rm -rf  %{buildroot}

%files -f org.gnome.Labyrinth.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{sugaractivitydir}/Labyrinth.activity/

%changelog
openSUSE Build Service is sponsored by