From 0b4eeaa2910ce7f69394f36d746ce3ee91aa54d5 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mar 21 2017 21:23:39 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore index e69de29..6609d58 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gTTS-token-1.1.1.zip diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b975355 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Boudewijn van Groos + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/gtts-token.spec b/gtts-token.spec new file mode 100644 index 0000000..72cc7cf --- /dev/null +++ b/gtts-token.spec @@ -0,0 +1,87 @@ +%global pypi_name gTTS-token +# Needs access to Google Services so doesn't run in koji +%global with_tests 0 + +Name: gtts-token +Version: 1.1.1 +Release: 2%{?dist} +Summary: Calculates a token to run the Google Translate text to speech +# LICENSE file is currently missing, already reported upstream +# https://github.com/Boudewijn26/gTTS-token/issues/5 +License: MIT +URL: https://github.com/boudewijn26/gTTS-token +Source0: https://pypi.python.org/packages/4c/c8/dd58eba1464729095217d3acfc4f6581348c6f495ea3342ed7dbc9f9e133/%{pypi_name}-%{version}.zip +Source1: https://raw.githubusercontent.com/Boudewijn26/gTTS-token/master/LICENSE + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: python2-requests +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-requests +%if 0%{?with_tests} +BuildRequires: python2-pytest +BuildRequires: python3-pytest +%endif + +%description +gTTS-token (Google Text to Speech token): A python implementation of the token +validation of Google Translate + +%package -n python2-gtts-token +Summary: Python 2 lib to Calculates a token to run the Google Translate text to speech +%{?python_provide:%python_provide python2-gtts-token} + +Requires: python2-requests + +%description -n python2-gtts-token +gTTS-token (Google Text to Speech token): A python implementation of the token +validation of Google Translate + +%package -n python3-gtts-token +Summary: Python 3 lib to Calculates a token to run the Google Translate text to speech +%{?python_provide:%python_provide python3-gtts-token} + +Requires: python3-requests + +%description -n python3-gtts-token +gTTS-token (Google Text to Speech token): A python implementation of the token +validation of Google Translate + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +cp %{SOURCE1} . + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%if %{with_tests} +%{__python2} setup.py test +%{__python3} setup.py test +%endif + +%files -n python2-gtts-token +%license LICENSE +%{python_sitelib}/gTTS_token-* +%{python_sitelib}/gtts_token/* + +%files -n python3-gtts-token +%license LICENSE +%{python3_sitelib}/gTTS_token-* +%{python3_sitelib}/gtts_token/* + +%changelog +* Sun Mar 19 2017 Peter Robinson 1.1.1-2 +- Package review updates + +* Tue Feb 7 2017 Peter Robinson 1.1.1-1 +- initial packaging diff --git a/sources b/sources index e69de29..7ba3a77 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (gTTS-token-1.1.1.zip) = d881e6e2d16e9cd998719aa0e2a712b91052b9fb0b244949b6c1db2d24419808d9058efa75d3d38d559db0bf3c95230e24440a0426bc47e972c8aa7424a50201