forked from pool/python-Sphinx
- 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:
parent
0c85852649
commit
84ab6acabd
@ -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>
|
Tue Apr 25 11:17:16 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
@ -191,6 +191,7 @@ sources).
|
|||||||
|
|
||||||
This package contains the LaTeX components for python-Sphinx.
|
This package contains the LaTeX components for python-Sphinx.
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%package -n python-Sphinx-doc
|
%package -n python-Sphinx-doc
|
||||||
Summary: Man files for python-Sphinx
|
Summary: Man files for python-Sphinx
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
@ -235,6 +236,7 @@ projects (or other documents consisting of multiple reStructuredText
|
|||||||
sources).
|
sources).
|
||||||
|
|
||||||
This package contains the HTML documentation for Sphinx.
|
This package contains the HTML documentation for Sphinx.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Sphinx-%{version}
|
%setup -q -n Sphinx-%{version}
|
||||||
@ -286,6 +288,7 @@ grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \
|
|||||||
%python_find_lang sphinx
|
%python_find_lang sphinx
|
||||||
|
|
||||||
%else
|
%else
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
|
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
|
||||||
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
|
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
|
||||||
rm -rf %{buildroot}%{_docdir}/python-Sphinx/html/_images
|
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-build.1 %{buildroot}%{_mandir}/man1/sphinx-build.1
|
||||||
mv build.doc/man/sphinx-quickstart.1 %{buildroot}%{_mandir}/man1/sphinx-quickstart.1
|
mv build.doc/man/sphinx-quickstart.1 %{buildroot}%{_mandir}/man1/sphinx-quickstart.1
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
# Always deduplicate
|
# Always deduplicate
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
@ -338,6 +342,7 @@ export LC_ALL="C.utf8"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n python-Sphinx-doc-man
|
%files -n python-Sphinx-doc-man
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
@ -352,5 +357,6 @@ export LC_ALL="C.utf8"
|
|||||||
%dir %{_docdir}/python-Sphinx/
|
%dir %{_docdir}/python-Sphinx/
|
||||||
%{_docdir}/python-Sphinx/html/
|
%{_docdir}/python-Sphinx/html/
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user