]> git.pld-linux.org Git - packages/python-jaraco.packaging.git/commitdiff
- python2 related cleanup, switched doc to python2
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 9 Mar 2022 20:42:11 +0000 (21:42 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 9 Mar 2022 20:42:11 +0000 (21:42 +0100)
python-jaraco.packaging.spec

index dfe2e45e3ace334912178a1aa960a4dbdaa2aa74..cb78b6d5687e628dbf234e2188331eb7ee4b18a9 100644 (file)
@@ -3,7 +3,7 @@
 %bcond_without doc     # Sphinx documentation
 %bcond_without tests   # unit tests
 %bcond_without python2 # CPython 2.x module
-%bcond_with    python3 # CPython 3.x module
+%bcond_with    python3 # CPython 3.x module (built from python3-jaraco.packaging.spec)
 
 %define                egg_name        jaraco.packaging
 %define                pypi_name       jaraco.packaging
@@ -43,8 +43,8 @@ BuildRequires:        python3-six >= 1.4
 %endif
 %endif
 %if %{with doc}
-BuildRequires: python3-rst.linker >= 1.9
-BuildRequires: sphinx-pdg-3
+BuildRequires: python-rst.linker >= 1.9
+BuildRequires: sphinx-pdg-2
 %endif
 Requires:      python-jaraco
 Requires:      python-modules >= 1:2.7
@@ -97,7 +97,7 @@ Dokumentacja API moduĊ‚u Pythona jaraco.packaging.
 # no Makefile
 cd docs
 PYTHONPATH=$(pwd)/.. \
-sphinx-build-3 -b html . _build/html
+sphinx-build-2 -b html . _build/html
 %endif
 
 %install
@@ -110,6 +110,9 @@ rm -rf $RPM_BUILD_ROOT
 
 # packaged in python-jaraco.spec
 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/jaraco/__init__.py*
+
+# packaged in python3 variant only
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{dependency-tree,upload-package}
 %endif
 
 %if %{with python3}
This page took 0.104994 seconds and 4 git commands to generate.