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
This commit is contained in:
Todd R
2017-08-11 15:30:30 +00:00
committed by Git OBS Bridge
parent cc09800ae8
commit 4258e6253d
2 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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