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
|
|
|
#
|
2011-05-06 14:44:31 +02:00
|
|
|
# Copyright (c) 2011 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-05-06 14:44:31 +02:00
|
|
|
%define mod_name coverage
|
2009-06-03 17:17:25 +02:00
|
|
|
|
2011-05-06 14:44:31 +02:00
|
|
|
Name: python-%{mod_name}
|
|
|
|
Version: 3.4
|
2011-06-09 12:24:33 +02:00
|
|
|
Release: 1
|
2011-05-06 14:44:31 +02:00
|
|
|
Url: http://nedbatchelder.com/code/coverage
|
|
|
|
Summary: Code coverage measurement for Python
|
2009-06-03 17:17:25 +02:00
|
|
|
License: BSD
|
2011-05-06 14:44:31 +02:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: %{mod_name}-%{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
|
2009-06-03 17:17:25 +02:00
|
|
|
BuildRequires: python-setuptools
|
2011-05-06 14:44:31 +02:00
|
|
|
BuildRequires: python-xml
|
|
|
|
Requires: python-xml
|
|
|
|
%if 0%{?suse_version}
|
2009-06-03 17:17:25 +02:00
|
|
|
%py_requires
|
2011-05-06 14:44:31 +02:00
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
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-05-06 14:44:31 +02:00
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%build
|
2011-05-06 14:44:31 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2009-06-03 17:17:25 +02:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2011-05-06 14:44:31 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%endif
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%clean
|
2011-05-06 14:44:31 +02:00
|
|
|
rm -rf %{buildroot}
|
2009-06-03 17:17:25 +02:00
|
|
|
|
2011-05-06 14:44:31 +02:00
|
|
|
%files
|
2009-06-03 17:17:25 +02:00
|
|
|
%defattr(-,root,root)
|
2011-05-06 14:44:31 +02:00
|
|
|
%doc AUTHORS.txt CHANGES.txt README.txt
|
|
|
|
%{_bindir}/%{mod_name}
|
|
|
|
%{python_sitearch}/*
|
2009-06-03 17:17:25 +02:00
|
|
|
|
|
|
|
%changelog
|