From c9ef3c929b662bc587301ba9bd90c95cb143f5f7 Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Tue, 7 Apr 2020 11:11:32 +0200 Subject: [PATCH] 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. --- python-pip.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-pip.spec b/python-pip.spec index a04a559..a3f6f53 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -384,7 +384,9 @@ install -pm0644 $MAN %{buildroot}%{_mandir}/man1/$MAN %if %{with python2} install -pm0644 $MAN %{buildroot}%{_mandir}/man1/${MAN/pip/pip2} %endif -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 # with doc @@ -518,6 +520,7 @@ ln -sf %{buildroot}%{_bindir}/pip3 _bin/pip %if %{with doc} %{_mandir}/man1/pip.* %{_mandir}/man1/pip3.* +%{_mandir}/man1/pip-* %endif %{_bindir}/pip %{_bindir}/pip3