diff --git a/python-google_trans_new.changes b/python-google_trans_new.changes index ad49060..5d14d4e 100644 --- a/python-google_trans_new.changes +++ b/python-google_trans_new.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 30 12:23:11 UTC 2023 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Fri May 26 13:07:49 UTC 2023 - ecsos diff --git a/python-google_trans_new.spec b/python-google_trans_new.spec index e1f50fa..a1d1d96 100644 --- a/python-google_trans_new.spec +++ b/python-google_trans_new.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-google_trans_new Version: 1.1.9 @@ -25,12 +24,12 @@ Summary: A free and unlimited python tools for google translate api License: MIT Group: Development/Languages/Python URL: https://github.com/lushan88a/google_trans_new -Source: https://files.pythonhosted.org/packages/source/g/google-trans-new/google_trans_new-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} +Source: https://files.pythonhosted.org/packages/source/g/google_trans_new/google_trans_new-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-requests -Requires: python-six Requires: python-urllib3 BuildArch: noarch %python_subpackages @@ -39,17 +38,20 @@ BuildArch: noarch This a free and unlimited python tools for google translate api. %prep -%setup -q -n google_trans_new-%{version} +%autosetup -p1 -n google_trans_new-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%clean + %files %{python_files} %doc README.md -%{python_sitelib}/* +%{python_sitelib}/google_trans_new +%{python_sitelib}/google_trans_new-%{version}*-info %changelog