From 78fa545ec76807cc3756ad97482460142de1cd39 Mon Sep 17 00:00:00 2001 From: Dennis van Raaij Date: Fri, 17 Oct 2025 10:06:24 +0200 Subject: [PATCH] Don't build python-sphinx-latex for ELN See also: https://src.fedoraproject.org/rpms/python-sphinx/pull-request/74#comment-286281 --- python-sphinx.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-sphinx.spec b/python-sphinx.spec index 02b4750..a5e54f5 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -18,6 +18,7 @@ %bcond imagemagick_tests %{undefined rhel} # During texlive updates, sometimes the latex environment is unstable +# NOTE: LaTeX tests are never run when building for ELN. %bcond latex_tests 1 Name: python-sphinx @@ -89,7 +90,7 @@ BuildRequires: texinfo BuildRequires: ImageMagick %endif -%if %{with latex_tests} +%if %{undefined rhel} && %{with latex_tests} BuildRequires: texlive-collection-fontsrecommended BuildRequires: texlive-collection-latex BuildRequires: texlive-gnu-freefont @@ -231,6 +232,7 @@ the Python docs: snippets and inclusion of appropriately formatted docstrings. +%if %{undefined rhel} %package -n python%{python3_pkgversion}-sphinx-latex Summary: LaTeX builder dependencies for python%{python3_pkgversion}-sphinx @@ -334,6 +336,7 @@ useful to many other projects. This package pulls in the TeX dependencies needed by Sphinx's LaTeX builder. +%endif %package doc @@ -497,10 +500,10 @@ k="${k} and not test_check_js_search_indexes" %dir %{_datadir}/sphinx/locale/* %{_mandir}/man1/sphinx-* - +%if %{undefined rhel} %files -n python%{python3_pkgversion}-sphinx-latex # empty, this is a metapackage - +%endif %files doc %license LICENSE.rst