Use pre-built manpages

The Sphinx version shipped in python3-sphinx is too old.
This commit is contained in:
Tomáš Hrnčiar 2023-10-09 13:25:21 +02:00 committed by Miro Hrončok
parent 5cfdbeb950
commit 1b1710221f
2 changed files with 11 additions and 4 deletions

View File

@ -50,6 +50,15 @@ License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.
URL: https://pip.pypa.io/
Source0: https://github.com/pypa/pip/archive/%{upstream_version}/%{srcname}-%{upstream_version}.tar.gz
# To generate the man pages for RHEL8 on a system with Python >= 3.7
# rhpkg prep
# cd into the pip folder
# sed -i '/myst_parser/d;/sphinx_copybutton/d;/sphinx_inline_tabs/d;/sphinxcontrib.towncrier/d' docs/html/conf.py
# sphinx-build-3 -b man docs/man docs/build/man -c docs/html
# tar -czf pip-23.2.1-man.tar.gz --exclude=".[^/]*" -v docs/build/man
# mv pip-23.2.1-man.tar.gz ..
Source1: pip-%{base_version}-man.tar.gz
BuildArch: noarch
# Prevent removing of the system packages installed under /usr/lib
@ -190,10 +199,6 @@ sed -i '/\.exe/d' setup.py
%build
%py3_build_wheel
export PYTHONPATH=./src/
sphinx-build-3 -b man docs/man docs/build/man -c docs/html
%install
# The following is similar to %%pyproject_install, but we don't have
# /usr/bin/pip yet, so we install using the wheel directly.
@ -213,6 +218,7 @@ sphinx-build-3 -b man docs/man docs/build/man -c docs/html
'pip==%{upstream_version}'
# Install the man pages
tar -xvf %{SOURCE1}
pushd docs/build/man
install -d %{buildroot}%{_mandir}/man1
for MAN in *1; do

View File

@ -1 +1,2 @@
SHA512 (pip-23.2.1.tar.gz) = a6c629976c332cffe5dff0ec1e201d694c7a42fa8def202ebf1db251a6dbd90091eaac89c36a354a0cf0c60cdb267b4e0ec9ff6a88b0ac61cfaafdf159e34fc8
SHA512 (pip-23.2.1-man.tar.gz) = 8b3adb5ce8875d5e894d2ebd2a774ca631c6d52314420a36853ee3006d8119ba25e398a3bb11a02d23503a644a1b0f442f879cd8baf279507b9a6b36d3a88d29