[packages/python-itsdangerous] - stick to python2 to build docs when building python3 here

qboosh qboosh at pld-linux.org
Sun Oct 8 15:41:53 CEST 2023


commit 5867447ae5b82d558bb90597ec26eb9cab2e6c51
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 8 15:00:15 2023 +0200

    - stick to python2 to build docs when building python3 here

 python-itsdangerous.spec | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec
index 0444c1b..0a06561 100644
--- a/python-itsdangerous.spec
+++ b/python-itsdangerous.spec
@@ -3,13 +3,13 @@
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
-# see python3-itsdangerous.spec
-%bcond_with	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-itsdangerous.spec)
 
 %define 	module  itsdangerous
 Summary:	Various helpers to pass trusted data to untrusted environments and back
 Summary(pl.UTF-8):	Wspomaganie przekazywania danych do i z niezaufanych środowisk
 Name:		python-%{module}
+# keep 1.x here for python2 support
 Version:	1.1.0
 Release:	4
 License:	BSD
@@ -37,8 +37,8 @@ BuildRequires:	python3-pytest
 %endif
 %endif
 %if %{with doc}
-BuildRequires:	python3-pallets-sphinx-themes >= 1.1.0
-BuildRequires:	sphinx-pdg-3 >= 1.8.0
+BuildRequires:	python-pallets-sphinx-themes >= 1.1.0
+BuildRequires:	sphinx-pdg-2 >= 1.8.0
 %endif
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
@@ -103,7 +103,8 @@ PYTHONPATH=$(pwd)/src \
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
-%{__make} -C docs html
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-2
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-itsdangerous.git/commitdiff/5867447ae5b82d558bb90597ec26eb9cab2e6c51



More information about the pld-cvs-commit mailing list