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