diff --git a/python-coverage.changes b/python-coverage.changes index 1cdf42f..0710876 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 9 19:10:43 UTC 2017 - jmatejek@suse.com + +- test presence of python2 (not just if it is skipped; two different + things now, unfortunately) + ------------------------------------------------------------------- Mon Nov 6 16:55:45 UTC 2017 - arun@gmx.de diff --git a/python-coverage.spec b/python-coverage.spec index 49d14c2..2a87a5c 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -54,10 +54,10 @@ library to determine which lines are executable, and which have been executed. %install %python_install %python_clone -a %{buildroot}%{_bindir}/coverage -%if ! 0%{?skip_python2} +%if 0%{?have_python2} && ! 0%{?skip_python2} ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2 %endif -%if ! 0%{?skip_python3} +%if 0%{?have_python3} && ! 0%{?skip_python3} ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3 %endif