From ec8e13b00e9ce32df209553abb5fe657ef4c8c2a6bbedd3088607579a491acec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 17 Jul 2020 06:41:37 +0000 Subject: [PATCH] - Few minor fixes for the non-primary-interpreter option found in py3.9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=20 --- python38.changes | 6 ++++++ python38.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python38.changes b/python38.changes index 06f27ae..07bdbdc 100644 --- a/python38.changes +++ b/python38.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 17 06:39:45 UTC 2020 - Tomáš Chvátal + +- Few minor fixes for the non-primary-interpreter option found + in py3.9 + ------------------------------------------------------------------- Wed Jul 15 10:05:28 UTC 2020 - Callum Farmer diff --git a/python38.spec b/python38.spec index 40e5d72..89a4805 100644 --- a/python38.spec +++ b/python38.spec @@ -653,7 +653,7 @@ ln -sf python%{python_version} %{buildroot}%{_bindir}/python3 %if !%{primary_interpreter} # base rm %{buildroot}%{_bindir}/python3 -rm %{buildroot}%{_bindir}/pydocs3 +rm %{buildroot}%{_bindir}/pydoc3 rm %{buildroot}%{_mandir}/man1/python3.1 # devel rm %{buildroot}%{_bindir}/python3-config @@ -669,7 +669,7 @@ rm %{buildroot}%{_bindir}/idle3* # delete the generic 2to3 binary if we are not primary %if !%{primary_interpreter} -rm %{buildroot}%{_bindir}2to3 +rm %{buildroot}%{_bindir}/2to3 %endif # replace duplicate .pyo/.pyc with hardlinks @@ -960,8 +960,10 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo %{sitedir}/_import_failed %{sitedir}/site-packages/zzzz-import-failed-hooks.pth # symlinks +%if %{primary_interpreter} %{_bindir}/python3 %{_bindir}/pydoc3 +%endif # executables %attr(755, root, root) %{_bindir}/pydoc%{python_version} # %%attr(755, root, root) %%{_bindir}/python%%{python_abi}