Fix build with Python 3.12

pathfix.py is no longer installed, but this macro is compatible with all
supported versions.
This commit is contained in:
Yaakov Selkowitz 2023-07-06 13:28:46 -04:00
parent 085cd612d4
commit 6f9f7e2e4a

View File

@ -504,9 +504,6 @@ BuildRequires: libcryptopp-devel
BuildRequires: libnuma-devel BuildRequires: libnuma-devel
%endif %endif
%endif %endif
%if 0%{?rhel} >= 8
BuildRequires: /usr/bin/pathfix.py
%endif
%description %description
Ceph is a massively scalable, open-source, distributed storage system that runs Ceph is a massively scalable, open-source, distributed storage system that runs
@ -1538,8 +1535,7 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
install -m 0440 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl install -m 0440 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl
%if 0%{?rhel} >= 8 %if 0%{?rhel} >= 8
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/* %py3_shebang_fix %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/*
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
%endif %endif
#set up placeholder directories #set up placeholder directories