- Stop calling setup.py build_sphinx, switch to sphinx-build, and also

build manual pages.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=30
This commit is contained in:
2023-05-23 08:56:23 +00:00
committed by Git OBS Bridge
parent 2bd2d984de
commit 00b3b85937
2 changed files with 15 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 23 08:55:21 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Stop calling setup.py build_sphinx, switch to sphinx-build, and also
build manual pages.
-------------------------------------------------------------------
Mon Jan 23 14:39:42 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,8 +16,6 @@
#
%define skip_python2 1
%define skip_python36 1
%bcond_without test
Name: python-bpython
Version: 0.24
@@ -94,10 +92,18 @@ Documentation and help files for %{name}.
%build
%pyproject_wheel
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo # HTML documentation
# Build HTML documentation
sphinx-build doc/sphinx/source build/sphinx/html && rm build/sphinx/html/.buildinfo
# .. and the manual pages
sphinx-build -b man doc/sphinx/source build/sphinx/man
%install
%pyproject_install
# install manual pages by hand, for now: gh#bpython/bpython/issues/987
mkdir -p %{buildroot}%{_mandir}/man1
mkdir %{buildroot}%{_mandir}/man5
mv build/sphinx/man/bpython.1 %{buildroot}/%{_mandir}/man1
mv build/sphinx/man/bpython-config.5 %{buildroot}/%{_mandir}/man5
%python_clone -a %{buildroot}%{_bindir}/bpython
%python_clone -a %{buildroot}%{_bindir}/bpython-curses