You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-coverage/python-coverage.spec

54 lines
1.6 KiB

16 years ago
%{!?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: 3%{?dist}
16 years ago
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}
16 years ago
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
16 years ago
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
* 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
16 years ago
* Fri May 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-2
- fix install invocation
16 years ago
* Wed May 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-1
- Initial package for Fedora