diff --git a/python-coverage.changes b/python-coverage.changes index 22c570c..b43f4d3 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 10 18:42:00 UTC 2020 - Matej Cepl + +- Fix alternatives + ------------------------------------------------------------------- Wed Dec 2 23:04:31 UTC 2020 - Benjamin Greiner diff --git a/python-coverage.spec b/python-coverage.spec index c70dc59..7adaddf 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -72,14 +72,9 @@ rm tests/test_plugins.py %install %python_install +rm -vf %{buildroot}%{_bindir}/coverage{2,3} %python_clone -a %{buildroot}%{_bindir}/coverage %python_expand %fdupes %{buildroot}%{$python_sitearch} -%if 0%{?have_python2} && ! 0%{?skip_python2} -ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2 -%endif -%if 0%{?have_python3} && ! 0%{?skip_python3} -ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3 -%endif %check # GetZipBytesTest.test_get_encoded_zip_files - needs zip command @@ -108,7 +103,6 @@ export PATH="$(pwd)/build/bin:$PATH" export PYTHONPATH=":x" %pytest_arch -k 'not (test_get_encoded_zip_files or test_egg or test_doctest or test_unicode or test_version or test_multiprocessing_with_branching or test_farm or test_dothtml_not_python or test_one_of or test_bytes or test_encoding or test_multi or test_xdist_sys_path_nuttiness_is_fixed or test_debug_sys_ctracer)' - %post %python_install_alternative coverage @@ -119,8 +113,6 @@ export PYTHONPATH=":x" %license LICENSE.txt %doc CHANGES.rst CONTRIBUTORS.txt README.rst howto.txt %python_alternative %{_bindir}/coverage -%python2_only %{_bindir}/coverage2 -%python3_only %{_bindir}/coverage3 %{python_sitearch}/coverage/ %{python_sitearch}/coverage-%{version}-py%{python_version}.egg-info