SHA256
1
0

- Switch off obsoleting previous interpreters.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=55
This commit is contained in:
Matej Cepl 2023-03-27 15:03:56 +00:00 committed by Git OBS Bridge
parent 9f02c1193d
commit 8fcb1e736e
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 27 14:59:57 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch off obsoleting previous interpreters.
-------------------------------------------------------------------
Fri Mar 3 17:23:35 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -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]*/})