Name: sugar-socialcalc Version: 5 Release: 2%{?dist} Summary: A spreadsheet activity for the Sugar environment Group: Sugar/Activities # All files are licensed under the Artistic 2.0, except where otherwise noted. # The JQuery library is dual-licensed under the GPL and MIT license. License: Artistic 2.0 and CPAL and (GPLv2+ or MIT) URL: http://seeta.in/wiki/index.php?title=SocialCalc_on_Sugar Source0: http://download.sugarlabs.org/sources/honey/SocialCalc/SocialCalcActivity-%{version}.xo BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: sugar-toolkit BuildRequires: gettext Requires: sugar %description A spreadsheet activity developed in JavaScript for functioning on the Sugar environment, OLPC's software paradigm. The main idea is to include features that would enable children to make easy use of the typical features of spreadsheet activities such as organization, tabulation, graphing and simple calculations. %prep %setup -q -n SocialCalcActivity.activity # remove incomplete file rm -f po/fr.po rm -f po/hi.po # fix wrong file end of line encoding error for file in * activity/* interoperability/* interoperability/xls/* web/*; do sed "s|\r||g" $file > $file.new && \ touch -r $file $file.new && \ mv $file.new $file done # fix encoding of license file iconv -f iso8859-1 -t utf-8 web/license.txt > web/license.txt.conv && mv -f web/license.txt.conv web/license.txt # fix permissions on scripts for file in create-dev-env.pl setup.py; do chmod a+x $file done %build python ./setup.py build %install rm -rf $RPM_BUILD_ROOT python ./setup.py install --prefix=$RPM_BUILD_ROOT/%{_prefix} %find_lang in.seeta.SocialCalcActivity %clean rm -rf $RPM_BUILD_ROOT %files -f in.seeta.SocialCalcActivity.lang %defattr(-,root,root,-) %doc news web/legal.txt web/license.txt %{sugaractivitydir}/SocialCalcActivity.activity/ %changelog * Tue Feb 23 2010 Sebastian Dziallas - 5-2 - updated licensing information * Sun Jan 22 2010 Sebastian Dziallas - 5-1 - initial packaging