File project.diff of Package gdb
--- gdb.spec.orig
+++ gdb.spec
@@ -1,5 +1,5 @@
#
-# spec file for package gdb
+# spec file
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2012 RedHat
@@ -97,7 +97,7 @@ Obsoletes: devtoolset-1.0-%{pkg_nam
# Choose python version
%if 0%{?suse_version} >= 1200
-%define python python3
+%define python python%{python_bin_suffix}
%else
# Skip for SLE-11 due to lack of python3.
%define _without_python 1
@@ -327,13 +327,13 @@ BuildRequires: zlib-devel
%if 0%{!?_without_python:1}
%if %{build_testsuite}
-BuildRequires: %{python}-base
-BuildRequires: python3-rpm
+BuildRequires: %{primary_python}-base
+BuildRequires: %{primary_python}-rpm
%else
-Requires: %{python}-base
-Requires: python3-rpm
+Requires: %{primary_python}-base
+Requires: %{primary_python}-rpm
%endif
-BuildRequires: %{python}-devel
+BuildRequires: %{primary_python}-devel
%endif # 0%{!?_without_python:1}
%global have_libdebuginfod 0
@@ -513,7 +513,7 @@ BuildRequires: xz
%if 0%{!?_without_python:1}
# Provide python package xml.etree.ElementTree, used by test-case
# gdb.python/py-send-packet.exp.
-BuildRequires: %{python}-xml
+BuildRequires: %{primary_python}-xml
%endif
%endif # %%{build_testsuite}
@@ -530,7 +530,7 @@ Requires: libunwind
# For SLE-15 and later, we use source-highlight by default, and
# pygments as fallback. So, suggests rather than recommends is what we want.
# Don't bother older releases with this.
-Suggests: %{python}-Pygments
+Suggests: %{primary_python}-Pygments
%endif
%endif