]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: run pathfix.py
authorKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 15:18:23 +0000 (10:18 -0500)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 13:42:05 +0000 (21:42 +0800)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 97bf619e1c538eea4d884b82c4f316e2da15dc3d)

ceph.spec.in

index 5784d4a7e8f382415eecb15737be1bdfc4115f9e..b35c69cb521301d82f1845c886a345fecf0dcb7b 100644 (file)
@@ -337,6 +337,9 @@ BuildRequires:  libcryptopp-devel
 BuildRequires:  libnuma-devel
 %endif
 %endif
+%if 0%{?rhel} >= 8
+BuildRequires:  /usr/bin/pathfix.py
+%endif
 
 %description
 Ceph is a massively scalable, open-source, distributed storage system that runs
@@ -1282,6 +1285,11 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
 # sudoers.d
 install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
 
+%if 0%{?rhel} >= 8
+pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
+pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
+%endif
+
 #set up placeholder directories
 mkdir -p %{buildroot}%{_sysconfdir}/ceph
 mkdir -p %{buildroot}%{_localstatedir}/run/ceph