Link to man page for all executables

There are four different executables for python-pip, but so far only two of
them had man page. This commit makes man page available for rest of the
executables via links.
This commit is contained in:
Tomas Hrnciar 2020-04-07 11:11:32 +02:00
parent 4347c1397d
commit 542eb0faf8
1 changed files with 3 additions and 1 deletions

View File

@ -296,7 +296,9 @@ pushd docs/build/man
install -d %{buildroot}%{_mandir}/man1
for MAN in *1; do
install -pm0644 $MAN %{buildroot}%{_mandir}/man1/$MAN
install -pm0644 $MAN %{buildroot}%{_mandir}/man1/${MAN/pip/pip3}
for pip in "pip3" "pip-3" "pip%{python3_version}" "pip-%{python3_version}"; do
echo ".so $MAN" > %{buildroot}%{_mandir}/man1/${MAN/pip/$pip}
done
done
popd
%endif