[packages/python-werkzeug] - stick to python2 to build docs when not building python3 here
qboosh
qboosh at pld-linux.org
Sun Oct 8 19:01:40 CEST 2023
commit 42cfca630805c67f393c270bb6132c9d7a651983
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 8 18:38:14 2023 +0200
- stick to python2 to build docs when not building python3 here
python-werkzeug.spec | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/python-werkzeug.spec b/python-werkzeug.spec
index 17d674e..3df84e5 100644
--- a/python-werkzeug.spec
+++ b/python-werkzeug.spec
@@ -3,13 +3,13 @@
%bcond_without doc # Sphinx documentation
%bcond_without tests # test action
%bcond_without python2 # CPython 2.x module
-# see python3-werkzeug.spec
-%bcond_with python3 # CPython 3.x module
+%bcond_with python3 # CPython 3.x module (built from python3-werkzeug.spec)
%define module werkzeug
Summary: The Swiss Army knife of Python web development
Summary(pl.UTF-8): Scyzoryk szwajcarski programisty aplikacji WWW
Name: python-%{module}
+# keep 1.x here for python2 support
Version: 1.0.1
Release: 3
License: BSD
@@ -59,10 +59,10 @@ BuildRequires: python3-requests
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: python3-pallets-sphinx-themes
-BuildRequires: python3-sphinx_issues
-BuildRequires: python3-sphinxcontrib-log-cabinet
-BuildRequires: sphinx-pdg-3
+BuildRequires: python-pallets-sphinx-themes
+BuildRequires: python-sphinx_issues
+BuildRequires: python-sphinxcontrib-log-cabinet
+BuildRequires: sphinx-pdg-2
%endif
Requires: python-modules >= 1:2.7
BuildArch: noarch
@@ -151,11 +151,12 @@ PYTHONPATH=$(pwd)/src \
%if %{with doc}
PYTHONPATH=$(pwd)/src \
%{__make} -C docs html \
- SPHINXBUILD=sphinx-build-3
+ SPHINXBUILD=sphinx-build-2
%endif
%install
rm -rf $RPM_BUILD_ROOT
+
%if %{with python2}
%py_install
%py_postclean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-werkzeug.git/commitdiff/42cfca630805c67f393c270bb6132c9d7a651983
More information about the pld-cvs-commit
mailing list