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:
parent
532acabf2d
commit
4e6fe2fd52
1 changed files with 8 additions and 1 deletions
|
|
@ -367,9 +367,14 @@ install -d %{buildroot}%{_mandir}/man1
|
|||
for MAN in *1; do
|
||||
%if %{with python2}
|
||||
install -pm0644 $MAN %{buildroot}%{_mandir}/man1/$MAN
|
||||
install -pm0644 $MAN %{buildroot}%{_mandir}/man1/${MAN/pip/pip2}
|
||||
for pip in "pip2" "pip-2" "pip%{python2_version}" "pip-%{python2_version}"; do
|
||||
echo ".so $MAN" > %{buildroot}%{_mandir}/man1/${MAN/pip/$pip}
|
||||
done
|
||||
%endif
|
||||
install -pm0644 $MAN %{buildroot}%{_mandir}/man1/${MAN/pip/pip3}
|
||||
for pip in "pip-3" "pip%{python3_version}" "pip-%{python3_version}"; do
|
||||
echo ".so ${MAN/pip/pip3}" > %{buildroot}%{_mandir}/man1/${MAN/pip/$pip}
|
||||
done
|
||||
done
|
||||
popd
|
||||
%endif # with doc
|
||||
|
|
@ -491,6 +496,7 @@ ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip
|
|||
%if %{with doc}
|
||||
%{_mandir}/man1/pip.*
|
||||
%{_mandir}/man1/pip2.*
|
||||
%{_mandir}/man1/pip-2.*
|
||||
%endif
|
||||
%{_bindir}/pip
|
||||
%{_bindir}/pip2
|
||||
|
|
@ -511,6 +517,7 @@ ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip
|
|||
%doc README.rst
|
||||
%if %{with doc}
|
||||
%{_mandir}/man1/pip3.*
|
||||
%{_mandir}/man1/pip-3.*
|
||||
%endif
|
||||
%{_bindir}/pip3
|
||||
%{_bindir}/pip-3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue