2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2011-06-06 17:57:00 +00:00
|
|
|
%global betaver b1
|
|
|
|
|
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
|
|
|
|
2010-06-25 19:57:38 +00:00
|
|
|
# tracer.so is a private object, don't include it in the provides
|
2010-06-25 19:53:16 +00:00
|
|
|
%global _use_internal_dependency_generator 0
|
|
|
|
%global __find_provides /bin/sh -c "%{_rpmconfigdir}/find-provides | grep -v -E '(tracer.so)' || /bin/true"
|
|
|
|
%global __find_requires /bin/sh -c "%{_rpmconfigdir}/find-requires | grep -v -E '(tracer.so)' || /bin/true"
|
|
|
|
|
2010-01-17 22:13:55 +00:00
|
|
|
Name: python-coverage
|
|
|
|
Summary: Code coverage testing module for Python
|
2012-05-02 14:49:40 +00:00
|
|
|
Version: 3.5.2
|
|
|
|
Release: 0.1.%{betaver}%{?dist}
|
2010-06-25 19:03:25 +00:00
|
|
|
License: BSD and (MIT or GPLv2)
|
2010-01-17 22:13:55 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://nedbatchelder.com/code/modules/coverage.html
|
2011-06-06 17:57:00 +00:00
|
|
|
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{betaver}.tar.gz
|
2010-01-17 22:13:55 +00:00
|
|
|
BuildRequires: python-setuptools, python-devel
|
|
|
|
Requires: python-setuptools
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: /usr/bin/2to3
|
|
|
|
BuildRequires: python3-setuptools, python3-devel
|
|
|
|
%endif # with_python3
|
2009-05-15 17:38:16 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-coverage
|
|
|
|
Summary: Code coverage testing module for Python 3
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
# As the "coverage" executable requires the setuptools at runtime (#556290),
|
|
|
|
# so the "python3-coverage" executable requires python3-setuptools:
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
|
|
%description -n python3-coverage
|
|
|
|
Coverage.py is a Python 3 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.
|
|
|
|
%endif # with_python3
|
|
|
|
|
2009-05-15 17:38:16 +00:00
|
|
|
%prep
|
2011-06-06 17:57:00 +00:00
|
|
|
%setup -q -n coverage-%{version}%{betaver}
|
2010-06-25 19:57:38 +00:00
|
|
|
|
|
|
|
find . -type f -exec chmod 0644 \{\} \;
|
2009-05-15 17:38:16 +00:00
|
|
|
sed -i 's/\r//g' README.txt
|
|
|
|
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
2to3 --nobackups --write .
|
|
|
|
popd
|
|
|
|
%endif # if with_python3
|
|
|
|
|
2009-05-15 17:38:16 +00:00
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # if with_python3
|
|
|
|
|
2009-05-15 17:38:16 +00:00
|
|
|
%install
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
|
|
|
|
popd
|
|
|
|
%endif # if with_python3
|
|
|
|
|
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
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
|
|
|
2010-02-05 19:26:04 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-coverage
|
|
|
|
%{_bindir}/python3-coverage
|
|
|
|
%{python3_sitearch}/coverage/
|
|
|
|
%{python3_sitearch}/coverage*.egg-info/
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
2009-05-15 17:38:16 +00:00
|
|
|
%changelog
|
2012-05-02 14:49:40 +00:00
|
|
|
* Wed May 2 2012 Tom Callaway <spot@fedoraproject.org> - 3.5.2-0.1.b1
|
|
|
|
- update to 3.5.2b1
|
|
|
|
|
2012-01-14 01:38:48 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-0.2.b1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-02 18:35:26 +00:00
|
|
|
* Fri Sep 2 2011 Tom Callaway <spot@fedoraproject.org> - 3.5.1-0.1.b1
|
|
|
|
- update to 3.5.1b1
|
|
|
|
|
2011-06-06 17:57:00 +00:00
|
|
|
* Mon Jun 6 2011 Tom Callaway <spot@fedoraproject.org> - 3.5-0.1.b1
|
|
|
|
- update to 3.5b1
|
|
|
|
|
2011-02-09 03:20:32 +00:00
|
|
|
* 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
|
|
|
|
|
2010-12-29 23:48:58 +00:00
|
|
|
* Wed Dec 29 2010 <David Malcolm <dmalcolm@redhat.com>> - 3.4-2
|
|
|
|
- rebuild for newer python3
|
|
|
|
|
2010-10-21 17:00:16 +00:00
|
|
|
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 3.4-1
|
|
|
|
- Update to 3.4 (#631751)
|
|
|
|
|
2010-09-03 18:43:35 +00:00
|
|
|
* Fri Sep 03 2010 Luke Macken <lmacken@redhat.com> - 3.3.1-4
|
|
|
|
- Rebuild against Python 3.2
|
|
|
|
|
2010-07-21 23:32:56 +00:00
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-06-25 19:57:38 +00:00
|
|
|
* Wed May 9 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-2
|
|
|
|
- Fix license tag, permissions, and filtering extraneous provides
|
|
|
|
|
2010-05-19 19:20:55 +00:00
|
|
|
* Wed May 9 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-1
|
|
|
|
- Update to 3.3.1
|
|
|
|
|
2010-02-05 19:26:04 +00:00
|
|
|
* Fri Feb 5 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-3
|
|
|
|
- add python 3 subpackage (#536948)
|
|
|
|
|
|
|
|
* Sun Jan 17 2010 Luke Macken <lmacken@redhat.com> - 3.2-2
|
2010-01-17 22:13:55 +00:00
|
|
|
- Require python-setuptools (#556290)
|
|
|
|
|
2009-12-09 19:44:15 +00:00
|
|
|
* Wed Dec 9 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2-1
|
|
|
|
- update to 3.2
|
|
|
|
|
2009-10-17 03:14:08 +00:00
|
|
|
* Fri Oct 16 2009 Luke Macken <lmacken@redhat.com> - 3.1-1
|
|
|
|
- Update to 3.1
|
|
|
|
|
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
|
|
|
|
|
2009-07-26 20:14:50 +00:00
|
|
|
* 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
|