From 84ab6acabd84d6b8d01fcd5345766afd1152acf2c99c125f28c093344c94c0b9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 26 Apr 2023 21:16:56 +0000 Subject: [PATCH] - For PSP packages don't include documentation at all. The building of Sphinx documentation is so complicated, that it is not possible to include it in the main package. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=239 --- python-Sphinx.changes | 7 +++++++ python-Sphinx.spec | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/python-Sphinx.changes b/python-Sphinx.changes index d41f508..5512450 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 26 16:21:27 UTC 2023 - Matej Cepl + +- For PSP packages don't include documentation at all. The + building of Sphinx documentation is so complicated, that it is + not possible to include it in the main package. + ------------------------------------------------------------------- Tue Apr 25 11:17:16 UTC 2023 - Martin Liška diff --git a/python-Sphinx.spec b/python-Sphinx.spec index 0fa173f..f8c88d1 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -191,6 +191,7 @@ sources). This package contains the LaTeX components for python-Sphinx. +%if 0%{?suse_version} > 1500 %package -n python-Sphinx-doc Summary: Man files for python-Sphinx Group: Documentation/Other @@ -235,6 +236,7 @@ projects (or other documents consisting of multiple reStructuredText sources). This package contains the HTML documentation for Sphinx. +%endif %prep %setup -q -n Sphinx-%{version} @@ -286,6 +288,7 @@ grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \ %python_find_lang sphinx %else +%if 0%{?suse_version} > 1500 mkdir -p %{buildroot}%{_docdir}/python-Sphinx/ mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/ rm -rf %{buildroot}%{_docdir}/python-Sphinx/html/_images @@ -296,6 +299,7 @@ mv build.doc/man/sphinx-apidoc.1 %{buildroot}%{_mandir}/man1/sphinx-apidoc.1 mv build.doc/man/sphinx-build.1 %{buildroot}%{_mandir}/man1/sphinx-build.1 mv build.doc/man/sphinx-quickstart.1 %{buildroot}%{_mandir}/man1/sphinx-quickstart.1 %endif +%endif # Always deduplicate %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -338,6 +342,7 @@ export LC_ALL="C.utf8" %endif %if %{with test} +%if 0%{?suse_version} > 1500 %files -n python-Sphinx-doc-man %license LICENSE %doc AUTHORS @@ -352,5 +357,6 @@ export LC_ALL="C.utf8" %dir %{_docdir}/python-Sphinx/ %{_docdir}/python-Sphinx/html/ %endif +%endif %changelog