From e4112999ba912158259530cecc74eaba57b23edc Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 15 May 2009 17:38:16 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + import.log | 1 + python-coverage.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 50 insertions(+) create mode 100644 import.log create mode 100644 python-coverage.spec diff --git a/.cvsignore b/.cvsignore index e69de29..85d452b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +coverage-2.85.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..3d8bf03 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-coverage-2_85-1_fc11:HEAD:python-coverage-2.85-1.fc11.src.rpm:1242408898 diff --git a/python-coverage.spec b/python-coverage.spec new file mode 100644 index 0000000..495e319 --- /dev/null +++ b/python-coverage.spec @@ -0,0 +1,47 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-coverage +Summary: Code coverage testing module for Python +Version: 2.85 +Release: 1%{?dist} +License: BSD +Group: System Environment/Libraries +URL: http://nedbatchelder.com/code/modules/coverage.html +Source0: http://nedbatchelder.com/code/modules/coverage-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: python-setuptools, python-devel + +%description +Coverage.py is a Python module that measures code coverage during Python +execution. It uses the code analysis tools and tracing hooks provided in the +Python standard library to determine which lines are executable, and which +have been executed. + +%prep +%setup -q -n coverage-%{version} +chmod -x README.txt +sed -i 's/\r//g' README.txt +chmod -x coverage.egg-info/*.txt + +%build +%{__python} setup.py build + +%install +rm -rf %{buildroot} +%{__python} setup.py install --skip-build --root %{buildroot} +chmod +x %{buildroot}%{python_sitelib}/coverage.py + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.txt +%{_bindir}/coverage +%{python_sitelib}/coverage.py* +%{python_sitelib}/coverage*.egg-info/ + +%changelog +* Wed May 6 2009 Tom "spot" Callaway - 2.85-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..42eaa04 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bb6f4ce9fbd0011dd8d93eaf58ee9d04 coverage-2.85.tar.gz