From 97bf619e1c538eea4d884b82c4f316e2da15dc3d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 1 Nov 2019 10:18:23 -0500 Subject: [PATCH] ceph.spec.in: run pathfix.py Signed-off-by: Sage Weil --- ceph.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 4198ed55bba89..519f0d257b57d 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 -- 2.39.5