%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
%define realname parente-pyttsx
Name: pyttsx
Version: 1.0
Release: 3%{?dist}
Summary: Cross platform text-to-speech
Group: Development/Tools
License: BSD
URL: http://pypi.python.org/pypi/pyttsx
Source0: https://github.com/parente/pyttsx/tarball/master/%{realname}-86fcc6e.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: espeak
%description
pyttsx is a Python package supporting common text-to-speech engines.
It currently supports SAPI5, NSSpeechSynthesizer, and espeak.
%prep
%setup -q -n %{realname}-86fcc6e
%build
%{__python} setup.py build
%check
%{__python} setup.py test
%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}
# Remove tests
rm -rf %{buildroot}%{python_sitearch}/tests
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}-py?.?.egg-info
%changelog
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Mar 15 2011 Prabin Kumar Datta <prabindatta@fedoraproject.org> - 1.0-1
- Initial build