From d7fb8fefb0e7b52cd95ceb66bd19565764644b5b8eefdc3dd671fb6c1d7eb747 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 14 Aug 2025 11:15:31 +0000 Subject: [PATCH 1/2] Switch to pip OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS-token?expand=0&rev=13 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + gTTS-token-1.1.4.tar.gz | 3 ++ python-gTTS-token.changes | 41 ++++++++++++++++++++++++ python-gTTS-token.spec | 65 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gTTS-token-1.1.4.tar.gz create mode 100644 python-gTTS-token.changes create mode 100644 python-gTTS-token.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gTTS-token-1.1.4.tar.gz b/gTTS-token-1.1.4.tar.gz new file mode 100644 index 0000000..8b279d1 --- /dev/null +++ b/gTTS-token-1.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1c022453fe599655444f5c47c423448d3e38c582d3e6e6328641d582ae0a1bf +size 3884 diff --git a/python-gTTS-token.changes b/python-gTTS-token.changes new file mode 100644 index 0000000..389886c --- /dev/null +++ b/python-gTTS-token.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Mon Dec 11 15:05:07 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Sep 28 19:49:55 UTC 2022 - Yogalakshmi Arunachalam + +- 1.1.4 - 2020-11-09 + * Switch to latest python + * Fix regex deprecation + * Allow custom country code (Thanks @onsunl) + * Add retry mechanism (Thanks @w2sv) + +------------------------------------------------------------------- +Sat Dec 1 14:20:32 UTC 2018 - Adrian Schröter + +-- update to version 1.1.3 + * updating tkk extraction due to new Google Translate UI + +------------------------------------------------------------------- +Sun Nov 4 23:50:46 UTC 2018 - Jan Engelhardt + +- Use noun phrase for summary. + +------------------------------------------------------------------- +Thu Nov 1 18:42:08 UTC 2018 - alarrosa@suse.com + +- Update to gTTS-token 1.1.2 + * Include License in PyPi tarball + * Fix issues with the RegEx failing + +------------------------------------------------------------------- +Sun Mar 4 20:06:16 UTC 2018 - alarrosa@suse.com + +- Fix LICENSE url + +------------------------------------------------------------------- +Mon Sep 4 16:54:51 UTC 2017 - alarrosa@suse.com + +- Initial release of python-gTTS-token 1.1.1 diff --git a/python-gTTS-token.spec b/python-gTTS-token.spec new file mode 100644 index 0000000..2a374b1 --- /dev/null +++ b/python-gTTS-token.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-gTTS-token +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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 https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-gTTS-token +Version: 1.1.4 +Release: 0 +Summary: Python module for calculating a token to run the Google text-to-speech engine +License: MIT +Group: Development/Languages/Python +URL: https://github.com/boudewijn26/gTTS-token +Source: https://files.pythonhosted.org/packages/source/g/gTTS-token/gTTS-token-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-requests +BuildArch: noarch + +%python_subpackages + +%description +gTTS-token (Google Text to Speech token) is a Python implementation +of the token validation required by Google Translate when making +a request to its API. + +%prep +%autosetup -p1 -n gTTS-token-%{version} +dos2unix README.md + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.md +%license LICENSE +%{python_sitelib}/gtts_token-%{version}.dist-info +%{python_sitelib}/gtts_token + +%changelog From 89be08df0b1a621f74bbf33b5ed06b6c83c182a565ac2fc83a9329e9e2a1a16d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 14 Aug 2025 12:18:02 +0000 Subject: [PATCH 2/2] - Switch building to use of PEP517 backend. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS-token?expand=0&rev=14 --- python-gTTS-token.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-gTTS-token.changes b/python-gTTS-token.changes index 389886c..01b4c7d 100644 --- a/python-gTTS-token.changes +++ b/python-gTTS-token.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 14 12:17:53 UTC 2025 - Matej Cepl + +- Switch building to use of PEP517 backend. + ------------------------------------------------------------------- Mon Dec 11 15:05:07 UTC 2023 - ecsos