diff --git a/SPECS/numpy.spec b/SPECS/numpy.spec index 651505f..a15e87c 100644 --- a/SPECS/numpy.spec +++ b/SPECS/numpy.spec @@ -8,7 +8,7 @@ Name: numpy Version: 1.19.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A fast multidimensional array facility for Python # Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python @@ -77,6 +77,8 @@ Requires: python%{python3_pkgversion}-devel Provides: python%{python3_pkgversion}-f2py = %{version}-%{release} %{?python_provide:%python_provide python%{python3_pkgversion}-numpy-f2py} +# Require alternatives version that implements the --keep-foreign flag +Requires(postun): alternatives >= 1.19.1-1 # python39 installs the alternatives master symlink to which we attach a slave Requires: python%{python3_pkgversion} Requires(post): python%{python3_pkgversion} @@ -159,7 +161,7 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python%{python3_pkgversion}-numpy-f2py # Do this only during uninstall process (not during update) if [ $1 -eq 0 ]; then - alternatives --remove-slave python3 %{_bindir}/python%{python3_version} \ + alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \ f2py3 fi @@ -198,6 +200,10 @@ fi %changelog +* Thu Aug 05 2021 Tomas Orsava - 1.19.4-3 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Mon Jan 18 2021 Tomas Orsava - 1.19.4-2 - Convert from Fedora to the python39 module in RHEL8 - Resolves: rhbz#1877430