15
0

Accepting request 1088563 from devel:languages:python

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

OBS-URL: https://build.opensuse.org/request/show/1088563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bpython?expand=0&rev=15
This commit is contained in:
2023-05-23 12:54:57 +00:00
committed by Git OBS Bridge
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