BuildRequire python3-setuptools with Python 3.12+

distutils was removed from the Python standard library,
but setuptools can be used instead.

See https://peps.python.org/pep-0632/
This commit is contained in:
Miro Hrončok 2023-03-31 21:06:41 +02:00
parent 52b92253b5
commit d3ba8fb11a

View File

@ -129,6 +129,7 @@ BuildRequires: pcre2-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel
BuildRequires: python3-devel
BuildRequires: (python3-setuptools if python3 >= 3.12)
BuildRequires: samba-devel
# required for idmap_sss.so
BuildRequires: samba-winbind