Name: sugar-labyrinth Version: 8 Release: 1%{?dist} Summary: A lightweight mind-mapping activity for Sugar Group: Sugar/Activities License: GPLv2+ URL: http://wiki.sugarlabs.org/go/Activities/Labyrinth Source0: http://activities.sugarlabs.org/sugar/downloads/file/26357/labyrinth-%{version}.xo BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext python sugar-toolkit BuildArch: noarch Requires: sugar %description A lightweight mind-mapping activity based on an Open Source project called Labyrinth. It 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. Maps can be "Kept to PDF" for uploading to web sites, sharing, and printing by others who may not be using Sugar. %prep %setup -q -n Labyrinth.activity # remove these shebangs to calm rpmlint down for Files in src/TextThought.py src/MMapArea.py labyrinthactivity.py src/labyrinth.py; do %{__sed} -i.orig -e 1d ${Files} touch -r ${Files}.orig ${Files} %{__rm} ${Files}.orig done %build python ./setup.py build %install rm -rf $RPM_BUILD_ROOT python ./setup.py install --prefix=$RPM_BUILD_ROOT/%{_prefix} %find_lang org.gnome.Labyrinth %clean rm -rf $RPM_BUILD_ROOT %files -f org.gnome.Labyrinth.lang %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README %{sugaractivitydir}/Labyrinth.activity/ %changelog * Fri Mar 05 2010 Sebastian Dziallas - 8-1 - initial packaging