From ce04338919f6e764688be200d765eee457c50572efe457e85d43d097d65ad71e Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 8 Oct 2015 10:38:14 +0000 Subject: [PATCH] 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 --- coverage-3.7.1.tar.gz | 3 --- coverage-4.0.tar.gz | 3 +++ python-coverage.changes | 11 +++++++++++ python-coverage.spec | 26 ++++++++++++++------------ 4 files changed, 28 insertions(+), 15 deletions(-) delete mode 100644 coverage-3.7.1.tar.gz create mode 100644 coverage-4.0.tar.gz diff --git a/coverage-3.7.1.tar.gz b/coverage-3.7.1.tar.gz deleted file mode 100644 index e374a36..0000000 --- a/coverage-3.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e -size 284735 diff --git a/coverage-4.0.tar.gz b/coverage-4.0.tar.gz new file mode 100644 index 0000000..c0e882a --- /dev/null +++ b/coverage-4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1244343e39cb2835f9c89c2d8fbcad8e4a5b4945344b434a4d8b6e9e7431390 +size 166399 diff --git a/python-coverage.changes b/python-coverage.changes index cf54859..9b56b7a 100644 --- a/python-coverage.changes +++ b/python-coverage.changes @@ -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 diff --git a/python-coverage.spec b/python-coverage.spec index 3292e11..32cd0c7 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -17,11 +17,11 @@ Name: python-coverage -Version: 3.7.1 +Version: 4.0 Release: 0 Url: http://nedbatchelder.com/code/coverage/%{version} Summary: Code coverage measurement for Python -License: BSD-2-Clause and (GPL-2.0+ or MIT) +License: Apache-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -51,8 +51,14 @@ python setup.py build %install 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: #%%check @@ -63,14 +69,9 @@ ln -s %{_bindir}/coverage-%{py_ver} %{buildroot}/%{_bindir}/coverage #python setup.py --quiet build_ext --inplace #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 update-alternatives \ - --install %{_bindir}/coverage coverage %{_bindir}/coverage-%{py_ver} 20 + --install %{_bindir}/coverage coverage %{_bindir}/coverage-%{py_ver} 30 %preun if [ $1 -eq 0 ] ; then @@ -79,10 +80,11 @@ fi %files %defattr(-,root,root,-) -%doc AUTHORS.txt CHANGES.txt README.txt -%ghost %{_bindir}/coverage +%doc AUTHORS.txt CHANGES.txt README.rst +%{_bindir}/coverage %{_bindir}/coverage2 %{_bindir}/coverage-%{py_ver} +%ghost %{_sysconfdir}/alternatives/coverage %{python_sitearch}/coverage/ %{python_sitearch}/coverage-%{version}-py%{py_ver}.egg-info