From 4258e6253dcc52fca073d31a4505e1ab88fde21b4fc9e6610ffb090e37f166c2 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 11 Aug 2017 15:30:30 +0000 Subject: [PATCH] Accepting request 516177 from home:TheBlackCat:branches:devel:languages:python - Handle cases where python2 is disabled (needed for SLE backports compatibility) OBS-URL: https://build.opensuse.org/request/show/516177 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=59 --- python-coverage.changes | 6 ++++++ python-coverage.spec | 4 ++++ 2 files changed, 10 insertions(+) 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