File sugar-speak.spec of Package sugar-speak

#
# spec file for package sugar-speak
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           sugar-speak
Version:        47
%if 0%{?suse_version}
Release:        1
%else
Release:        4%{?dist}
%endif

Summary:        The talking face that speaks out what you type

License:        GPL-3.0+
Url:            http://wiki.laptop.org/go/Speak
Group:          Sugar/Activities
Source0:        speak-%{version}.xo
Source1:        %{name}-rpmlintrc

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

BuildRequires:  fdupes
BuildRequires:  python
BuildRequires:  sugar-toolkit

Requires:       espeak
Requires:       python-numpy
Requires:       sugar

%description
Speak is a talking face for the XO laptop. Anything you type will be spoken
aloud using the XO's speech synthesizer, espeak. You can adjust the accent,
rate and pitch of the voice as well as the shape of the eyes and mouth. This
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.activity

%build
python ./setup.py build

%install
./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
%fdupes %{buildroot}

%clean
rm -rf  %{buildroot}

%files -f vu.lux.olpc.Speak.lang
%defattr(-,root,root,-)
%doc NEWS COPYING
%{sugaractivitydir}/Speak.activity/

%changelog
openSUSE Build Service is sponsored by