forked from pool/python-coverage
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
e91ec89a4d
commit
d78d571e05
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user