diff --git a/python39.changes b/python39.changes index d42d6f3..6120432 100644 --- a/python39.changes +++ b/python39.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 21 14:19:55 UTC 2022 - Matej Cepl + +- Switch from %primary_interpreter to prjconf-defined + %primary_python (gh#openSUSE/python-rpm-macros#127). + ------------------------------------------------------------------- Thu Jun 9 16:43:30 UTC 2022 - Matej Cepl diff --git a/python39.spec b/python39.spec index dc1b989..4b3b1fd 100644 --- a/python39.spec +++ b/python39.spec @@ -35,6 +35,14 @@ %bcond_with base %bcond_without general %endif + +%define python_pkg_name python39 +%if "%{python_pkg_name}" == "%{primary_python}" +%define primary_interpreter 1 +%else +%define primary_interpreter 0 +%endif + %define _version %(c=%{version}; echo ${c/[a-z]*/}) %define tar_suffix %(c=%{_version}; echo ${c#%{_version}}) %define python_version %(c=%{_version}; echo ${c:0:3}) @@ -48,14 +56,6 @@ %else %define tarversion %{version} %endif -%define python_pkg_name python39 -# Will provide the python3-* provides -# Will do the /usr/bin/python3 and all the core links -%if 0%{?sle_version} || 0%{?suse_version} >= 1550 -%define primary_interpreter 0 -%else -%define primary_interpreter 1 -%endif # We don't process beta signs well %define folderversion 3.9.13 %define tarname Python-%{tarversion}