Accepting request 339761 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/339761 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-coverage?expand=0&rev=23
This commit is contained in:
commit
be353729d8
@ -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,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 16 09:23:35 UTC 2015 - bgeuken@suse.com
|
||||||
|
|
||||||
|
- 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 - 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
|
||||||
@ -32,6 +32,7 @@ BuildRequires: python-setuptools
|
|||||||
#BuildRequires: python-nose
|
#BuildRequires: python-nose
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
|
Requires(pre): coreutils
|
||||||
Requires(post): /usr/sbin/update-alternatives
|
Requires(post): /usr/sbin/update-alternatives
|
||||||
Requires(postun): /usr/sbin/update-alternatives
|
Requires(postun): /usr/sbin/update-alternatives
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
@ -51,8 +52,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 +70,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 +81,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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user