15
0
forked from pool/python-gTTS
Files
python-gTTS/python-gTTS.spec

84 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-gTTS
#
# Copyright (c) 2021 SUSE LLC
#
# 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.
Accepting request 670774 from home:alarrosa:branches:devel:languages:python - Update to 2.0.3: * Added new tokenizer case for ':' preventing cut in the middle of a time notation - Update to 2.0.2: Features * Added Python 3.7 support, modernization of packaging, testing and CI Bugfixes * Fixed language retrieval/validation broken from new Google Translate page - Update to 2.0.1: Bugfixes * Fixed an UnicodeDecodeError when installing gTTS if system locale was not utf-8 Improved Documentation * Added Pre-processing and tokenizing > Minimizing section about the API's 100 characters limit and how larger tokens are handled - Update to 2.0.0: Features * The gtts module + New logger ("gtts") replaces all occurrences of print() + Languages list is now obtained automatically (gtts.lang) + Added a curated list of language sub-tags that have been observed to provide different dialects or accents (e.g. "en-gb", "fr-ca") + New gTTS() parameter lang_check to disable language checking. + gTTS() now delegates the text tokenizing to the API request methods (i.e. write_to_fp(), save()), allowing gTTS instances to be modified/reused + Rewrote tokenizing and added pre-processing (see below) + New gTTS() parameters pre_processor_funcs and tokenizer_func to configure pre-processing and tokenizing (or use a 3rd party tokenizer) + Error handling: - Added new exception gTTSError raised on API request errors. It attempts OBS-URL: https://build.opensuse.org/request/show/670774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=3
2019-02-03 18:33:45 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-gTTS
Version: 2.2.2
Release: 0
Summary: Python module to create MP3 files from spoken text via the Google TTS API
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pndurette/gTTS
Source: https://files.pythonhosted.org/packages/source/g/gTTS/gTTS-%{version}.tar.gz
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module click}
BuildRequires: %{python_module gTTS-token >= 1.1.3}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest >= 3.9}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools >= 38.6}
BuildRequires: %{python_module six}
BuildRequires: %{python_module testfixtures}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 670774 from home:alarrosa:branches:devel:languages:python - Update to 2.0.3: * Added new tokenizer case for ':' preventing cut in the middle of a time notation - Update to 2.0.2: Features * Added Python 3.7 support, modernization of packaging, testing and CI Bugfixes * Fixed language retrieval/validation broken from new Google Translate page - Update to 2.0.1: Bugfixes * Fixed an UnicodeDecodeError when installing gTTS if system locale was not utf-8 Improved Documentation * Added Pre-processing and tokenizing > Minimizing section about the API's 100 characters limit and how larger tokens are handled - Update to 2.0.0: Features * The gtts module + New logger ("gtts") replaces all occurrences of print() + Languages list is now obtained automatically (gtts.lang) + Added a curated list of language sub-tags that have been observed to provide different dialects or accents (e.g. "en-gb", "fr-ca") + New gTTS() parameter lang_check to disable language checking. + gTTS() now delegates the text tokenizing to the API request methods (i.e. write_to_fp(), save()), allowing gTTS instances to be modified/reused + Rewrote tokenizing and added pre-processing (see below) + New gTTS() parameters pre_processor_funcs and tokenizer_func to configure pre-processing and tokenizing (or use a 3rd party tokenizer) + Error handling: - Added new exception gTTSError raised on API request errors. It attempts OBS-URL: https://build.opensuse.org/request/show/670774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=3
2019-02-03 18:33:45 +00:00
Requires: python-beautifulsoup4
Requires: python-click
Requires: python-gTTS-token >= 1.1.3
Requires: python-requests
Requires: python-setuptools
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
gTTS is a Python interface for Google's Text to Speech API. An MP3
file may be created with the gTTS module or the gtts-cli command line
utility. It allows unlimited lengths to be spoken by tokenizing long
sentences where the speech would naturally pause.
%prep
%setup -q -n gTTS-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gtts-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests are sadly mostly online
#%%pytest
%post
%python_install_alternative gtts-cli
%postun
%python_uninstall_alternative gtts-cli
%files %{python_files}
Accepting request 670774 from home:alarrosa:branches:devel:languages:python - Update to 2.0.3: * Added new tokenizer case for ':' preventing cut in the middle of a time notation - Update to 2.0.2: Features * Added Python 3.7 support, modernization of packaging, testing and CI Bugfixes * Fixed language retrieval/validation broken from new Google Translate page - Update to 2.0.1: Bugfixes * Fixed an UnicodeDecodeError when installing gTTS if system locale was not utf-8 Improved Documentation * Added Pre-processing and tokenizing > Minimizing section about the API's 100 characters limit and how larger tokens are handled - Update to 2.0.0: Features * The gtts module + New logger ("gtts") replaces all occurrences of print() + Languages list is now obtained automatically (gtts.lang) + Added a curated list of language sub-tags that have been observed to provide different dialects or accents (e.g. "en-gb", "fr-ca") + New gTTS() parameter lang_check to disable language checking. + gTTS() now delegates the text tokenizing to the API request methods (i.e. write_to_fp(), save()), allowing gTTS instances to be modified/reused + Rewrote tokenizing and added pre-processing (see below) + New gTTS() parameters pre_processor_funcs and tokenizer_func to configure pre-processing and tokenizing (or use a 3rd party tokenizer) + Error handling: - Added new exception gTTSError raised on API request errors. It attempts OBS-URL: https://build.opensuse.org/request/show/670774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=3
2019-02-03 18:33:45 +00:00
%doc CHANGELOG.rst README.md
%license LICENSE
%python_alternative %{_bindir}/gtts-cli
%{python_sitelib}/*
%changelog