- 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
This commit is contained in:
Dirk Mueller 2023-04-26 21:16:56 +00:00 committed by Git OBS Bridge
parent 0c85852649
commit 84ab6acabd
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 26 16:21:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
- 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 <mliska@suse.cz>

View File

@ -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