diff --git a/python310.changes b/python310.changes index b043638..21c207e 100644 --- a/python310.changes +++ b/python310.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Mon Mar 27 14:59:57 UTC 2023 - Matej Cepl - -- Switch off obsoleting previous interpreters. - ------------------------------------------------------------------- Mon Mar 13 08:39:53 UTC 2023 - Matej Cepl diff --git a/python310.spec b/python310.spec index 68f0650..6b565a6 100644 --- a/python310.spec +++ b/python310.spec @@ -43,14 +43,14 @@ %define primary_interpreter 0 %endif -# %%if 0%%{?sle_version} && 0%%{?suse_version} < 1550 +%if 0%{?sle_version} && 0%{?suse_version} < 1550 # Obsoleting previous "latest" Python versions # Next versions will get more lines like for older versions -# %%define obsolete_python_versioned() \ -# Obsoletes: python39%%{?1:-%%{1}} -# %%else +%define obsolete_python_versioned() \ +Obsoletes: python39%{?1:-%{1}} +%else %define obsolete_python_versioned() %{nil} -# %%endif +%endif # Setting up variables %define _version %(c=%{version}; echo ${c/[a-z]*/})