File project.diff of Package python-ipykernel

--- python-ipykernel.spec.orig
+++ python-ipykernel.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ipykernel
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -82,7 +82,7 @@ BuildRequires:  %{python_module pytest-t
 # we don't want ipyparallel and its dependencies in Ring1, see below
 #BuildRequires:  #{python_module ipyparallel}
 # /SECTION
-%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
+%if "%{python_flavor}" == "%{primary_python}" || "%{python_provides}" == "%{primary_python}"
 Provides:       jupyter-ipykernel = %{version}-%{release}
 Obsoletes:      jupyter-ipykernel < %{version}-%{release}
 %endif
@@ -129,7 +129,7 @@ donttest="$donttest or test_do_apply"
 %{python_sitelib}/ipykernel-%{version}*-info
 %pycache_only %{python_sitelib}/__pycache__/ipykernel_launcher*.pyc
 %{_jupyter_kernel_dir}/python%{python_bin_suffix}
-%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" || 0%{?suse_version} < 1600
+%if "%{python_flavor}" == "%{primary_python}" || "%{python_provides}" == "%{primary_python}" || 0%{?suse_version} < 1600
 %{_jupyter_kernel_dir}/python3
 %endif
 
openSUSE Build Service is sponsored by