]> git.pld-linux.org Git - packages/python-pygments.git/commitdiff
- switched doc to python2, so python3 is not involved here master
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 3 Mar 2022 19:54:19 +0000 (20:54 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 3 Mar 2022 19:54:19 +0000 (20:54 +0100)
- versioned Obsoletes

python-pygments.spec

index 115f61acfb18989cff943bcc9135b8ec5e3fb475..025664b903af6045b607b282ae36a93ee6118817 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
+%bcond_with    python3 # CPython 3.x module (built from python3-pygments.spec)
 %bcond_without doc     # Sphinx documentation
 %bcond_without tests   # unit tests
 
@@ -17,7 +17,7 @@ Group:                Development/Languages/Python
 Source0:       https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
 # Source0-md5: 465a35559863089d959d783a69f79b9f
 Patch0:                rpmspec.patch
-URL:           http://pygments.org/
+URL:           https://pygments.org/
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires: python >= 1:2.7
@@ -38,11 +38,11 @@ BuildRequires:      python3-pytest
 %endif
 %endif
 BuildRequires: rpm-pythonprov
-%{?with_doc:BuildRequires:     sphinx-pdg}
+%{?with_doc:BuildRequires:     sphinx-pdg-2}
 Requires:      python-modules >= 1:2.7
 Requires:      python-setuptools
 Provides:      python-Pygments = %{version}-%{release}
-Obsoletes:     python-Pygments
+Obsoletes:     python-Pygments < 1.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -148,7 +148,8 @@ Dokumentacja API moduĊ‚u Pythona Pygments.
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
-%{__make} -C doc html
+%{__make} -C doc html \
+       SPHINXBUILD=sphinx-build-2
 %endif
 
 %install
This page took 0.07272 seconds and 4 git commands to generate.