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 diff --git a/python-gTTS-token.spec b/python-gTTS-token.spec index bdd58dd..2a374b1 100644 --- a/python-gTTS-token.spec +++ b/python-gTTS-token.spec @@ -1,7 +1,7 @@ # # spec file for package python-gTTS-token # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -25,7 +25,9 @@ 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 @@ -41,20 +43,23 @@ of the token validation required by Google Translate when making a request to its API. %prep -%setup -q -n gTTS-token-%{version} +%autosetup -p1 -n gTTS-token-%{version} dos2unix README.md %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check + %files %{python_files} %defattr(-,root,root,-) %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/gtts_token-%{version}.dist-info +%{python_sitelib}/gtts_token %changelog