SHA256
1
0
Matej Cepl 2023-03-27 15:07:38 +00:00 committed by Git OBS Bridge
parent 8fcb1e736e
commit ccbbaff24e
2 changed files with 6 additions and 11 deletions

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
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]*/})