From abf559340c8008a13cafc281997fbfd79044ad7c Mon Sep 17 00:00:00 2001 From: Sebastian Dziallas Date: Mar 09 2010 18:02:28 +0000 Subject: new upstream release --- diff --git a/.cvsignore b/.cvsignore index 0ba592b..cd6e0fd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Speak-9.tar.bz2 +speak-14.xo diff --git a/sources b/sources index afcae08..119e5be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f3d0d17cc7579d89cc52d5ad55cd4e92 Speak-9.tar.bz2 +712880f52e544bd80db5387d06a23dea speak-14.xo diff --git a/sugar-speak-no-aiml.patch b/sugar-speak-no-aiml.patch new file mode 100644 index 0000000..751e888 --- /dev/null +++ b/sugar-speak-no-aiml.patch @@ -0,0 +1,28 @@ +diff -ur a/brain.py b/brain.py +--- a/brain.py 2010-03-09 18:08:30.000000000 +0100 ++++ b/brain.py 2010-03-09 18:08:54.000000000 +0100 +@@ -26,23 +26,9 @@ + + from toolkit.combobox import ComboBox + +-import bot.aiml + import voice + +-BOTS = { +- _('Spanish'): { 'name': 'Sara', +- 'brain': 'bot/sara.brn', +- 'predicates': { 'nombre_bot': 'Sara', +- 'botmaster': 'la comunidad Azucar' } }, +- _('English'): { 'name': 'Alice', +- 'brain': 'bot/alice.brn', +- 'predicates': { 'name': 'Alice', +- 'master': 'the Sugar Community' } } } +- +-# load Standard AIML set for restricted systems +-if int([i for i in file('/proc/meminfo').readlines() +- if i.startswith('MemTotal:')][0].split()[1]) < 524288: +- BOTS[_('English')]['brain'] = 'bot/alisochka.brn' ++BOTS = {} + + _kernel = None + _kernel_voice = None diff --git a/sugar-speak.spec b/sugar-speak.spec index 2c26f99..ed6a770 100644 --- a/sugar-speak.spec +++ b/sugar-speak.spec @@ -1,17 +1,18 @@ Name: sugar-speak -Version: 9 -Release: 5%{?dist} +Version: 14 +Release: 3%{?dist} Summary: Speak for Sugar Group: Sugar/Activities -License: GPLv3+ +License: GPLv2+ and GPLv3+ URL: http://wiki.laptop.org/go/Speak -Source0: Speak-%{version}.tar.bz2 -Source1: sugar-speak-checkout.sh +Source0: http://activities.sugarlabs.org/sugar/downloads/file/26826/speak-%{version}.xo +Patch0: sugar-speak-no-aiml.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{_id_u} -n) BuildArch: noarch BuildRequires: python +BuildRequires: gettext BuildRequires: sugar-toolkit Requires: sugar @@ -27,7 +28,11 @@ is a great way to experiment with the speech synthesizer, learn to type or just have fun making a funny face for your XO. %prep -%setup -q -n Speak-%{version}/Speak.activity +%setup -q -n Speak.activity +%patch0 -p1 + +# remove stuff we don't want +rm -rf .0sugar bot %build @@ -39,18 +44,29 @@ rm -rf %{buildroot} ./setup.py install --prefix=%{buildroot}/%{_prefix} find %{buildroot}%{sugaractivitydir}Speak.activity/activity.py -type f -name \* -exec chmod 644 {} \; +%find_lang vu.lux.olpc.Speak + %clean rm -rf %{buildroot} -%files +%files -f vu.lux.olpc.Speak.lang %defattr(-,root,root,-) %doc NEWS COPYING %{sugaractivitydir}/Speak.activity/ %changelog +* Tue Mar 09 2010 Sebastian Dziallas - 14-3 +- Grab locales properly + +* Tue Mar 09 2010 Sebastian Dziallas - 14-2 +- Add gettext dependency + +* Tue Mar 09 2010 Sebastian Dziallas - 14-1 +- New upstream release + * Sun Jul 26 2009 Fedora Release Engineering - 9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild