forked from pool/python-coverage
Accepting request 336880 from home:apersaud:branches:devel:languages:python
update to latest version, also updated update-alternatives (together with a SR for python3) OBS-URL: https://build.opensuse.org/request/show/336880 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=44
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e
|
|
||||||
size 284735
|
|
3
coverage-4.0.tar.gz
Normal file
3
coverage-4.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b1244343e39cb2835f9c89c2d8fbcad8e4a5b4945344b434a4d8b6e9e7431390
|
||||||
|
size 166399
|
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 7 05:03:03 UTC 2015 - arun@gmx.de
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* updated license
|
||||||
|
* updated update-alternatives
|
||||||
|
* README.txt -> README.rst
|
||||||
|
|
||||||
|
- update to version 4.0:
|
||||||
|
(long list, see http://coverage.readthedocs.org/en/latest/changes.html)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 24 21:02:54 UTC 2015 - seife+obs@b1-systems.com
|
Fri Jul 24 21:02:54 UTC 2015 - seife+obs@b1-systems.com
|
||||||
|
|
||||||
|
@@ -17,11 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-coverage
|
Name: python-coverage
|
||||||
Version: 3.7.1
|
Version: 4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://nedbatchelder.com/code/coverage/%{version}
|
Url: http://nedbatchelder.com/code/coverage/%{version}
|
||||||
Summary: Code coverage measurement for Python
|
Summary: Code coverage measurement for Python
|
||||||
License: BSD-2-Clause and (GPL-2.0+ or MIT)
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@@ -51,8 +51,14 @@ python setup.py build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
rm %{buildroot}%{_bindir}/coverage
|
|
||||||
ln -s %{_bindir}/coverage-%{py_ver} %{buildroot}/%{_bindir}/coverage
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
for p in coverage ; do
|
||||||
|
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
|
||||||
|
# create a dummy target for /etc/alternatives/$p
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/$p
|
||||||
|
done
|
||||||
|
|
||||||
#NOTE(saschpe): The following seems to mess with the install dir, which is odd:
|
#NOTE(saschpe): The following seems to mess with the install dir, which is odd:
|
||||||
#%%check
|
#%%check
|
||||||
@@ -63,14 +69,9 @@ ln -s %{_bindir}/coverage-%{py_ver} %{buildroot}/%{_bindir}/coverage
|
|||||||
#python setup.py --quiet build_ext --inplace
|
#python setup.py --quiet build_ext --inplace
|
||||||
#python igor.py test_with_tracer c
|
#python igor.py test_with_tracer c
|
||||||
|
|
||||||
%pre
|
|
||||||
# Since /usr/bin/coverage became ghosted to be used with update-alternatives, we have
|
|
||||||
# to get rid of the old binary resulting from the non-update-alternativies-ified package:
|
|
||||||
[ -h %{_bindir}/coverage ] || rm -f %{_bindir}/coverage
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives \
|
update-alternatives \
|
||||||
--install %{_bindir}/coverage coverage %{_bindir}/coverage-%{py_ver} 20
|
--install %{_bindir}/coverage coverage %{_bindir}/coverage-%{py_ver} 30
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
@@ -79,10 +80,11 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS.txt CHANGES.txt README.txt
|
%doc AUTHORS.txt CHANGES.txt README.rst
|
||||||
%ghost %{_bindir}/coverage
|
%{_bindir}/coverage
|
||||||
%{_bindir}/coverage2
|
%{_bindir}/coverage2
|
||||||
%{_bindir}/coverage-%{py_ver}
|
%{_bindir}/coverage-%{py_ver}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/coverage
|
||||||
%{python_sitearch}/coverage/
|
%{python_sitearch}/coverage/
|
||||||
%{python_sitearch}/coverage-%{version}-py%{py_ver}.egg-info
|
%{python_sitearch}/coverage-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user