1
0
Matej Cepl 2023-05-30 12:23:17 +00:00 committed by Git OBS Bridge
parent c4409e50d5
commit 6e932f0e19
2 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 30 12:23:11 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file.
-------------------------------------------------------------------
Fri May 26 13:07:49 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -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