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