Skip to content

Commit 761edee

Browse files
authored
Merge pull request ceph#64123 from phlogistonjohn/jjm-el10-replace-pathfix-spec
ceph.spec.in: use rpm macro for python shebang pathfix
2 parents fc385d0 + f60065d commit 761edee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ceph.spec.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ BuildRequires: libcryptopp-devel
526526
BuildRequires: libnuma-devel
527527
%endif
528528
%endif
529-
%if 0%{?rhel} >= 8
530-
BuildRequires: /usr/bin/pathfix.py
529+
%if 0%{?rhel} >= 9
530+
BuildRequires: python-rpm-macros
531531
%endif
532532

533533
%description
@@ -1634,8 +1634,7 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
16341634
install -m 0440 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl
16351635

16361636
%if 0%{?rhel} >= 8 || 0%{?openEuler}
1637-
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
1638-
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
1637+
%{py3_shebang_fix} %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/*
16391638
%endif
16401639

16411640
#set up placeholder directories

0 commit comments

Comments
 (0)