From 007c0b204575f03f3c854644404f40de92bacf1a5ed485b6d6fd6712a96f98c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 13:36:23 +0000 Subject: [PATCH] Accepting request 808746 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808746 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=30 --- python-cheroot.changes | 5 +++++ python-cheroot.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-cheroot.changes b/python-cheroot.changes index 7b96802..27a5833 100644 --- a/python-cheroot.changes +++ b/python-cheroot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 10:59:14 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue May 19 10:35:40 UTC 2020 - Tomáš Chvátal diff --git a/python-cheroot.spec b/python-cheroot.spec index 1cb86f8..be35e91 100644 --- a/python-cheroot.spec +++ b/python-cheroot.spec @@ -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