File project.diff of Package rpm
--- rpm.spec.orig
+++ rpm.spec
@@ -20,6 +20,7 @@
%{?!_fillupdir:%define _fillupdir /var/adm/fillup-templates}
%global librpmsover 10
+%global pythons python311
Name: rpm
BuildRequires: binutils
@@ -49,6 +50,9 @@ BuildRequires: perl-base
BuildRequires: popt-devel
BuildRequires: rpm-build
BuildRequires: xz-devel
+BuildRequires: python311-packaging
+BuildRequires: python311
+BuildRequires: python311-devel
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib)
#!BuildIgnore: rpmlint-Factory
@@ -206,6 +210,7 @@ Requires: file
# Mandatory generators
Requires: (%{name}-build-perl if perl-base)
Requires: (%{name}-build-python if python3-base)
+Requires: (%{name}-build-python if python311-base)
# The point of the split
Conflicts: rpm < 4.15.0
@@ -299,6 +304,7 @@ cmake .. \
-DWITH_DBUS=OFF \
-DENABLE_PYTHON=%{?with_python:ON}%{?!with_python:OFF} \
-DENABLE_TESTSUITE=OFF \
+ -D WITH_PYTHON_VERSION=3.11 \
-D__FIND_DEBUGINFO=/usr/lib/rpm/find-debuginfo \
-D__AR:FILEPATH=ar -D__AS:FILEPATH=as \
-D__CC:FILEPATH=gcc -D__CPP:FILEPATH="gcc -E" -D__CXX:FILEPATH=g++ \