]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: run pathfix.py 31318/head
authorKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 15:18:23 +0000 (10:18 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Nov 2019 15:26:23 +0000 (10:26 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
ceph.spec.in

index 4198ed55bba89c2fdfeb8dd0ff2a62485fc3702e..519f0d257b57d54520ac45536798380f06df28f1 100644 (file)
@@ -344,6 +344,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
@@ -1343,6 +1346,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