From 94a7318edc176cfc8df04ba82116b43bf0eb418095b1a287259731ddcaa1bd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 09:21:10 +0000 Subject: [PATCH] Accepting request 808652 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808652 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=7 --- python-mutmut.changes | 5 +++++ python-mutmut.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-mutmut.changes b/python-mutmut.changes index daa4070..c829f9a 100644 --- a/python-mutmut.changes +++ b/python-mutmut.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 06:50:55 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Mar 30 14:06:25 UTC 2020 - pgajdos@suse.com diff --git a/python-mutmut.spec b/python-mutmut.spec index 468771a..8cb879f 100644 --- a/python-mutmut.spec +++ b/python-mutmut.spec @@ -38,6 +38,8 @@ Requires: python-parso Requires: python-pony Requires: python-setuptools Requires: python-tri.declarative >= 3.0.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-coverage Recommends: python-pytest Suggests: python-pytest-cov @@ -76,15 +78,22 @@ sed -i '1{/^#!/d}' mutmut/__main__.py %install %python_install +%python_clone -a %{buildroot}%{_bindir}/mutmut %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative mutmut + +%postun +%python_uninstall_alternative mutmut + %files %{python_files} %doc README.rst %license LICENSE -%python3_only %{_bindir}/mutmut +%python_alternative %{_bindir}/mutmut %{python_sitelib}/* %changelog