posttrans: always run update-alternatives for python and python3 [release 3.10.5-2mamba;Tue Jun 07 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 16:58:41 +01:00
parent 2d07a21353
commit e12983c47e

View File

@ -3,7 +3,7 @@
%define libname libpython310 %define libname libpython310
%define __libdir %{_libdir} %define __libdir %{_libdir}
Name: python310 Name: python310
Version: 3.10.4 Version: 3.10.5
Release: 2mamba Release: 2mamba
Summary: An interpreted, interactive, object-oriented programming language Summary: An interpreted, interactive, object-oriented programming language
Group: Applications/Development Group: Applications/Development
@ -203,9 +203,8 @@ exit 0
%posttrans %posttrans
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
# fix missing link when upgrading the package which provided a real /usr/bin/python* /usr/sbin/update-alternatives --auto python
[ -e %{_bindir}/python ] || /usr/sbin/update-alternatives --auto python /usr/sbin/update-alternatives --auto python3
[ -e %{_bindir}/python3 ] || /usr/sbin/update-alternatives --auto python3
fi fi
: :
@ -282,6 +281,12 @@ find %{__libdir}/python%{majversion}/site-packages -name *.egg-info -type d -emp
%endif %endif
%changelog %changelog
* Tue Jun 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.5-2mamba
- posttrans: always run update-alternatives for python and python3
* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 3.10.5-1mamba
- automatic version update by autodist
* Sun Jun 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.4-2mamba * Sun Jun 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.10.4-2mamba
- bump alternatives priority to 78 to overcome python 3.9 - bump alternatives priority to 78 to overcome python 3.9