|
|
|
@ -2,6 +2,8 @@
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global betaver b1
|
|
|
|
|
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
|
|
# tracer.so is a private object, don't include it in the provides
|
|
|
|
@ -11,13 +13,12 @@
|
|
|
|
|
|
|
|
|
|
Name: python-coverage
|
|
|
|
|
Summary: Code coverage testing module for Python
|
|
|
|
|
Version: 3.4
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 3.5
|
|
|
|
|
Release: 0.1.%{betaver}%{?dist}
|
|
|
|
|
License: BSD and (MIT or GPLv2)
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
URL: http://nedbatchelder.com/code/modules/coverage.html
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{betaver}.tar.gz
|
|
|
|
|
BuildRequires: python-setuptools, python-devel
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
@ -47,7 +48,7 @@ have been executed.
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n coverage-%{version}
|
|
|
|
|
%setup -q -n coverage-%{version}%{betaver}
|
|
|
|
|
|
|
|
|
|
find . -type f -exec chmod 0644 \{\} \;
|
|
|
|
|
sed -i 's/\r//g' README.txt
|
|
|
|
@ -70,7 +71,6 @@ popd
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
@ -80,11 +80,7 @@ popd
|
|
|
|
|
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README.txt
|
|
|
|
|
%{_bindir}/coverage
|
|
|
|
|
%{python_sitearch}/coverage/
|
|
|
|
@ -92,7 +88,6 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-coverage
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_bindir}/python3-coverage
|
|
|
|
|
%{python3_sitearch}/coverage/
|
|
|
|
|
%{python3_sitearch}/coverage*.egg-info/
|
|
|
|
@ -100,6 +95,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 6 2011 Tom Callaway <spot@fedoraproject.org> - 3.5-0.1.b1
|
|
|
|
|
- update to 3.5b1
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|