From: Kefu Chai Date: Fri, 1 Nov 2019 15:18:23 +0000 (-0500) Subject: ceph.spec.in: run pathfix.py X-Git-Tag: v15.1.0~1082^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=97bf619e1c538eea4d884b82c4f316e2da15dc3d;p=ceph.git ceph.spec.in: run pathfix.py Signed-off-by: Sage Weil --- diff --git a/ceph.spec.in b/ceph.spec.in index 4198ed55bba8..519f0d257b57 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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