Don't BR setuptools, use Python's bundled distutils

This commit is contained in:
Karolina Surma 2022-03-04 11:12:01 +01:00
parent 81fb321f45
commit bb5c7d05d7
1 changed files with 12 additions and 2 deletions

View File

@ -115,7 +115,7 @@ Requires: openSUSE-release
Name: nfs-ganesha
Version: 4.0
Release: 4%{?dev:%{dev}}%{?dist}
Release: 5%{?dev:%{dev}}%{?dist}
Summary: NFS-Ganesha is a NFS Server running in user space
License: LGPLv3+
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
@ -276,7 +276,6 @@ BuildRequires: python-devel
%else
Requires: python3-gobject, python3-pyparsing
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if ( 0%{?suse_version} )
Requires: dbus-1-python
%else
@ -630,6 +629,14 @@ install -m 644 config_samples/gpfs.ganesha.log.conf %{buildroot}%{_sysconfdir}/g
install -m 644 config_samples/gpfs.ganesha.exports.conf %{buildroot}%{_sysconfdir}/ganesha
%endif
# setuptools >= 60 changes the environment to use its bundled copy of distutils
# by default, not the Python-bundled one. To run the Python's standard library
# distutils, the environment variable must be set.
# Although technically setuptools is not needed for the cmake scripts, if it's
# pulled by another package, it changes the environment and consequently,
# the build fails. This was reported in:
# https://github.com/pypa/setuptools/issues/3143
export SETUPTOOLS_USE_DISTUTILS=stdlib
%cmake_install
%if ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
@ -894,6 +901,9 @@ exit 0
%endif
%changelog
* Fri Mar 04 2022 Karolina Surma <ksurma@redhat.com> - 4.0-5
- Don't BR setuptools, use Python's bundled distutils
* Fri Jan 28 2023 Kaleb S. KEITHLEY <kkeithle at redhat.com> - 4.0-4
- NFS-Ganesha 4.1, w/ modern linker (mold), this time for real