forked from pool/python-tld
Accepting request 806912 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/806912 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=33
This commit is contained in:
committed by
Git OBS Bridge
parent
836c036437
commit
738e375000
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 09:10:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun May 3 13:19:42 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Sun May 3 13:19:42 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@@ -33,6 +33,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-six >= 1.9
|
Requires: python-six >= 1.9
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module Faker}
|
BuildRequires: %{python_module Faker}
|
||||||
@@ -57,15 +59,22 @@ A list of TLD names is taken from Mozillas public suffix list:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/update-tld-names
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative update-tld-names
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative update-tld-names
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst CHANGELOG.rst
|
%doc README.rst CHANGELOG.rst
|
||||||
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt
|
%license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt
|
||||||
%python3_only %{_bindir}/update-tld-names
|
%python_alternative %{_bindir}/update-tld-names
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user