2009-06-03 17:17:25 +02:00
|
|
|
#
|
2011-05-06 14:44:31 +02:00
|
|
|
# spec file for package python-coverage
|
2009-06-03 17:17:25 +02:00
|
|
|
#
|
2013-05-02 11:11:59 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-06-03 17:17:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-06-09 12:24:33 +02:00
|
|
|
|
2011-05-06 14:44:31 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
|
2011-09-08 16:33:29 +02:00
|
|
|
Name: python-coverage
|
2013-05-02 11:11:59 +02:00
|
|
|
Version: 3.6
|
2011-09-08 16:33:29 +02:00
|
|
|
Release: 0
|
2011-11-10 12:12:30 +01:00
|
|
|
Url: http://nedbatchelder.com/code/coverage/%{version}
|
2011-05-06 14:44:31 +02:00
|
|
|
Summary: Code coverage measurement for Python
|
2012-05-24 16:07:00 +02:00
|
|
|
License: BSD-2-Clause and (GPL-2.0+ or MIT)
|
2011-05-06 14:44:31 +02:00
|
|
|
Group: Development/Languages/Python
|
2011-09-08 16:33:29 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
2009-06-03 17:17:25 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-06 14:44:31 +02:00
|
|
|
BuildRequires: python-devel
|
2011-09-08 16:33:29 +02:00
|
|
|
BuildRequires: python-distribute
|
2011-05-06 14:44:31 +02:00
|
|
|
BuildRequires: python-xml
|
2011-09-27 10:33:34 +02:00
|
|
|
Requires: python-distribute
|
2011-05-06 14:44:31 +02:00
|
|
|
Requires: python-xml
|
2012-03-10 17:54:12 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2011-05-06 14:44:31 +02:00
|
|
|
%endif
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%description
|
2011-05-06 14:44:31 +02:00
|
|
|
Coverage.py measures code coverage, typically during test execution. It uses
|
|
|
|
the code analysis tools and tracing hooks provided in the Python standard
|
2009-06-03 17:17:25 +02:00
|
|
|
library to determine which lines are executable, and which have been executed.
|
|
|
|
|
|
|
|
%prep
|
2011-09-08 16:33:29 +02:00
|
|
|
%setup -q -n coverage-%{version}
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2011-05-06 14:44:31 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2009-06-03 17:17:25 +02:00
|
|
|
|
2011-05-06 14:44:31 +02:00
|
|
|
%files
|
2011-09-08 16:33:29 +02:00
|
|
|
%defattr(-,root,root,-)
|
2011-05-06 14:44:31 +02:00
|
|
|
%doc AUTHORS.txt CHANGES.txt README.txt
|
2011-09-08 16:33:29 +02:00
|
|
|
%{_bindir}/coverage
|
2013-05-02 11:11:59 +02:00
|
|
|
%{_bindir}/coverage2
|
|
|
|
%{_bindir}/coverage-%{py_ver}
|
2012-05-23 17:41:38 +02:00
|
|
|
%{python_sitearch}/coverage/
|
|
|
|
%{python_sitearch}/coverage-%{version}-py%{py_ver}.egg-info
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%changelog
|