[packages/python-sphinxcontrib-programoutput] - don't package tests; use py2 sphinx here

qboosh qboosh at pld-linux.org
Fri May 30 07:52:48 CEST 2025


commit 283d1a5c7b30a7632c621e1609eec44fe7ae7e93
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 30 06:32:00 2025 +0200

    - don't package tests; use py2 sphinx here

 python-sphinxcontrib-programoutput.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/python-sphinxcontrib-programoutput.spec b/python-sphinxcontrib-programoutput.spec
index a2b141b..1282392 100644
--- a/python-sphinxcontrib-programoutput.spec
+++ b/python-sphinxcontrib-programoutput.spec
@@ -8,6 +8,7 @@
 Summary:	Sphinx extension to include program output
 Summary(pl.UTF-8):	Rozszerzenie Sphinksa do załączania wyjścia programu
 Name:		python-sphinxcontrib-programoutput
+# keep 0.17 here for python2 support
 Version:	0.17
 Release:	5
 License:	BSD
@@ -36,7 +37,7 @@ BuildRequires:	python3-Sphinx >= 1.7.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	sphinx-pdg >= 1.7.0
+BuildRequires:	sphinx-pdg-2 >= 1.7.0
 %endif
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
@@ -99,7 +100,7 @@ PYTHONPATH=$(pwd)/src \
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
-sphinx-build -b html doc doc/_build/html
+sphinx-build-2 -b html doc doc/_build/html
 %endif
 
 %install
@@ -108,11 +109,14 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/sphinxcontrib/programoutput/tests
 %py_postclean
 %endif
 
 %if %{with python3}
 %py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxcontrib/programoutput/tests
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-programoutput.git/commitdiff/283d1a5c7b30a7632c621e1609eec44fe7ae7e93



More information about the pld-cvs-commit mailing list