python-coverage/python-coverage.spec

352 lines
12 KiB
RPMSpec
Raw Normal View History

%if 0%{?fedora}
%global with_python3 1
%else
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
2016-07-29 17:27:48 +00:00
# %%global prever b1
2014-10-09 13:49:43 +00:00
2013-10-20 18:42:25 +00:00
%{!?python2_shortver: %global python2_shortver %(%{__python2} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
%{!?python3_shortver: %global python3_shortver %(%{__python3} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
2009-05-15 17:38:16 +00:00
2010-01-17 22:13:55 +00:00
Name: python-coverage
Summary: Code coverage testing module for Python
2017-05-15 14:43:23 +00:00
Version: 4.4.1
Release: 2%{?prever}%{?dist}
# jquery(MIT):
# coverage/htmlfiles/jquery.min.js
# MIT or GPL:
# coverage/htmlfiles/jquery.debounce.min.js
# coverage/htmlfiles/jquery.hotkeys.js
# coverage/htmlfiles/jquery.isonscreen.js
License: ASL 2.0 and MIT and (MIT or GPL)
2010-01-17 22:13:55 +00:00
Group: System Environment/Libraries
URL: http://nedbatchelder.com/code/modules/coverage.html
2014-10-09 13:49:43 +00:00
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz
2013-10-20 18:42:25 +00:00
BuildRequires: python-setuptools, python2-devel
2010-01-17 22:13:55 +00:00
Requires: python-setuptools
2015-07-13 14:24:55 +00:00
Provides: python2-coverage = %{version}-%{release}
%if 0%{?with_python3}
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.
%package -n python2-coverage
Summary: Code coverage testing module for Python 2
Group: System Environment/Libraries
# As the "coverage" executable requires the setuptools at runtime (#556290),
# so the "python3-coverage" executable requires python3-setuptools:
Requires: python2-setuptools
%{?python_provide:%python_provide python2-coverage}
Provides: bundled(js-jquery) = 1.11.1
Provides: bundled(js-jquery-debounce) = 1.1
Provides: bundled(js-jquery-hotkeys) = 0.8
Provides: bundled(js-jquery-isonscreen) = 1.2.0
Provides: bundled(js-jquery-tablesorter)
%description -n python2-coverage
Coverage.py is a Python 2 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.
%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
%{?python_provide:%python_provide python3-coverage}
Provides: bundled(js-jquery) = 1.11.1
Provides: bundled(js-jquery-debounce) = 1.1
Provides: bundled(js-jquery-hotkeys) = 0.8
Provides: bundled(js-jquery-isonscreen) = 1.2.0
Provides: bundled(js-jquery-tablesorter)
%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
2014-10-09 13:49:43 +00:00
%setup -q -n coverage-%{version}%{?prever}
2010-06-25 19:57:38 +00:00
find . -type f -exec chmod 0644 \{\} \;
2015-09-09 14:22:44 +00:00
sed -i 's/\r//g' README.rst
2009-05-15 17:38:16 +00:00
2009-05-15 17:38:16 +00:00
%build
%py2_build
2009-05-15 17:38:16 +00:00
%if 0%{?with_python3}
%py3_build
%endif # if with_python3
2009-05-15 17:38:16 +00:00
%install
%if 0%{?with_python3}
%py3_install
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
rm -rf coverage-3* coverage3
for i in coverage3 coverage-%{?python3_shortver}; do
ln -s python3-coverage $i
done
popd
%endif # if with_python3
%py2_install
2013-10-20 18:42:25 +00:00
# rename binaries, make compat symlinks
pushd %{buildroot}%{_bindir}
mv coverage python-coverage
rm -rf coverage-2* coverage2
for i in python2-coverage coverage coverage2 coverage-%{?python2_shortver}; do
ln -s python-coverage $i
done
2009-05-15 17:38:16 +00:00
%files -n python2-coverage
%license LICENSE.txt NOTICE.txt
2015-09-09 14:22:44 +00:00
%doc README.rst
2009-05-15 17:38:16 +00:00
%{_bindir}/coverage
2012-11-29 18:11:24 +00:00
%{_bindir}/coverage2
%{_bindir}/coverage-2*
2013-10-20 18:42:25 +00:00
%{_bindir}/python-coverage
%{_bindir}/python2-coverage
%{python2_sitearch}/coverage/
%{python2_sitearch}/coverage*.egg-info/
2009-05-15 17:38:16 +00:00
%if 0%{?with_python3}
%files -n python3-coverage
%license LICENSE.txt NOTICE.txt
%doc README.rst
2012-11-29 18:11:24 +00:00
%{_bindir}/coverage-3*
%{_bindir}/coverage3
%{_bindir}/python3-coverage
%{python3_sitearch}/coverage/
%{python3_sitearch}/coverage*.egg-info/
%endif # if with_python3
2009-05-15 17:38:16 +00:00
%changelog
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-05-15 14:43:23 +00:00
* Mon May 15 2017 Tom Callaway <spot@fedoraproject.org> - 4.4.1-1
- update to 4.4.1
2017-05-08 14:21:06 +00:00
* Mon May 8 2017 Tom Callaway <spot@fedoraproject.org> - 4.4-1
- update to 4.4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-17 14:53:47 +00:00
* Tue Jan 17 2017 Tom Callaway <spot@fedoraproject.org> - 4.3.3-1
- update to 4.3.3
2017-01-03 19:51:38 +00:00
* Tue Jan 03 2017 Tom Callaway <spot@fedoraproject.org> - 4.3.1-1
- update to 4.3.1
2016-12-10 22:02:23 +00:00
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 4.2-2
- Rebuild for Python 3.6
2016-07-29 17:27:48 +00:00
* Fri Jul 19 2016 Tom Callaway <spot@fedoraproject.org> - 4.2-1
- 4.2 final
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-0.2.b1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-07-05 17:33:02 +00:00
* Tue Jul 5 2016 Tom Callaway <spot@fedoraproject.org> - 4.2-0.1.b1
- update to 4.2b1
2016-06-14 18:26:11 +00:00
* Tue Jun 14 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-1
- update to 4.1
2016-05-11 18:24:24 +00:00
* Wed May 11 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.5.b3
- update to 4.1b3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-0.4.b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-27 19:21:36 +00:00
* Wed Jan 27 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.3.b2
- update to 4.1b2
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 4.1-0.2.b1
- Fix and install license
- Cleanup and modernize spec
- Note bundled jquery libraries
2016-01-12 16:35:11 +00:00
* Tue Jan 12 2016 Tom Callaway <spot@fedoraproject.org> - 4.1-0.1.b1
- update to 4.1b1
2015-11-30 17:13:53 +00:00
* Mon Nov 30 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.3-1
- update to 4.0.3
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-11-10 15:04:31 +00:00
* Tue Nov 10 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.2-1
- update to 4.0.2
2015-10-29 17:27:21 +00:00
* Thu Oct 29 2015 Tom Callaway <spot@fedoraproject.org> - 4.0.1-1
- update to 4.0.1
2015-09-28 14:30:23 +00:00
* Mon Sep 28 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-1
- update to 4.0 final
2015-09-23 21:04:56 +00:00
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 4.0-0.13.b3
- Rebuilt for Python3.5 rebuild
2015-09-09 14:22:44 +00:00
* Wed Sep 9 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.12.b3
- update to 4.0b3
2015-08-28 18:01:57 +00:00
* Fri Aug 28 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.11.b2
- update to 4.0b2
2015-08-04 14:44:20 +00:00
* Tue Aug 4 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.10.b1
- update to 4.0b1
2015-07-13 14:24:55 +00:00
* Mon Jul 13 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.9.a6
- add missing Provides: python2-coverage
2015-07-07 19:48:56 +00:00
* Tue Jul 7 2015 Tom Callaway <spot@fedoraproject.org> - 4.0-0.8.a6
- update to 4.0a6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-0.7.a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Apr 04 2015 Ralph Bean <rbean@redhat.com> 4.0-0.6.a5
- No longer run 2to3 on the python3 sources.
2015-03-31 14:29:13 +00:00
* Wed Mar 25 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.5.a5
- unicode fixup
2015-02-17 18:16:56 +00:00
* Tue Feb 17 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.4.a5
- update to 4.0a5
2015-02-05 16:30:31 +00:00
* Thu Feb 5 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.3.a3
- update to 4.0a3
2015-01-20 18:28:55 +00:00
* Tue Jan 20 2015 Tom Callaway <spot@fedoraproject.org> 4.0-0.2.a2
- update to 4.0a2
2014-10-09 13:49:43 +00:00
* Thu Oct 9 2014 Tom Callaway <spot@fedoraproject.org> 4.0-0.1.a
- Update to 4.0a1
2014-08-27 21:28:20 +00:00
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 3.7.1-1
- Update to 3.7.1 (#1043090)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-02 02:44:51 +00:00
* Fri May 02 2014 Orion Poplawski <orion@cora.nwra.com> - 3.7-2
- Rebuild for Python 3.4
2013-10-20 18:42:25 +00:00
* Sun Oct 20 2013 Tom Callaway <spot@fedoraproject.org> - 3.7-1
- update to 3.7
- fix macros for current guidelines
- rename binary (with compat symlinks)
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-06-07 11:50:07 +00:00
* Fri Jun 7 2013 Tom Callaway <spot@fedoraproject.org> - 3.6-1
- update to 3.6 final
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.3.b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2013-01-02 20:35:27 +00:00
* Wed Jan 2 2013 Tom Callaway <spot@fedoraproject.org> - 3.6-0.3.b3
- update to 3.6beta3
2012-11-29 18:11:24 +00:00
* Thu Nov 29 2012 Tom Callaway <spot@fedoraproject.org> - 3.6-0.1.b1
- update to 3.6beta1
- patch0 merged into upstream
* Wed Oct 10 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5.3-2
- Patch from upstream for traceback when people use this with python2 and
python3 in the same directory
2012-10-01 16:16:05 +00:00
* Mon Oct 1 2012 Tom Callaway <spot@fedoraproject.org> - 3.5.3-1
- update to 3.5.3
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 3.5.2-0.4.b1
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 3.5.2-0.3.b1
- remove rhel logic from with_python3 conditional
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-0.2.b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
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
* 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
* 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
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.3.1-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2013-10-20 18:42:25 +00:00
* Wed May 5 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-2
2010-06-25 19:57:38 +00:00
- Fix license tag, permissions, and filtering extraneous provides
2013-10-20 18:42:25 +00:00
* Wed May 5 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.1-1
2010-05-19 19:20:55 +00:00
- Update to 3.3.1
* 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
2013-10-20 18:42:25 +00:00
* Wed Aug 12 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0.1-1
2009-08-20 02:05:03 +00:00
- 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