Compare commits

...

No commits in common. "c8s" and "stream-python27-2.7-rhel-8.10.0" have entirely different histories.

6 changed files with 72 additions and 95 deletions

View File

@ -1 +0,0 @@
1

View File

@ -0,0 +1 @@
ec7c2ee6eae78708bee08af8b85e03dd8d673ef2 coverage-4.5.1.tar.gz

7
ci.fmf
View File

@ -1,7 +0,0 @@
execute:
script: coverage-3.6 --help
prepare:
- name: packages
how: install
package:
- python3-coverage

View File

@ -1,7 +0,0 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,16 +1,17 @@
# %%global prever b1 # %%global prever b1
%bcond_without python3
Name: python-coverage Name: python-coverage
Summary: Code coverage testing module for Python Summary: Code coverage testing module for Python
Version: 4.5.1 Version: 4.5.1
Release: 9%{?prever}%{?dist} Release: 5%{?prever}%{?dist}
# jquery(MIT): # jquery(MIT):
# coverage/htmlfiles/jquery.min.js # coverage/htmlfiles/jquery.min.js
# MIT or GPL: # MIT or GPL:
# coverage/htmlfiles/jquery.debounce.min.js # coverage/htmlfiles/jquery.debounce.min.js
# coverage/htmlfiles/jquery.hotkeys.js # coverage/htmlfiles/jquery.hotkeys.js
# coverage/htmlfiles/jquery.isonscreen.js # coverage/htmlfiles/jquery.isonscreen.js
License: ASL 2.0 and MIT and (MIT or GPL) License: ASL 2.0 and MIT and (MIT or GPLv2)
URL: http://nedbatchelder.com/code/modules/coverage.html URL: http://nedbatchelder.com/code/modules/coverage.html
Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz Source0: http://pypi.python.org/packages/source/c/coverage/coverage-%{version}%{?prever}.tar.gz
@ -22,51 +23,48 @@ execution. It uses the code analysis tools and tracing hooks provided in the
Python standard library to determine which lines are executable, and which Python standard library to determine which lines are executable, and which
have been executed. have been executed.
%package -n platform-python-coverage %package -n python2-coverage
Summary: Code coverage testing module for Python 3 Summary: Code coverage testing module for Python 2
BuildRequires: python3-devel BuildRequires: python2-devel
BuildRequires: python3-setuptools BuildRequires: python2-setuptools
# As the "coverage" executable requires the setuptools at runtime (#556290), # As the "coverage" executable requires the setuptools at runtime (#556290),
# so the "python3-coverage" executable requires python3-setuptools: # so the "python3-coverage" executable requires python3-setuptools:
%if 0%{?rhel} && 0%{?rhel} >= 8 Requires: python2-setuptools
Requires: platform-python-setuptools %{?python_provide:%python_provide python2-coverage}
%else
Requires: python3-setuptools
%endif
Provides: bundled(js-jquery) = 1.11.1 Provides: bundled(js-jquery) = 1.11.1
Provides: bundled(js-jquery-debounce) = 1.1 Provides: bundled(js-jquery-debounce) = 1.1
Provides: bundled(js-jquery-hotkeys) = 0.8 Provides: bundled(js-jquery-hotkeys) = 0.8
Provides: bundled(js-jquery-isonscreen) = 1.2.0 Provides: bundled(js-jquery-isonscreen) = 1.2.0
Provides: bundled(js-jquery-tablesorter) Provides: bundled(js-jquery-tablesorter)
Conflicts: python3-coverage < 4.5.1-7%{?dist} %description -n python2-coverage
Coverage.py is a Python 2 module that measures code coverage during Python
%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 execution. It uses the code analysis tools and tracing hooks provided in the
Python standard library to determine which lines are executable, and which Python standard library to determine which lines are executable, and which
have been executed. have been executed.
%if %{with python3}
%package -n python3-coverage %package -n python3-coverage
Summary: Code coverage testing module for Python 3 Summary: Code coverage testing module for Python 3
Requires: platform-python-coverage = %{version}-%{release} BuildRequires: python3-devel
BuildRequires: python3-setuptools
# Require alternatives version that implements the --keep-foreign flag # As the "coverage" executable requires the setuptools at runtime (#556290),
Requires(postun): alternatives >= 1.19.1-1 # so the "python3-coverage" executable requires python3-setuptools:
# For alternatives Requires: python3-setuptools
Requires: python36
Requires(post): python36
Requires(postun): python36
%{?python_provide:%python_provide python3-coverage} %{?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)
Obsoletes: platform-python-coverage < %{version}-%{release}
%description -n python3-coverage %description -n python3-coverage
Coverage.py is a Python 3 module that measures code coverage during Python 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 execution. It uses the code analysis tools and tracing hooks provided in the
Python standard library to determine which lines are executable, and which Python standard library to determine which lines are executable, and which
have been executed. have been executed.
%endif
%prep %prep
%setup -q -n coverage-%{version}%{?prever} %setup -q -n coverage-%{version}%{?prever}
@ -76,81 +74,69 @@ sed -i 's/\r//g' README.rst
%build %build
%py2_build
%if %{with python3}
%py3_build %py3_build
%endif
%install %install
%if %{with python3}
%py3_install %py3_install
mv %{buildroot}/%{_bindir}/coverage %{buildroot}/%{_bindir}/python3-coverage
%endif
%py2_install
# rename binaries, make compat symlinks # rename binaries, make compat symlinks
pushd %{buildroot}%{_bindir} pushd %{buildroot}%{_bindir}
rm -rf coverage-3* coverage3
mv coverage coverage-%{python3_version}
# All ghost files controlled by alternatives need to exist for the files rm coverage2
# section check to succeed mv coverage{,-%{python2_version}}
touch coverage-3 ln -s coverage-{%{python2_version},2}
%if %{with python3}
rm -rf coverage-3* coverage3
for i in coverage3 coverage-%{python3_version}; do
ln -s python3-coverage $i
done
%endif
popd popd
%files -n python2-coverage
%post -n python3-coverage
alternatives --add-slave python3 %{_bindir}/python%{python3_version} \
%{_bindir}/coverage-3 \
coverage-3 \
%{_bindir}/coverage-%{python3_version}
%postun -n python3-coverage
# Do this only during uninstall process (not during update)
if [ $1 -eq 0 ]; then
alternatives --keep-foreign --remove-slave python3 \
%{_bindir}/python%{python3_version} coverage-3
fi
%files -n platform-python-coverage
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%doc README.rst %doc README.rst
%{python3_sitearch}/coverage/ %{_bindir}/coverage-2
%{python3_sitearch}/coverage*.egg-info/ %{_bindir}/coverage-%{python2_version}
%{python2_sitearch}/coverage/
%{python2_sitearch}/coverage*.egg-info/
%if %{with python3}
%files -n python3-coverage %files -n python3-coverage
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%doc README.rst %doc README.rst
%{_bindir}/coverage-%{python3_version} %{_bindir}/coverage-3*
%ghost %{_bindir}/coverage-3 %{_bindir}/coverage3
%{_bindir}/python3-coverage
%{python3_sitearch}/coverage/
%{python3_sitearch}/coverage*.egg-info/
%endif
%changelog %changelog
* Mon Aug 23 2021 Tomas Orsava <torsava@redhat.com> - 4.5.1-9 * Wed Jul 19 2023 Charalampos Stratakis <cstratak@redhat.com> - 4.5.1-5
- Bump release to rebuild - Fix the license identifier
- Resolves: rhbz#2213306
* Fri Jul 30 2021 Tomas Orsava <torsava@redhat.com> - 4.5.1-8 * Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 4.5.1-4
- Adjusted the postun scriptlets to enable upgrading to RHEL 9 - Bumping due to problems with modular RPM upgrade path
- Resolves: rhbz#1933055 - Resolves: rhbz#1695587
* Wed Dec 12 2018 Tomas Orsava <torsava@redhat.com> - 4.5.1-7 * Wed Aug 08 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.1-3
- New subpackage platform-python-coverage without files from /usr/bin/* - Remove unversioned binaries from python2 subpackage
- python3-coverage contains only files from /usr/bin/* and depends - Resolves: rhbz#1613343
on platform-python-coverage
- Resolves: rhbz#1658674
* Fri Nov 16 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.1-6 * Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.1-2
- Require platform-python-setuptools instead of python3-setuptools - Make possible to disable python3 subpackage
- Resolves: rhbz#1650532
* Tue Sep 25 2018 Lumír Balhar <lbalhar@redhat.com> - 4.5.1-5
- Add alternatives for coverage-3 -> coverage-3.6
- Resolves: rhbz#1633547
* Mon Aug 06 2018 Petr Viktorin <pviktori@redhat.com> - 4.5.1-4
- Remove unversioned executables (only *-3.6 should be provided)
* Mon Jul 09 2018 Petr Viktorin <pviktori@redhat.com> - 4.5.1-3
- Remove the python2 subpackage
https://bugzilla.redhat.com/show_bug.cgi?id=1595193
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 4.5.1-2
- Allow Python 2 for build
see https://hurl.corp.redhat.com/rhel8-py2
* Mon Feb 12 2018 Tom Callaway <spot@fedoraproject.org> - 4.5.1-1 * Mon Feb 12 2018 Tom Callaway <spot@fedoraproject.org> - 4.5.1-1
- update to 4.5.1 - update to 4.5.1

5
rpminspect.yaml Normal file
View File

@ -0,0 +1,5 @@
# In a modular build rpminspect confuses the python2-libs for a
# subpackage of coverage. Ignore this check.
rpmdeps:
ignore:
requires: ^libpython[0-9]+\.[0-9]+\.so.*\(\)\(.*\)$