Use py3 macros

Use a macro instead of calling pathfix.py directly, as its location is
an internal implementation detail.
This commit is contained in:
Yaakov Selkowitz 2023-10-30 20:16:26 -04:00 committed by Mads Kiilerich
parent cb3bef4989
commit 1db5fee92a

View File

@ -151,7 +151,7 @@ popd
%endif
%install
%{python3} setup.py install -O1 --root %{buildroot} --prefix %{_prefix}
%py3_install
make install-doc DESTDIR=%{buildroot} MANDIR=%{_mandir}
# Overrule setup.py policy "c" for module usage: always allow rust extension (if available)
@ -209,7 +209,7 @@ rm -rf %{buildroot}%{python3_sitearch}/mercurial/locale
%find_lang hg
%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pni "%{python3}" %{buildroot}%{_bindir}/hg-ssh
%py3_shebang_fix %{buildroot}%{_bindir}/hg-ssh
%files -f hg.lang