diff --git a/SPECS/python-coverage.spec b/SPECS/python-coverage.spec index cd5f93c..b6e83a5 100644 --- a/SPECS/python-coverage.spec +++ b/SPECS/python-coverage.spec @@ -3,7 +3,7 @@ Name: python-coverage Summary: Code coverage testing module for Python Version: 4.5.1 -Release: 7%{?prever}%{?dist} +Release: 9%{?prever}%{?dist} # jquery(MIT): # coverage/htmlfiles/jquery.min.js # MIT or GPL: @@ -51,10 +51,14 @@ have been executed. %package -n python3-coverage Summary: Code coverage testing module for Python 3 Requires: platform-python-coverage = %{version}-%{release} -# for alternatives + +# Require alternatives version that implements the --keep-foreign flag +Requires(postun): alternatives >= 1.19.1-1 +# For alternatives Requires: python36 Requires(post): python36 Requires(postun): python36 + %{?python_provide:%python_provide python3-coverage} %description -n python3-coverage @@ -97,7 +101,7 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python3-coverage # Do this only during uninstall process (not during update) if [ $1 -eq 0 ]; then - alternatives --remove-slave python3 \ + alternatives --keep-foreign --remove-slave python3 \ %{_bindir}/python%{python3_version} coverage-3 fi @@ -116,6 +120,13 @@ fi %changelog +* Mon Aug 23 2021 Tomas Orsava - 4.5.1-9 +- Bump release to rebuild + +* Fri Jul 30 2021 Tomas Orsava - 4.5.1-8 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Wed Dec 12 2018 Tomas Orsava - 4.5.1-7 - New subpackage platform-python-coverage without files from /usr/bin/* - python3-coverage contains only files from /usr/bin/* and depends