mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
ceph.spec.in: use rpm macro for python shebang pathfix
To support EL 10 distros, update the source of the pathfix tool (on EL 9+ distros) and use the macro for updating python shebangs that has been available since at least EL 9. Signed-off-by: John Mulligan <jmulligan@redhat.com> (cherry picked from commitf60065de25) (cherry picked from commit0a8676911e)
This commit is contained in:
parent
bba186454b
commit
c94c736a35
@ -495,8 +495,8 @@ BuildRequires: libcryptopp-devel
|
||||
BuildRequires: libnuma-devel
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?rhel} >= 8
|
||||
BuildRequires: /usr/bin/pathfix.py
|
||||
%if 0%{?rhel} >= 9
|
||||
BuildRequires: python-rpm-macros
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -1603,8 +1603,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
|
||||
|
||||
%if 0%{?rhel} >= 8 || 0%{?openEuler}
|
||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
|
||||
%{py3_shebang_fix} %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/*
|
||||
%endif
|
||||
|
||||
#set up placeholder directories
|
||||
|
||||
Loading…
Reference in New Issue
Block a user