Hello community, here is the log from the commit of package python-coverage for openSUSE:Factory checked in at 2015-10-24 10:24:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-coverage (Old) and /work/SRC/openSUSE:Factory/.python-coverage.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-coverage" Changes: -------- --- /work/SRC/openSUSE:Factory/python-coverage/python-coverage.changes 2015-07-28 11:42:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-coverage.new/python-coverage.changes 2015-10-24 10:24:46.000000000 +0200 @@ -1,0 +2,17 @@ +Fri Oct 16 09:23:35 UTC 2015 - [email protected] + +- Pre require coreutils. This package is needed for the rm call in the pre section. + Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.gONanE: line 3: rm: command not found + +------------------------------------------------------------------- +Wed Oct 7 05:03:03 UTC 2015 - [email protected] + +- 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) + +------------------------------------------------------------------- Old: ---- coverage-3.7.1.tar.gz New: ---- coverage-4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-coverage.spec ++++++ --- /var/tmp/diff_new_pack.ejoTAN/_old 2015-10-24 10:24:47.000000000 +0200 +++ /var/tmp/diff_new_pack.ejoTAN/_new 2015-10-24 10:24:47.000000000 +0200 @@ -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 @@ -32,6 +32,7 @@ #BuildRequires: python-nose Requires: python-setuptools Requires: python-xml +Requires(pre): coreutils Requires(post): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives %if 0%{?suse_version} && 0%{?suse_version} <= 1110 @@ -51,8 +52,14 @@ %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 +70,9 @@ #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 +81,11 @@ %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 ++++++ coverage-3.7.1.tar.gz -> coverage-4.0.tar.gz ++++++ ++++ 34847 lines of diff (skipped)
