Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > a949d28620aed81d51a8c8e19baf215a > files > 2

sugar-labyrinth-9-1.fc13.src.rpm

Name:           sugar-labyrinth
Version:        9
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/26915/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

# Remove empty file
rm $RPM_BUILD_ROOT/%{_datadir}/sugar/activities/Labyrinth.activity/port/TODO

%clean
rm -rf $RPM_BUILD_ROOT


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


%changelog
* Mon Mar 24 2010 Sebastian Dziallas <sebastian@when.com> - 9-1
- new upstream release

* Fri Mar 05 2010 Sebastian Dziallas <sebastian@when.com> - 8-1
- initial packaging