]> git.pld-linux.org Git - packages/python-werkzeug.git/commitdiff
- stick to python2 to build docs when not building python3 here master
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 8 Oct 2023 16:38:14 +0000 (18:38 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 8 Oct 2023 16:38:14 +0000 (18:38 +0200)
python-werkzeug.spec

index 17d674e1e6e96c1602d0855c28a7fd5048b7409f..3df84e5d2b6151a4bf0a730caffbe804f9940a42 100644 (file)
@@ -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
This page took 0.069125 seconds and 4 git commands to generate.