]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: use rpm macro for python shebang pathfix 64123/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 13 Feb 2025 20:59:42 +0000 (15:59 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 23 Jun 2025 23:22:27 +0000 (19:22 -0400)
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>
ceph.spec.in

index 5f4267c052bde04f1aa8ed93fc638937b1983322..dff07c3a090890b3f74b352e3ba500477be0f760 100644 (file)
@@ -526,8 +526,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
@@ -1634,8 +1634,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