Add python3-setuptools Requires to -devel

gdbus-codegen uses distutils.

https://bugzilla.redhat.com/show_bug.cgi?id=2137442
This commit is contained in:
David King 2023-04-10 09:29:23 +01:00
parent 90c814854a
commit e845096534

View File

@ -59,6 +59,10 @@ as an event loop, threads, dynamic loading, and an object system.
%package devel %package devel
Summary: A library of handy utility functions Summary: A library of handy utility functions
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
# The package uses distutils (for gdbus-codegen) which is no longer part of
# Python 3.12+ standard library.
# https://bugzilla.redhat.com/show_bug.cgi?id=2137442
Requires: (python3-setuptools if python3 >= 3.12)
%description devel %description devel
The glib2-devel package includes the header files for the GLib library. The glib2-devel package includes the header files for the GLib library.