d987da
# %%global prever b1
d987da
af9ae5
%global py2support 0
af9ae5
d987da
Name:           python-coverage
d987da
Summary:        Code coverage testing module for Python
af9ae5
Version:        5.5
af9ae5
Release:        1%{?prever}%{?dist}
d987da
# jquery(MIT):
d987da
#  coverage/htmlfiles/jquery.min.js
d987da
# MIT or GPL:
d987da
#  coverage/htmlfiles/jquery.debounce.min.js
d987da
#  coverage/htmlfiles/jquery.hotkeys.js
d987da
#  coverage/htmlfiles/jquery.isonscreen.js
d987da
License:        ASL 2.0 and MIT and (MIT or GPL)
d987da
URL:            http://nedbatchelder.com/code/modules/coverage.html
af9ae5
Source0:        https://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz
d987da
BuildRequires:  gcc
d987da
d987da
%description
d987da
Coverage.py is a Python module that measures code coverage during Python 
d987da
execution. It uses the code analysis tools and tracing hooks provided in the 
d987da
Python standard library to determine which lines are executable, and which 
d987da
have been executed.
d987da
af9ae5
%if %{py2support}
af9ae5
af9ae5
%package -n python2-coverage
af9ae5
Summary:        Code coverage testing module for Python 2
af9ae5
BuildRequires:  python2-devel
af9ae5
BuildRequires:  python2-setuptools
d987da
# As the "coverage" executable requires the setuptools at runtime (#556290),
d987da
# so the "python3-coverage" executable requires python3-setuptools:
af9ae5
Requires:       python2-setuptools
af9ae5
%{?python_provide:%python_provide python2-coverage}
d987da
Provides:       bundled(js-jquery) = 1.11.1
d987da
Provides:       bundled(js-jquery-debounce) = 1.1
d987da
Provides:       bundled(js-jquery-hotkeys) = 0.8
d987da
Provides:       bundled(js-jquery-isonscreen) = 1.2.0
d987da
Provides:       bundled(js-jquery-tablesorter)
d987da
af9ae5
%description -n python2-coverage
af9ae5
Coverage.py is a Python 2 module that measures code coverage during Python
d987da
execution. It uses the code analysis tools and tracing hooks provided in the 
d987da
Python standard library to determine which lines are executable, and which 
d987da
have been executed.
d987da
af9ae5
%endif
d987da
af9ae5
%package -n python%{python3_pkgversion}-coverage
d987da
Summary:        Code coverage testing module for Python 3
af9ae5
BuildRequires:  python%{python3_pkgversion}-devel
af9ae5
BuildRequires:  python%{python3_pkgversion}-setuptools
af9ae5
# As the "coverage" executable requires the setuptools at runtime (#556290),
af9ae5
# so the "python3-coverage" executable requires python3-setuptools:
af9ae5
Requires:       python%{python3_pkgversion}-setuptools
af9ae5
%{?python_provide:%python_provide python%{python3_pkgversion}-coverage}
af9ae5
Provides:       bundled(js-jquery) = 1.11.1
af9ae5
Provides:       bundled(js-jquery-debounce) = 1.1
af9ae5
Provides:       bundled(js-jquery-hotkeys) = 0.8
af9ae5
Provides:       bundled(js-jquery-isonscreen) = 1.2.0
af9ae5
Provides:       bundled(js-jquery-tablesorter)
af9ae5
Conflicts:      python2-coverage < 4.5.4-2
af9ae5
af9ae5
%description -n python%{python3_pkgversion}-coverage
d987da
Coverage.py is a Python 3 module that measures code coverage during Python
d987da
execution. It uses the code analysis tools and tracing hooks provided in the 
d987da
Python standard library to determine which lines are executable, and which 
d987da
have been executed.
d987da
d987da
%prep
d987da
%setup -q -n coverage-%{version}%{?prever}
d987da
d987da
find . -type f -exec chmod 0644 \{\} \;
d987da
sed -i 's/\r//g' README.rst
d987da
d987da
%build
af9ae5
%if %{py2support}
af9ae5
%py2_build
af9ae5
%endif
d987da
%py3_build
d987da
d987da
%install
af9ae5
%if %{py2support}
af9ae5
%py2_install
af9ae5
rm %{buildroot}/%{_bindir}/coverage
af9ae5
%endif
af9ae5
d987da
%py3_install
af9ae5
rm %{buildroot}/%{_bindir}/coverage
d987da
af9ae5
# make compat symlinks
d987da
pushd %{buildroot}%{_bindir}
af9ae5
%if %{py2support}
af9ae5
ln -s coverage-%{python2_version} coverage-2
af9ae5
%endif
af9ae5
ln -s coverage-%{python3_version} coverage-3
af9ae5
ln -s coverage-%{python3_version} coverage
d987da
popd
d987da
af9ae5
%if %{py2support}
af9ae5
%files -n python2-coverage
af9ae5
%license LICENSE.txt NOTICE.txt
af9ae5
%doc README.rst
af9ae5
%{_bindir}/coverage2
af9ae5
%{_bindir}/coverage-2*
af9ae5
%{python2_sitearch}/coverage/
af9ae5
%{python2_sitearch}/coverage*.egg-info/
af9ae5
%endif
d987da
af9ae5
%files -n python%{python3_pkgversion}-coverage
d987da
%license LICENSE.txt NOTICE.txt
d987da
%doc README.rst
af9ae5
%{_bindir}/coverage
af9ae5
%{_bindir}/coverage3
af9ae5
%{_bindir}/coverage-3*
d987da
%{python3_sitearch}/coverage/
d987da
%{python3_sitearch}/coverage*.egg-info/
d987da
af9ae5
%changelog
af9ae5
* Mon Mar  1 2021 Tom Callaway <spot@fedoraproject.org> - 5.5-1
af9ae5
- update to 5.5
d987da
af9ae5
* Tue Jan 26 2021 Tom Callaway <spot@fedoraproject.org> - 5.4-1
af9ae5
- update to 5.4
d987da
af9ae5
* Wed Dec 30 2020 Tom Callaway <spot@fedoraproject.org> - 5.3.1-1
af9ae5
- update to 5.3.1
af9ae5
af9ae5
* Mon Sep 14 2020 Tom Callaway <spot@fedoraproject.org> - 5.3-1
af9ae5
- update to 5.3
af9ae5
af9ae5
* Thu Aug 13 2020 Tom Callaway <spot@fedoraproject.org> - 5.2.1-1
af9ae5
- update to 5.2.1
af9ae5
af9ae5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-2
af9ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
af9ae5
af9ae5
* Thu Jul  9 2020 Tom Callaway <spot@fedoraproject.org> - 5.2-1
af9ae5
- update to 5.2
af9ae5
af9ae5
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 5.1-2
af9ae5
- Rebuilt for Python 3.9
af9ae5
af9ae5
* Mon Apr 13 2020 Tom Callaway <spot@fedoraproject.org> - 5.1-1
af9ae5
- update to 5.1
af9ae5
af9ae5
* Tue Mar 17 2020 Tom Callaway <spot@fedoraproject.org> - 5.0.4-1
af9ae5
- update to 5.0.4
af9ae5
af9ae5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.3-2
af9ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
af9ae5
af9ae5
* Mon Jan 13 2020 Tom Callaway <spot@fedoraproject.org> - 5.0.3-1
af9ae5
- update to 5.0.3
af9ae5
af9ae5
* Mon Jan  6 2020 Tom Callaway <spot@fedoraproject.org> - 5.0.2-1
af9ae5
- update to 5.0.2
af9ae5
af9ae5
* Tue Nov 12 2019 Tom Callaway <spot@fedoraproject.org> - 4.5.4-5
af9ae5
- conditionalize (and disable) python2 support
af9ae5
af9ae5
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.4-4
af9ae5
- Rebuilt for Python 3.8.0rc1 (#1748018)
af9ae5
af9ae5
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.4-3
af9ae5
- Rebuilt for Python 3.8
af9ae5
af9ae5
* Mon Aug 12 2019 Miro Hrončok <mhroncok@redhat.com> - 4.5.4-2
af9ae5
- Make /usr/bin/coverage Python 3
af9ae5
- Remove /usr/bin/python*-coverage links to cleanse tab completion results
af9ae5
- Drop no longer needed Obsoletes for platform-python-coverage
af9ae5
af9ae5
* Mon Aug  5 2019 Tom Callaway <spot@fedoraproject.org> - 4.5.4-1
af9ae5
- update to 4.5.4
af9ae5
af9ae5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-2
af9ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
af9ae5
af9ae5
* Tue Apr 23 2019 Tom Callaway <spot@fedoraproject.org> - 4.5.3-1
af9ae5
- update to 4.5.3
af9ae5
af9ae5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-4
af9ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
af9ae5
af9ae5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-3
af9ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
af9ae5
af9ae5
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-2
af9ae5
- Rebuilt for Python 3.7
d987da
d987da
* Mon Feb 12 2018 Tom Callaway <spot@fedoraproject.org> - 4.5.1-1
d987da
- update to 4.5.1
d987da
d987da
* Tue Feb  6 2018 Tom Callaway <spot@fedoraproject.org> - 4.5-1
d987da
- update to 4.5
d987da
d987da
* Mon Nov 13 2017 Tom Callaway <spot@fedoraproject.org> - 4.4.2-1
d987da
- update to 4.4.2
d987da
d987da
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-6
d987da
- Use better Obsoletes for platform-python
d987da
d987da
* Sat Nov 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-5
d987da
- Remove platform-python subpackage
d987da
- Cleanup spec
d987da
d987da
* Tue Aug 08 2017 Miro Hrončok <mhroncok@redhat.com> - 4.4.1-4
d987da
- Add platform-python subpackage
d987da
d987da
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d987da
d987da
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-2
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d987da
d987da
* Mon May 15 2017 Tom Callaway <spot@fedoraproject.org> - 4.4.1-1
d987da
- update to 4.4.1
d987da
d987da
* Mon May  8 2017 Tom Callaway <spot@fedoraproject.org> - 4.4-1
d987da
- update to 4.4
d987da
d987da
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-2
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d987da
d987da
* Tue Jan 17 2017 Tom Callaway <spot@fedoraproject.org> - 4.3.3-1
d987da
- update to 4.3.3
d987da
d987da
* Tue Jan 03 2017 Tom Callaway <spot@fedoraproject.org> - 4.3.1-1
d987da
- update to 4.3.1
d987da
d987da
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 4.2-2
d987da
- Rebuild for Python 3.6
d987da
d987da
* Fri Jul 29 2016 Tom Callaway <spot@fedoraproject.org> - 4.2-1
d987da
- 4.2 final
d987da
d987da
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-0.2.b1
d987da
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d987da
d987da
* Tue Jul  5 2016 Tom Callaway <spot@fedoraproject.org> - 4.2-0.1.b1
d987da
- update to 4.2b1
d987da
d987da
* Tue Jun 14 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-1
d987da
- update to 4.1
d987da
d987da
* Wed May 11 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.5.b3
d987da
- update to 4.1b3
d987da
d987da
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-0.4.b2
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d987da
d987da
* Wed Jan 27 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.3.b2
d987da
- update to 4.1b2
d987da
d987da
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 4.1-0.2.b1
d987da
- Fix and install license
d987da
- Cleanup and modernize spec
d987da
- Note bundled jquery libraries
d987da
d987da
* Tue Jan 12 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.1.b1
d987da
- update to 4.1b1
d987da
d987da
* Mon Nov 30 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.3-1
d987da
- update to 4.0.3
d987da
d987da
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-2
d987da
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d987da
d987da
* Tue Nov 10 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.2-1
d987da
- update to 4.0.2
d987da
d987da
* Thu Oct 29 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.1-1
d987da
- update to 4.0.1
d987da
d987da
* Mon Sep 28 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-1
d987da
- update to 4.0 final
d987da
d987da
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 4.0-0.13.b3
d987da
- Rebuilt for Python3.5 rebuild
d987da
d987da
* Wed Sep  9 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.12.b3
d987da
- update to 4.0b3
d987da
d987da
* Fri Aug 28 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.11.b2
d987da
- update to 4.0b2
d987da
d987da
* Tue Aug  4 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.10.b1
d987da
- update to 4.0b1
d987da
d987da
* Mon Jul 13 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.9.a6
d987da
- add missing Provides: python2-coverage
d987da
d987da
* Tue Jul  7 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.8.a6
d987da
- update to 4.0a6
d987da
d987da
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-0.7.a5
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d987da
d987da
* Sat Apr 04 2015 Ralph Bean <rbean@redhat.com> 4.0-0.6.a5
d987da
- No longer run 2to3 on the python3 sources.
d987da
d987da
* Wed Mar 25 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.5.a5
d987da
- unicode fixup
d987da
d987da
* Tue Feb 17 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.4.a5
d987da
- update to 4.0a5
d987da
d987da
* Thu Feb  5 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.3.a3
d987da
- update to 4.0a3
d987da
d987da
* Tue Jan 20 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.2.a2
d987da
- update to 4.0a2
d987da
d987da
* Thu Oct  9 2014 Tom Callaway <spot@fedoraproject.org> 4.0-0.1.a
d987da
- Update to 4.0a1
d987da
d987da
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 3.7.1-1
d987da
- Update to 3.7.1 (#1043090)
d987da
d987da
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-4
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d987da
d987da
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d987da
d987da
* Fri May 02 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7-2
d987da
- Rebuild for Python 3.4
d987da
d987da
* Sun Oct 20 2013 Tom Callaway <spot@fedoraproject.org> - 3.7-1
d987da
- update to 3.7
d987da
- fix macros for current guidelines
d987da
- rename binary (with compat symlinks)
d987da
d987da
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-2
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d987da
d987da
* Fri Jun  7 2013 Tom Callaway <spot@fedoraproject.org> - 3.6-1
d987da
- update to 3.6 final
d987da
d987da
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.3.b3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d987da
d987da
* Wed Jan  2 2013 Tom Callaway <spot@fedoraproject.org> - 3.6-0.3.b3
d987da
- update to 3.6beta3
d987da
d987da
* Thu Nov 29 2012 Tom Callaway <spot@fedoraproject.org> - 3.6-0.1.b1
d987da
- update to 3.6beta1
d987da
- patch0 merged into upstream
d987da
d987da
* Wed Oct 10 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5.3-2
d987da
- Patch from upstream for traceback when people use this with python2 and
d987da
  python3 in the same directory
d987da
d987da
* Mon Oct  1 2012 Tom Callaway <spot@fedoraproject.org> - 3.5.3-1
d987da
- update to 3.5.3
d987da
d987da
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.5.2-0.4.b1
d987da
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
d987da
d987da
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 3.5.2-0.3.b1
d987da
- remove rhel logic from with_python3 conditional
d987da
d987da
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-0.2.b1
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d987da
d987da
* Wed May  2 2012 Tom Callaway <spot@fedoraproject.org> - 3.5.2-0.1.b1
d987da
- update to 3.5.2b1
d987da
d987da
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-0.2.b1
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d987da
d987da
* Fri Sep  2 2011 Tom Callaway <spot@fedoraproject.org> - 3.5.1-0.1.b1
d987da
- update to 3.5.1b1
d987da
d987da
* Mon Jun  6 2011 Tom Callaway <spot@fedoraproject.org> - 3.5-0.1.b1
d987da
- update to 3.5b1
d987da
d987da
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d987da
d987da
* Wed Dec 29 2010  <David Malcolm <dmalcolm@redhat.com>> - 3.4-2
d987da
- rebuild for newer python3
d987da
d987da
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 3.4-1
d987da
- Update to 3.4 (#631751)
d987da
d987da
* Fri Sep 03 2010 Luke Macken <lmacken@redhat.com> - 3.3.1-4
d987da
- Rebuild against Python 3.2
d987da
d987da
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.3.1-3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d987da
d987da
* Wed May 5 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-2
d987da
- Fix license tag, permissions, and filtering extraneous provides
d987da
d987da
* Wed May 5 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-1
d987da
- Update to 3.3.1
d987da
d987da
* Fri Feb  5 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-3
d987da
- add python 3 subpackage (#536948)
d987da
d987da
* Sun Jan 17 2010 Luke Macken <lmacken@redhat.com> - 3.2-2
d987da
- Require python-setuptools (#556290)
d987da
d987da
* Wed Dec  9 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2-1
d987da
- update to 3.2
d987da
d987da
* Fri Oct 16 2009 Luke Macken <lmacken@redhat.com> - 3.1-1
d987da
- Update to 3.1
d987da
d987da
* Wed Aug 12 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0.1-1
d987da
- update to 3.0.1
d987da
d987da
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.85-3
d987da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d987da
d987da
* Fri May 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-2
d987da
- fix install invocation
d987da
d987da
* Wed May 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.85-1
d987da
- Initial package for Fedora