From ccbbaff24e3a8d928762a0da70cb4f838f768a647b4f6275b5bc89a67d9ca81c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 27 Mar 2023 15:07:38 +0000 Subject: [PATCH] Revert OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=56 --- python311.changes | 5 ----- python311.spec | 12 ++++++------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/python311.changes b/python311.changes index ea95b35..1f0f27f 100644 --- a/python311.changes +++ b/python311.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Mon Mar 27 14:59:57 UTC 2023 - Matej Cepl - -- Switch off obsoleting previous interpreters. - ------------------------------------------------------------------- Fri Mar 3 17:23:35 UTC 2023 - Matej Cepl diff --git a/python311.spec b/python311.spec index 1c58785..8ee1161 100644 --- a/python311.spec +++ b/python311.spec @@ -43,15 +43,15 @@ %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}} \ -# Obsoletes: python310%%{?1:-%%{1}} -# %%else +%define obsolete_python_versioned() \ +Obsoletes: python39%{?1:-%{1}} \ +Obsoletes: python310%{?1:-%{1}} +%else %define obsolete_python_versioned() %{nil} -# %%endif +%endif # Setting up variables %define _version %(c=%{version}; echo ${c/[a-z]*/})