File project.diff of Package boost
--- boost.spec.orig
+++ boost.spec
@@ -1,6 +1,7 @@
#
# spec file for package boost
#
+# Copyright (c) 2026 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
@@ -18,7 +19,7 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
-
+%define py3_ver 3.11
%define ver 1.90.0
%define _ver 1_90_0
%define file_version %_ver
@@ -115,8 +116,8 @@ BuildRequires: pkgconfig(zlib)
%if ! %{build_base}
BuildRequires: dos2unix
%if %{with python3}
-BuildRequires: python3-devel
-BuildRequires: python3-numpy-devel
+BuildRequires: python311-devel
+BuildRequires: python311-numpy-devel
%endif
%if %{with build_docs}
BuildRequires: docbook
@@ -1173,14 +1174,14 @@ EOF
%if %{with python3}
cp user-config.jam user-config-py3.jam
# sed -i -e 's#//boost_python#//boost_python3#' ./user-config-py3.jam
-%define py3_abiflags %(python3-config --abiflags)
+%define py3_abiflags %(python%{py3_ver}-config --abiflags)
%{?!python3_version: %define python3_version %{py3_ver} }
cat << EOF >> user-config-py3.jam
using python
- : %{python3_version}
- : %{_bindir}/python3
- : %{_includedir}/python%{python3_version}%{py3_abiflags}
+ : 3.11
+ : /usr/bin/python3.11
+ : /usr/include/python3.11
:
:
: .%{py3_soflags}