diff --git a/python311.changes b/python311.changes index 7627d8b..8462f56 100644 --- a/python311.changes +++ b/python311.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 21 14:19:53 UTC 2022 - Matej Cepl + +- Switch from %primary_interpreter to prjconf-defined + %primary_python (gh#openSUSE/python-rpm-macros#127). + ------------------------------------------------------------------- Thu Jul 14 15:37:35 UTC 2022 - Matej Cepl diff --git a/python311.spec b/python311.spec index 1fdfb43..066049d 100644 --- a/python311.spec +++ b/python311.spec @@ -36,6 +36,13 @@ %bcond_without general %endif +%define python_pkg_name python311 +%if "%{python_pkg_name}" == "%{primary_python}" +%define primary_interpreter 1 +%else +%define primary_interpreter 0 +%endif + %if 0%{?sle_version} && 0%{?suse_version} < 1550 # Obsoleting previous "latest" Python versions # Next versions will get more lines like for older versions @@ -59,10 +66,6 @@ Obsoletes: python39%{?1:-%{1}} %else %define tarversion %{version} %endif -%define python_pkg_name python311 -# Will provide the python3-* provides -# Will do the /usr/bin/python3 and all the core links -%define primary_interpreter 0 # We don't process beta signs well %define folderversion 3.11.0 %define tarname Python-%{tarversion}