18c08c1
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
18c08c1
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
18c08c1
1a8bac3
Name:           sugar-speak
adcaa6e
Version:        27
b7656ee
Release:        1%{?dist}
1a8bac3
Summary:        Speak for Sugar
1a8bac3
1a8bac3
Group:          Sugar/Activities
438f379
License:        GPLv2+ and GPLv3+
1a8bac3
URL:            http://wiki.laptop.org/go/Speak
b7656ee
Source0:        http://download.sugarlabs.org/activities/4038/speak-%{version}.xo
1a8bac3
BuildArch:      noarch
1a8bac3
1a8bac3
BuildRequires:  python
fc329cf
BuildRequires:  gettext
1a8bac3
BuildRequires:  sugar-toolkit
1a8bac3
Requires:       sugar
1a8bac3
Requires:       numpy
1a8bac3
Requires:       espeak
1a8bac3
1a8bac3
%description
1a8bac3
Speak is a talking face for the XO laptop. Anything you type will be spoken
1a8bac3
aloud using the XO's speech synthesizer, espeak. You can adjust the accent,
1a8bac3
rate and pitch of the voice as well as the shape of the eyes and mouth. This
1a8bac3
is a great way to experiment with the speech synthesizer, learn to type or 
1a8bac3
just have fun making a funny face for your XO.  
1a8bac3
1a8bac3
%prep
b7656ee
%setup -q -n Speak.activity
438f379
rm -rf .0sugar bot
1a8bac3
1a8bac3
%build
da17ab3
%{__python} setup.py build
1a8bac3
1a8bac3
%install
f57c52a
%{__python} setup.py install --prefix=%{buildroot}%{_prefix}
1a8bac3
find  %{buildroot}%{sugaractivitydir}Speak.activity/activity.py  -type f -name \* -exec chmod 644 {} \;
0096ed6
%find_lang vu.lux.olpc.Speak
0096ed6
0096ed6
%files -f vu.lux.olpc.Speak.lang
1a8bac3
%defattr(-,root,root,-)
1a8bac3
%doc NEWS COPYING
1a8bac3
%{sugaractivitydir}/Speak.activity/
1a8bac3
1a8bac3
%changelog
adcaa6e
* Sat Jun 18 2011 Peter Robinson <pbrobinson@gmail.com> - 27-1
adcaa6e
- New 27 release
adcaa6e
61b7e61
* Mon Jun 13 2011 Peter Robinson <pbrobinson@gmail.com> - 26-1
61b7e61
- New 26 release
61b7e61
b7656ee
* Sat May  7 2011 Peter Robinson <pbrobinson@gmail.com> - 25-1
b7656ee
- New 25 release
b7656ee
919e985
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20-2
919e985
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
919e985
a202845
* Sat Jan 29 2011 Peter Robinson <pbrobinson@gmail.com> - 20-1
a202845
- New 20 release
a202845
1126d0b
* Mon Sep 06 2010 Fabian Affolter <fabian@bernewireless.net> - 14-6
1126d0b
- Fix install section to resolve #623386
1126d0b
6b437f9
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 14-5
6b437f9
- recompiling .py files against Python 2.7 (rhbz#623386)
6b437f9
da17ab3
* Mon Mar 15 2010 Fabian Affolter <fabian@bernewireless.net> - 14-4
da17ab3
- Minor layout changes
da17ab3
0096ed6
* Tue Mar 09 2010 Sebastian Dziallas <sebastian@when.com> - 14-3
0096ed6
- Grab locales properly
0096ed6
fc329cf
* Tue Mar 09 2010 Sebastian Dziallas <sebastian@when.com> - 14-2
fc329cf
- Add gettext dependency
fc329cf
438f379
* Tue Mar 09 2010 Sebastian Dziallas <sebastian@when.com> - 14-1
438f379
- New upstream release
438f379
90477cb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-5
90477cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
90477cb
f5b4ac6
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9-4
f5b4ac6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f5b4ac6
1a8bac3
* Sun Dec 14 2008 Fabian Affolter <fabian@bernewireless.net> - 9-3
1a8bac3
- Fixed add numpy and espeak to Requires
1a8bac3
1a8bac3
* Wed Nov 19 2008 Fabian Affolter <fabian@bernewireless.net> - 9-2
1a8bac3
- Fixed license to GPLv3+
1a8bac3
1a8bac3
* Sun Oct 19 2008 Fabian Affolter <fabian@bernewireless.net> - 9-1
1a8bac3
- Initial package for Fedora