diff --git a/python-coverage.changes b/python-coverage.changes index d36ba89..e109edf 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 11 15:25:50 UTC 2017 - toddrme2178@gmail.com + +- Handle cases where python2 is disabled + (needed for SLE backports compatibility) + ------------------------------------------------------------------- Wed Mar 29 13:53:04 UTC 2017 - jmatejek@suse.com diff --git a/python-coverage.spec b/python-coverage.spec index 54e02ca..7464527 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -54,8 +54,12 @@ 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} ln -sf coverage-%{python2_version} %{buildroot}%{_bindir}/coverage2 +%endif +%if ! 0%{?skip_python3} ln -sf coverage-%{python3_version} %{buildroot}%{_bindir}/coverage3 +%endif #NOTE(saschpe): The following seems to mess with the install dir, which is odd: #%%check