forked from pool/python-cheroot
Accepting request 808801 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808801 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cheroot?expand=0&rev=14
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 10:59:14 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 10:35:40 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-jaraco.functools
|
||||
Requires: python-more-itertools >= 2.6
|
||||
Requires: python-six >= 1.11.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# the package and distribution name is lowercase-cheroot,
|
||||
# but PyPI claims the name is capital-Cheroot
|
||||
# *smacks head against desk*
|
||||
@@ -77,16 +79,23 @@ rm pytest.ini
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/cheroot
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Exclusions because of gh#cherrypy/cheroot#200
|
||||
%pytest -k 'not test_tls_client_auth'
|
||||
|
||||
%post
|
||||
%python_install_alternative cheroot
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cheroot
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.md
|
||||
%doc README.rst CHANGES.rst
|
||||
%python3_only %{_bindir}/cheroot
|
||||
%python_alternative %{_bindir}/cheroot
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user