python-coverage/python-coverage.spec

55 lines
1.7 KiB
RPMSpec
Raw Normal View History

2009-08-20 02:05:03 +00:00
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2009-05-15 17:38:16 +00:00
Name: python-coverage
Summary: Code coverage testing module for Python
2009-08-20 02:05:03 +00:00
Version: 3.0.1
Release: 1%{?dist}
2009-05-15 17:38:16 +00:00
License: BSD
Group: System Environment/Libraries
URL: http://nedbatchelder.com/code/modules/coverage.html
2009-08-20 02:05:03 +00:00
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
2009-05-15 17:38:16 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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}
2009-05-15 17:44:23 +00:00
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
2009-05-15 17:38:16 +00:00
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/coverage
2009-08-20 02:05:03 +00:00
%{python_sitearch}/coverage/
%{python_sitearch}/coverage*.egg-info/
2009-05-15 17:38:16 +00:00
%changelog
2009-08-20 02:05:03 +00:00
* Wed Aug 10 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0.1-1
- update to 3.0.1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.85-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-05-15 17:44:23 +00:00
* Fri May 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-2
- fix install invocation
2009-05-15 17:38:16 +00:00
* Wed May 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-1
- Initial package for Fedora