Fix conflict of python3 and python38 in mans

Reported by stivux@ (Stepan Nazarov)
https://t.me/rosalinux/69127
This commit is contained in:
Mikhail Novosyolov 2020-12-04 21:40:25 +03:00
parent e8e05acc52
commit c7cd8cf97d

View file

@ -54,7 +54,7 @@
Summary: An interpreted, interactive object-oriented programming language Summary: An interpreted, interactive object-oriented programming language
Name: %{py3_name} Name: %{py3_name}
Version: 3.8.2 Version: 3.8.2
Release: 7 Release: 8
License: Modified CNRI Open Source License License: Modified CNRI Open Source License
Group: Development/Python Group: Development/Python
@ -377,6 +377,9 @@ install -m0755 %{SOURCE4} %{buildroot}%{_bindir}/python38-shebang-sanity
mv %{buildroot}%{_bindir}/pynche3 \ mv %{buildroot}%{_bindir}/pynche3 \
%{buildroot}%{_bindir}/pynche%{sub_ver} %{buildroot}%{_bindir}/pynche%{sub_ver}
# conflict with main python
[ -L %{buildroot}%{_mandir}/man1/python3.1 ] && rm -fv %{buildroot}%{_mandir}/man1/python3.1
# Build scripts of many packages try to use the highest version of Python that they find # Build scripts of many packages try to use the highest version of Python that they find
# That is why we have to relocate python3.8 out of $PATH # That is why we have to relocate python3.8 out of $PATH
mkdir -p %{buildroot}%{_libexecdir} mkdir -p %{buildroot}%{_libexecdir}