|
|
|
@ -1,7 +1,12 @@
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
%bcond_without platform_python
|
|
|
|
|
%else
|
|
|
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%bcond_with platform_python
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# %%global prever b1
|
|
|
|
@ -12,7 +17,7 @@
|
|
|
|
|
Name: python-coverage
|
|
|
|
|
Summary: Code coverage testing module for Python
|
|
|
|
|
Version: 4.4.1
|
|
|
|
|
Release: 3%{?prever}%{?dist}
|
|
|
|
|
Release: 4%{?prever}%{?dist}
|
|
|
|
|
# jquery(MIT):
|
|
|
|
|
# coverage/htmlfiles/jquery.min.js
|
|
|
|
|
# MIT or GPL:
|
|
|
|
@ -23,12 +28,15 @@ License: ASL 2.0 and MIT and (MIT or GPL)
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
URL: http://nedbatchelder.com/code/modules/coverage.html
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz
|
|
|
|
|
BuildRequires: python-setuptools, python2-devel
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
Provides: python2-coverage = %{version}-%{release}
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python2-setuptools, python2-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3-setuptools, python3-devel
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with platform_python}
|
|
|
|
|
BuildRequires: platform-python-setuptools, platform-python-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Coverage.py is a Python module that measures code coverage during Python
|
|
|
|
@ -36,6 +44,7 @@ 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 %{with python2}
|
|
|
|
|
%package -n python2-coverage
|
|
|
|
|
Summary: Code coverage testing module for Python 2
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -54,8 +63,9 @@ 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.
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-coverage
|
|
|
|
|
Summary: Code coverage testing module for Python 3
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -74,7 +84,24 @@ 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
|
|
|
|
|
%endif # with python3
|
|
|
|
|
|
|
|
|
|
%if %{with platform_python}
|
|
|
|
|
%package -n platform-python-coverage
|
|
|
|
|
Summary: Code coverage testing module for Platform Python
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
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 platform-python-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 platform_python
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n coverage-%{version}%{?prever}
|
|
|
|
@ -86,20 +113,31 @@ sed -i 's/\r//g' README.rst
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%endif # if with python3
|
|
|
|
|
|
|
|
|
|
%platform_py_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with platform_python}
|
|
|
|
|
%platform_py_install
|
|
|
|
|
rm %{buildroot}/%{_bindir}/*
|
|
|
|
|
%endif # if with platform_python
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%endif # if with python3
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_install
|
|
|
|
|
%endif # if with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# rename binaries, make compat symlinks
|
|
|
|
|
pushd %{buildroot}%{_bindir}
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
mv coverage python-coverage
|
|
|
|
|
|
|
|
|
|
rm -rf coverage-2* coverage2
|
|
|
|
@ -107,16 +145,18 @@ rm -rf coverage-2* coverage2
|
|
|
|
|
for i in python2-coverage coverage coverage2 coverage-%{?python2_shortver}; do
|
|
|
|
|
ln -s python-coverage $i
|
|
|
|
|
done
|
|
|
|
|
%endif # if with python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
rm -rf coverage-3* coverage3
|
|
|
|
|
|
|
|
|
|
for i in coverage3 coverage-%{?python3_shortver}; do
|
|
|
|
|
ln -s python3-coverage $i
|
|
|
|
|
done
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%endif # if with python3
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%files -n python2-coverage
|
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
|
%doc README.rst
|
|
|
|
@ -127,8 +167,9 @@ popd
|
|
|
|
|
%{_bindir}/python2-coverage
|
|
|
|
|
%{python2_sitearch}/coverage/
|
|
|
|
|
%{python2_sitearch}/coverage*.egg-info/
|
|
|
|
|
%endif # if with python2
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-coverage
|
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
|
%doc README.rst
|
|
|
|
@ -137,10 +178,20 @@ popd
|
|
|
|
|
%{_bindir}/python3-coverage
|
|
|
|
|
%{python3_sitearch}/coverage/
|
|
|
|
|
%{python3_sitearch}/coverage*.egg-info/
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%endif # if with python3
|
|
|
|
|
|
|
|
|
|
%if %{with platform_python}
|
|
|
|
|
%files -n platform-python-coverage
|
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{platform_python_sitearch}/coverage/
|
|
|
|
|
%{platform_python_sitearch}/coverage*.egg-info/
|
|
|
|
|
%endif # if with platform_python
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 08 2017 Miro Hrončok <mhroncok@redhat.com> - 4.4.1-4
|
|
|
|
|
- Add platform-python subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|