14
0

Accepting request 806949 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tldextract?expand=0&rev=6
This commit is contained in:
2020-05-19 12:48:05 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 09:10:32 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 11 11:24:28 UTC 2020 - pgajdos@suse.com Wed Mar 11 11:24:28 UTC 2020 - pgajdos@suse.com

View File

@@ -42,6 +42,8 @@ Requires: python-idna >= 2.1.0
Requires: python-requests >= 2.1.0 Requires: python-requests >= 2.1.0
Requires: python-requests-file >= 1.4 Requires: python-requests-file >= 1.4
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
Obsoletes: python-tldextract <= 2.0.1 Obsoletes: python-tldextract <= 2.0.1
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -63,16 +65,23 @@ sed -i 's:--pylint::' pytest.ini
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/tldextract
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py develop --user %python_exec setup.py develop --user
%pytest tests %pytest tests
%post
%python_install_alternative tldextract
%postun
%python_uninstall_alternative tldextract
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/*
%python3_only %{_bindir}/tldextract %python_alternative %{_bindir}/tldextract
%changelog %changelog