1
0
forked from pool/python-Sphinx

Accepting request 527168 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/527168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=43
This commit is contained in:
Dominique Leuenberger 2017-09-27 14:52:32 +00:00 committed by Git OBS Bridge
commit 32b797b912
5 changed files with 49 additions and 77 deletions

View File

@ -1,2 +0,0 @@
# -*- coding: utf-8 -*-
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 11 17:07:40 UTC 2017 - jengelh@inai.de
- Trim package descriptions for size.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 24 16:43:14 UTC 2017 - toddrme2178@gmail.com Thu Aug 24 16:43:14 UTC 2017 - toddrme2178@gmail.com

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%if 0%{?suse_version} != 1315 %if 0%{?suse_version} != 1315
%bcond_without latex %bcond_without latex
%else %else
@ -44,40 +45,31 @@ BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources). It was originally created for the Python documentation, and
for the new Python documentation, and has excellent facilities for Python supports Python project documentation well, but C/C++ is likewise
project documentation, but C/C++ is supported as well, and more languages are supported.
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths Sphinx uses reStructuredText as its markup language. Sphinx draws from
come from the power and straightforwardness of reStructuredText and its parsing the parsing and translating suite, the Docutils.
and translating suite, the Docutils.
This package contained the documentation for Sphinx. This package contains the documentation for Sphinx.
%package man %package man
Summary: Man files for python-Sphinx Summary: Man files for python-Sphinx
Group: Documentation/Man Group: Documentation/Man
Requires: python-Sphinx = %{version}
Requires: %{name}-man-common = %{version} Requires: %{name}-man-common = %{version}
Requires: python-Sphinx = %{version}
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%description man %description man
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources).
for the new Python documentation, and has excellent facilities for Python
project documentation, but C/C++ is supported as well, and more languages are
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths This package contains the manual pages for the Sphinx executables.
come from the power and straightforwardness of reStructuredText and its parsing
and translating suite, the Docutils.
This package contained the manual pages for the Sphinx executables.
%package -n %{name}-html %package -n %{name}-html
Summary: HTML Documentation for python-Sphinx Summary: HTML Documentation for python-Sphinx
@ -85,18 +77,11 @@ Group: Documentation/HTML
Provides: %{python_module Sphinx-doc-html = %{version}} Provides: %{python_module Sphinx-doc-html = %{version}}
%description -n %{name}-html %description -n %{name}-html
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources).
for the new Python documentation, and has excellent facilities for Python
project documentation, but C/C++ is supported as well, and more languages are
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths This package contains the HTML documentation for Sphinx.
come from the power and straightforwardness of reStructuredText and its parsing
and translating suite, the Docutils.
This package contained the HTML documentation for Sphinx.
%package -n %{name}-man-common %package -n %{name}-man-common
Summary: Man files for python-Sphinx - python-independent versions Summary: Man files for python-Sphinx - python-independent versions
@ -104,18 +89,11 @@ Group: Documentation/Man
Provides: %{python_module Sphinx-doc-man-common = %{version}} Provides: %{python_module Sphinx-doc-man-common = %{version}}
%description -n %{name}-man-common %description -n %{name}-man-common
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources).
for the new Python documentation, and has excellent facilities for Python
project documentation, but C/C++ is supported as well, and more languages are
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths This package contains the Python version-independent manual pages for the
come from the power and straightforwardness of reStructuredText and its parsing
and translating suite, the Docutils.
This package contained the python version-independent manual pages for the
Sphinx executables. Sphinx executables.
%prep %prep

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Sep 18 22:03:24 UTC 2017 - toddrme2178@gmail.com
- Move sphinxcontrib namespace into seperate package to avoid
dependency loop with sphinxcontrib-websupport.
-------------------------------------------------------------------
Mon Sep 11 17:07:40 UTC 2017 - jengelh@inai.de
- Trim package descriptions for size.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 31 22:47:36 UTC 2017 - toddrme2178@gmail.com Thu Aug 31 22:47:36 UTC 2017 - toddrme2178@gmail.com

View File

@ -32,7 +32,6 @@ Summary: Python documentation generator
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/sphinx-doc/sphinxcontrib-websupport/1.0.1/sphinxcontrib/__init__.py
Patch1: disable-test.patch Patch1: disable-test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
@ -49,6 +48,7 @@ Requires: python-requests >= 2.0.0
Requires: python-six >= 1.5 Requires: python-six >= 1.5
Requires: python-snowballstemmer >= 1.1 Requires: python-snowballstemmer >= 1.1
Requires: python-sphinx_rtd_theme Requires: python-sphinx_rtd_theme
Requires: python-sphinxcontrib
Requires: python-sphinxcontrib-websupport Requires: python-sphinxcontrib-websupport
Recommends: python-SQLAlchemy >= 0.9 Recommends: python-SQLAlchemy >= 0.9
Recommends: python-Whoosh >= 2.0 Recommends: python-Whoosh >= 2.0
@ -80,16 +80,14 @@ BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources). It was originally created for the Python documentation, and
for the new Python documentation, and has excellent facilities for Python supports Python project documentation well, but C/C++ is likewise
project documentation, but C/C++ is supported as well, and more languages are supported.
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths Sphinx uses reStructuredText as its markup language. Sphinx draws from
come from the power and straightforwardness of reStructuredText and its parsing the parsing and translating suite, the Docutils.
and translating suite, the Docutils.
%package latex %package latex
Summary: Sphinx packages for LaTeX Summary: Sphinx packages for LaTeX
@ -161,16 +159,9 @@ Requires: tex(varwidth.sty)
%endif %endif
%description latex %description latex
Sphinx is a tool that makes it easy to create intelligent and beautiful Sphinx is a tool that facilitates creating documentation for Python
documentation for Python projects (or other documents consisting of multiple projects (or other documents consisting of multiple reStructuredText
reStructuredText sources), written by Georg Brandl. It was originally created sources).
for the new Python documentation, and has excellent facilities for Python
project documentation, but C/C++ is supported as well, and more languages are
planned.
Sphinx uses reStructuredText as its markup language, and many of its strengths
come from the power and straightforwardness of reStructuredText and its parsing
and translating suite, the Docutils.
This package contains the LaTeX components for %{name}. This package contains the LaTeX components for %{name}.
@ -187,13 +178,6 @@ sed -i 's/\r$//' sphinx/themes/basic/static/jquery.js # Fix wrong end-of-line en
%install %install
%python_install %python_install
# Set up the sphinxcontrib namespace package
%{python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib/
cp %{SOURCE10} %{buildroot}%{$python_sitelib}/sphinxcontrib/
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sphinxcontrib/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sphinxcontrib/
}
%python_clone -a %{buildroot}%{_bindir}/sphinx-apidoc %python_clone -a %{buildroot}%{_bindir}/sphinx-apidoc
%python_clone -a %{buildroot}%{_bindir}/sphinx-autogen %python_clone -a %{buildroot}%{_bindir}/sphinx-autogen
%python_clone -a %{buildroot}%{_bindir}/sphinx-build %python_clone -a %{buildroot}%{_bindir}/sphinx-build
@ -219,10 +203,6 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/sp
%exclude %{python_sitelib}/sphinx/texinputs/ %exclude %{python_sitelib}/sphinx/texinputs/
%endif %endif
%{python_sitelib}/Sphinx-%{version}-py*.egg-info %{python_sitelib}/Sphinx-%{version}-py*.egg-info
%dir %{python_sitelib}/sphinxcontrib/
%{python_sitelib}/sphinxcontrib/__init__.py*
%pycache_only %dir %{python_sitelib}/sphinxcontrib/__pycache__/
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/__init__*.py*
# Requirements are not available on SLES # Requirements are not available on SLES
%if %{with latex} %if %{with latex}