From d64e5fa1266ff8cb26e8d9d7ef03a168b846d0a288cb8de13b2f9a89a432d382 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 | 4 ++-- python-Sphinx.spec | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-Sphinx.changes b/python-Sphinx.changes index a12d8f2..f29b3c7 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ae7f8eb2a0694b6b59c9a7bead40d76bb6e1b0c4a66ba3f3c72262fd6d18184d -size 174108 +oid sha256:db9abd6dbca2252f5adaf13cc2f3990a9d8966598726acc543e71e97e88c4c33 +size 174411 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