From 1db5fee92a80f1d7d462010efbf55d1daea56572 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 30 Oct 2023 20:16:26 -0400 Subject: [PATCH] Use py3 macros Use a macro instead of calling pathfix.py directly, as its location is an internal implementation detail. --- mercurial.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercurial.spec b/mercurial.spec index 2648501..91e5348 100644 --- a/mercurial.spec +++ b/mercurial.spec @@ -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