From d78d571e0550d89d178c7be8fd755469e4232c6b8354c6246cd826d66e831dec Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 9 Nov 2017 19:13:34 +0000 Subject: [PATCH] - test presence of python2 (not just if it is skipped; two different things now, unfortunately) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=64 --- python-coverage.changes | 6 ++++++ python-coverage.spec | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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