|
|
|
|
@@ -1,19 +1,21 @@
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
|
|
|
|
%else
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# more work needed; currently sphinx-build fails when
|
|
|
|
|
# some latex files are unavailable - bz#1185574
|
|
|
|
|
%bcond_with splitlatex
|
|
|
|
|
# At some point, RHEL will need to be in here too
|
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} > 24
|
|
|
|
|
%global py3_default 1
|
|
|
|
|
%else
|
|
|
|
|
%global py3_default 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global upstream_name Sphinx
|
|
|
|
|
|
|
|
|
|
Name: python-sphinx
|
|
|
|
|
Version: 1.2.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 1.4.8
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Python documentation generator
|
|
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
@@ -23,28 +25,41 @@ Group: Development/Tools
|
|
|
|
|
# sphinx/pycode/pgen2 Python
|
|
|
|
|
# jquery (MIT or GPLv2)
|
|
|
|
|
License: BSD and Public Domain and Python and (MIT or GPLv2)
|
|
|
|
|
URL: http://sphinx.pocoo.org/
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
|
|
URL: http://sphinx-doc.org/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
|
|
Patch0: Sphinx-1.2.1-mantarget.patch
|
|
|
|
|
Patch1: Sphinx-1.2.2-verbosetests.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python2-devel >= 2.4
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
BuildRequires: python2-babel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
BuildRequires: python-docutils
|
|
|
|
|
BuildRequires: python-jinja2
|
|
|
|
|
BuildRequires: python-pygments
|
|
|
|
|
BuildRequires: python-pygments >= 2.0
|
|
|
|
|
BuildRequires: python-six
|
|
|
|
|
BuildRequires: python2-sphinx_rtd_theme
|
|
|
|
|
BuildRequires: python2-sphinx-theme-alabaster
|
|
|
|
|
BuildRequires: python2-imagesize
|
|
|
|
|
|
|
|
|
|
# for fixes
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
|
|
|
|
|
# for testing
|
|
|
|
|
BuildRequires: python-nose
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: texinfo
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: python-sqlalchemy
|
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
|
BuildRequires: python-whoosh
|
|
|
|
|
BuildRequires: python2-snowballstemmer
|
|
|
|
|
# note: no Python3 xapian binding yet
|
|
|
|
|
BuildRequires: xapian-bindings-python
|
|
|
|
|
BuildRequires: texlive-collection-fontsrecommended
|
|
|
|
|
BuildRequires: texlive-collection-latex
|
|
|
|
|
BuildRequires: texlive-dvipng
|
|
|
|
|
BuildRequires: texlive-dvisvgm
|
|
|
|
|
BuildRequires: texlive-ucs
|
|
|
|
|
BuildRequires: tex(cmap.sty)
|
|
|
|
|
BuildRequires: tex(ecrm1000.tfm)
|
|
|
|
|
BuildRequires: tex(fancybox.sty)
|
|
|
|
|
@@ -56,38 +71,38 @@ BuildRequires: tex(titlesec.sty)
|
|
|
|
|
BuildRequires: tex(threeparttable.sty)
|
|
|
|
|
BuildRequires: tex(upquote.sty)
|
|
|
|
|
BuildRequires: tex(wrapfig.sty)
|
|
|
|
|
|
|
|
|
|
BuildRequires: tex(capt-of.sty)
|
|
|
|
|
BuildRequires: tex(needspace.sty)
|
|
|
|
|
BuildRequires: tex(eqparbox.sty)
|
|
|
|
|
BuildRequires: tex(amsmath.sty)
|
|
|
|
|
BuildRequires: tex(amsthm.sty)
|
|
|
|
|
BuildRequires: tex(amssymb.sty)
|
|
|
|
|
BuildRequires: tex(amsfonts.sty)
|
|
|
|
|
BuildRequires: tex(bm.sty)
|
|
|
|
|
BuildRequires: tex(palatino.sty)
|
|
|
|
|
BuildRequires: tex(multirow.sty)
|
|
|
|
|
BuildRequires: tex(eqparbox.sty)
|
|
|
|
|
BuildRequires: tex(atbegshi.sty)
|
|
|
|
|
BuildRequires: tex(anyfontsize.sty)
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-babel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
|
BuildRequires: python3-jinja2
|
|
|
|
|
BuildRequires: python3-pygments
|
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
BuildRequires: python3-sqlalchemy
|
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
BuildRequires: python3-whoosh
|
|
|
|
|
BuildRequires: python3-snowballstemmer
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
|
BuildRequires: python3-sphinx-theme-alabaster
|
|
|
|
|
BuildRequires: python3-imagesize
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
Requires: python-docutils
|
|
|
|
|
Requires: python-jinja2
|
|
|
|
|
Requires: python-pygments
|
|
|
|
|
%if ! 0%{?with_splitlatex}
|
|
|
|
|
Provides: %{name}-latex = %{version}-%{release}
|
|
|
|
|
Requires: texlive-collection-fontsrecommended
|
|
|
|
|
Requires: texlive-collection-latex
|
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(ecrm1000.tfm)
|
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
Requires: tex(footnote.sty)
|
|
|
|
|
Requires: tex(framed.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
|
|
|
|
Requires: tex(parskip.sty)
|
|
|
|
|
Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
|
|
|
|
Requires: tex(wrapfig.sty)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
@@ -118,12 +133,69 @@ the Python docs:
|
|
|
|
|
snippets and inclusion of appropriately formatted docstrings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%package -n python2-sphinx
|
|
|
|
|
Summary: Python documentation generator
|
|
|
|
|
Requires: python-sphinx-locale = %{version}-%{release}
|
|
|
|
|
Requires: python2-babel
|
|
|
|
|
Requires: python-docutils
|
|
|
|
|
Requires: python-jinja2
|
|
|
|
|
Requires: python-pygments
|
|
|
|
|
Requires: python2-mock
|
|
|
|
|
Requires: python2-snowballstemmer
|
|
|
|
|
Requires: python2-sphinx_rtd_theme
|
|
|
|
|
Requires: python2-six
|
|
|
|
|
Requires: python2-sphinx-theme-alabaster
|
|
|
|
|
Requires: python2-imagesize
|
|
|
|
|
# Needed to get rid of the alternatives config installed in
|
|
|
|
|
# an earlier version of f24
|
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
|
|
|
|
Recommends: graphviz
|
|
|
|
|
Obsoletes: python-sphinx <= 1.2.3
|
|
|
|
|
Obsoletes: python-sphinxcontrib-napoleon < 0.5
|
|
|
|
|
Provides: python-sphinxcontrib-napoleon = %{version}-%{release}
|
|
|
|
|
Obsoletes: python2-Sphinx <= 1.3.1-4
|
|
|
|
|
Provides: python2-Sphinx = %{version}-%{release}
|
|
|
|
|
Provides: python(Sphinx) = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python2-sphinx}
|
|
|
|
|
Conflicts: python3-sphinx < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python2-sphinx
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
beautiful documentation for Python projects (or other documents
|
|
|
|
|
consisting of multiple reStructuredText sources), written by Georg
|
|
|
|
|
Brandl. It was originally created to translate the new Python
|
|
|
|
|
documentation, but has now been cleaned up in the hope that it will be
|
|
|
|
|
useful to many other projects.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Although it is still under constant development, the following
|
|
|
|
|
features are already present, work fine and can be seen "in action" in
|
|
|
|
|
the Python docs:
|
|
|
|
|
|
|
|
|
|
* Output formats: HTML (including Windows HTML Help) and LaTeX,
|
|
|
|
|
for printable PDF versions
|
|
|
|
|
* Extensive cross-references: semantic markup and automatic links
|
|
|
|
|
for functions, classes, glossary terms and similar pieces of
|
|
|
|
|
information
|
|
|
|
|
* Hierarchical structure: easy definition of a document tree, with
|
|
|
|
|
automatic links to siblings, parents and children
|
|
|
|
|
* Automatic indices: general index as well as a module index
|
|
|
|
|
* Code handling: automatic highlighting using the Pygments highlighter
|
|
|
|
|
* Various extensions are available, e.g. for automatic testing of
|
|
|
|
|
snippets and inclusion of appropriately formatted docstrings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package latex
|
|
|
|
|
Summary: LaTeX builder for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Summary: LaTeX builder dependencies for %{name}
|
|
|
|
|
Requires: python(Sphinx) = %{version}-%{release}
|
|
|
|
|
Requires: texlive-collection-fontsrecommended
|
|
|
|
|
Requires: texlive-collection-latex
|
|
|
|
|
Requires: texlive-dvipng
|
|
|
|
|
Requires: texlive-dvisvgm
|
|
|
|
|
Requires: texlive-ucs
|
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(ecrm1000.tfm)
|
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
@@ -135,6 +207,20 @@ Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
|
|
|
|
Requires: tex(wrapfig.sty)
|
|
|
|
|
Requires: tex(capt-of.sty)
|
|
|
|
|
Requires: tex(needspace.sty)
|
|
|
|
|
Requires: tex(eqparbox.sty)
|
|
|
|
|
Requires: tex(amsmath.sty)
|
|
|
|
|
Requires: tex(amsthm.sty)
|
|
|
|
|
Requires: tex(amssymb.sty)
|
|
|
|
|
Requires: tex(amsfonts.sty)
|
|
|
|
|
Requires: tex(bm.sty)
|
|
|
|
|
Requires: tex(palatino.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
|
|
|
|
Requires: tex(eqparbox.sty)
|
|
|
|
|
Requires: tex(atbegshi.sty)
|
|
|
|
|
Requires: tex(anyfontsize.sty)
|
|
|
|
|
Obsoletes: python3-sphinx-latex < 1.4.4-2
|
|
|
|
|
|
|
|
|
|
%description latex
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
@@ -144,35 +230,35 @@ Brandl. It was originally created to translate the new Python
|
|
|
|
|
documentation, but has now been cleaned up in the hope that it will be
|
|
|
|
|
useful to many other projects.
|
|
|
|
|
|
|
|
|
|
This package contains the LaTeX builder for Sphinx. It is packaged
|
|
|
|
|
separately so that the main package does not pull in TeXLive
|
|
|
|
|
dependencies.
|
|
|
|
|
%endif
|
|
|
|
|
This package pulls in the TeX dependencies needed by Sphinx's LaTeX
|
|
|
|
|
builder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-sphinx
|
|
|
|
|
Summary: Python documentation generator
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
Requires: python-sphinx-locale = %{version}-%{release}
|
|
|
|
|
Requires: python3-babel
|
|
|
|
|
Requires: python3-docutils
|
|
|
|
|
Requires: python3-jinja2
|
|
|
|
|
Requires: python3-pygments
|
|
|
|
|
%if ! 0%{?with_splitlatex}
|
|
|
|
|
Provides: python3-sphinx-latex = %{version}-%{release}
|
|
|
|
|
Requires: texlive-collection-fontsrecommended
|
|
|
|
|
Requires: texlive-collection-latex
|
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(ecrm1000.tfm)
|
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
Requires: tex(footnote.sty)
|
|
|
|
|
Requires: tex(framed.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
|
|
|
|
Requires: tex(parskip.sty)
|
|
|
|
|
Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
|
|
|
|
Requires: tex(wrapfig.sty)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python3-mock
|
|
|
|
|
Requires: python3-snowballstemmer
|
|
|
|
|
Requires: python3-sphinx_rtd_theme
|
|
|
|
|
Requires: python3-sphinx-theme-alabaster
|
|
|
|
|
Requires: python3-imagesize
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
Recommends: graphviz
|
|
|
|
|
# Needed to get rid of the alternatives config installed in
|
|
|
|
|
# an earlier version of f24
|
|
|
|
|
Requires(posttrans): /usr/sbin/alternatives
|
|
|
|
|
Obsoletes: python3-sphinxcontrib-napoleon < 0.3.0
|
|
|
|
|
Provides: python3-sphinxcontrib-napoleon = %{version}-%{release}
|
|
|
|
|
Provides: python(Sphinx) = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-sphinx}
|
|
|
|
|
Conflicts: python2-Sphinx < %{version}-%{release}
|
|
|
|
|
Conflicts: python2-sphinx < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-sphinx
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
@@ -201,45 +287,14 @@ the Python docs:
|
|
|
|
|
* Code handling: automatic highlighting using the Pygments highlighter
|
|
|
|
|
* Various extensions are available, e.g. for automatic testing of
|
|
|
|
|
snippets and inclusion of appropriately formatted docstrings.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%package -n python3-sphinx-latex
|
|
|
|
|
Summary: LaTeX builder for %{name}
|
|
|
|
|
Requires: python3-sphinx = %{version}-%{release}
|
|
|
|
|
Requires: texlive-collection-fontsrecommended
|
|
|
|
|
Requires: texlive-collection-latex
|
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(ecrm1000.tfm)
|
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
Requires: tex(footnote.sty)
|
|
|
|
|
Requires: tex(framed.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
|
|
|
|
Requires: tex(parskip.sty)
|
|
|
|
|
Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
|
|
|
|
Requires: tex(wrapfig.sty)
|
|
|
|
|
|
|
|
|
|
%description -n python3-sphinx-latex
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
beautiful documentation for Python projects (or other documents
|
|
|
|
|
consisting of multiple reStructuredText sources), written by Georg
|
|
|
|
|
Brandl. It was originally created to translate the new Python
|
|
|
|
|
documentation, but has now been cleaned up in the hope that it will be
|
|
|
|
|
useful to many other projects.
|
|
|
|
|
|
|
|
|
|
This package contains the LaTeX builder for Sphinx. It is packaged
|
|
|
|
|
separately so that the main package does not pull in TeXLive
|
|
|
|
|
dependencies.
|
|
|
|
|
%endif # with_splitlatex
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
License: BSD
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
License: BSD
|
|
|
|
|
Requires: python(Sphinx) = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
@@ -252,14 +307,29 @@ useful to many other projects.
|
|
|
|
|
This package contains documentation in reST and HTML formats.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package locale
|
|
|
|
|
Summary: Locale files for %{name}
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
License: BSD
|
|
|
|
|
|
|
|
|
|
%description locale
|
|
|
|
|
Sphinx is a tool that makes it easy to create intelligent and
|
|
|
|
|
beautiful documentation for Python projects (or other documents
|
|
|
|
|
consisting of multiple reStructuredText sources), written by Georg
|
|
|
|
|
Brandl. It was originally created to translate the new Python
|
|
|
|
|
documentation, but has now been cleaned up in the hope that it will be
|
|
|
|
|
useful to many other projects.
|
|
|
|
|
|
|
|
|
|
This package contains locale files for Sphinx
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{upstream_name}-%{version}%{?prerel}
|
|
|
|
|
%patch0 -p1 -b .mantarget
|
|
|
|
|
# not backing up since every executable file in tests/ results in
|
|
|
|
|
# an additional "skipped" test
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%autosetup -n %{upstream_name}-%{version}%{?prerel} -p1
|
|
|
|
|
|
|
|
|
|
sed '1d' -i sphinx/pycode/pgen2/token.py
|
|
|
|
|
|
|
|
|
|
# fix line encoding of bundled jquery.js
|
|
|
|
|
dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
@@ -267,11 +337,9 @@ cp -a . %{py3dir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
pushd doc
|
|
|
|
|
@@ -283,38 +351,35 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
# Must do the python3 install first because the scripts in /usr/bin are
|
|
|
|
|
# overwritten with every setup.py install (and we want the python2 version
|
|
|
|
|
# to be the default for now).
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
for f in %{buildroot}%{_bindir}/sphinx-*;
|
|
|
|
|
do
|
|
|
|
|
mv $f $f-%{python3_version}
|
|
|
|
|
ln -s %{_bindir}/`basename $f-%{python3_version}` $f-3
|
|
|
|
|
%py3_install
|
|
|
|
|
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
|
|
|
|
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
|
|
|
|
ln -s $i-%{python3_version} %{buildroot}%{_bindir}/$i-3
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
%py2_install
|
|
|
|
|
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
|
|
|
|
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python2_version}
|
|
|
|
|
ln -s $i-%{python2_version} %{buildroot}%{_bindir}/$i-2
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
pushd doc
|
|
|
|
|
# Deliver man pages
|
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
|
mv _build/man/sphinx-*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
for f in %{buildroot}%{_mandir}/man1/sphinx-*.1;
|
|
|
|
|
for f in _build/man/sphinx-*.1;
|
|
|
|
|
do
|
|
|
|
|
cp -p $f $(echo $f | sed -e "s|.1$|-%{python3_version}.1|")
|
|
|
|
|
### TODO: these are all the same. Do we really need to ship them three
|
|
|
|
|
### times or is it fine to just ship them as e.g. sphinx-build.1
|
|
|
|
|
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
|
|
|
|
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python2_version}.1|")
|
|
|
|
|
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python3_version}.1|")
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Remove language files, they're identical to the ones from the
|
|
|
|
|
# Python 2 build that will be moved to /usr/share below
|
|
|
|
|
find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \;
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Deliver rst files
|
|
|
|
|
@@ -337,6 +402,19 @@ do
|
|
|
|
|
rm -rf sphinx/locale/$lang
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%if %{py3_default}
|
|
|
|
|
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
|
|
|
|
|
ln -s %{_bindir}/$filename-3 %{buildroot}%{_bindir}/$filename
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
|
|
|
|
|
ln -s %{_bindir}/$filename-2 %{buildroot}%{_bindir}/$filename
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%find_lang sphinx
|
|
|
|
|
|
|
|
|
|
# Language files; Since these are javascript, it's not immediately obvious to
|
|
|
|
|
@@ -355,58 +433,52 @@ popd
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f sphinx.lang
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES EXAMPLES README.rst TODO
|
|
|
|
|
%exclude %{_bindir}/sphinx-*-3
|
|
|
|
|
%exclude %{_bindir}/sphinx-*-%{python3_version}
|
|
|
|
|
%{_bindir}/sphinx-*
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%exclude %{python_sitelib}/sphinx/builders/latex.py*
|
|
|
|
|
%exclude %{python_sitelib}/sphinx/writers/latex.py*
|
|
|
|
|
%exclude %{python_sitelib}/sphinx/texinputs
|
|
|
|
|
%endif
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%dir %{_datadir}/sphinx/
|
|
|
|
|
%dir %{_datadir}/sphinx/locale
|
|
|
|
|
%dir %{_datadir}/sphinx/locale/*
|
|
|
|
|
%exclude %{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%files latex
|
|
|
|
|
%{python_sitelib}/sphinx/builders/latex.py*
|
|
|
|
|
%{python_sitelib}/sphinx/writers/latex.py*
|
|
|
|
|
%{python_sitelib}/sphinx/texinputs
|
|
|
|
|
%endif
|
|
|
|
|
%pre -n python2-sphinx
|
|
|
|
|
# python-sphinx as shipped in an update to f24 and f25 used alternatives. So
|
|
|
|
|
# we need to clean up the alternatives configuration until at least f27
|
|
|
|
|
%{_sbindir}/update-alternatives --remove sphinx-build %{_bindir}/sphinx-build-%{python2_version} || :
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-sphinx -f sphinx.lang
|
|
|
|
|
%pre -n python3-sphinx
|
|
|
|
|
# python-sphinx as shipped in an update to f24 and f25 used alternatives. So
|
|
|
|
|
# we need to clean up the alternatives configuration until at least f27
|
|
|
|
|
%{_sbindir}/update-alternatives --remove sphinx-build %{_bindir}/sphinx-build-%{python3_version} || :
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files latex
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%files locale -f sphinx.lang
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES EXAMPLES README.rst TODO
|
|
|
|
|
%{_bindir}/sphinx-*-3
|
|
|
|
|
%{_bindir}/sphinx-*-%{python3_version}
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%exclude %{python3_sitelib}/sphinx/builders/latex.py*
|
|
|
|
|
%exclude %{python3_sitelib}/sphinx/builders/__pycache__/latex.*.py*
|
|
|
|
|
%exclude %{python3_sitelib}/sphinx/writers/latex.py*
|
|
|
|
|
%exclude %{python3_sitelib}/sphinx/writers/__pycache__/latex.*.py*
|
|
|
|
|
%exclude %{python3_sitelib}/sphinx/texinputs
|
|
|
|
|
%endif
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%dir %{_datadir}/sphinx/
|
|
|
|
|
%dir %{_datadir}/sphinx/locale
|
|
|
|
|
%dir %{_datadir}/sphinx/locale/*
|
|
|
|
|
|
|
|
|
|
%files -n python2-sphinx
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES EXAMPLES README.rst
|
|
|
|
|
%{_bindir}/sphinx-*-2*
|
|
|
|
|
%{python2_sitelib}/sphinx/
|
|
|
|
|
%{python2_sitelib}/Sphinx-%{version}-py%{python2_version}.egg-info/
|
|
|
|
|
%exclude %{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_bindir}/sphinx-apidoc
|
|
|
|
|
%{_bindir}/sphinx-autogen
|
|
|
|
|
%{_bindir}/sphinx-build
|
|
|
|
|
%{_bindir}/sphinx-quickstart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
|
|
%files -n python3-sphinx
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES EXAMPLES README.rst
|
|
|
|
|
%{_bindir}/sphinx-*-3*
|
|
|
|
|
%{python3_sitelib}/sphinx/
|
|
|
|
|
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
%{_mandir}/man1/sphinx-*-%{python3_version}.1*
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_splitlatex}
|
|
|
|
|
%files -n python3-sphinx-latex
|
|
|
|
|
%{python3_sitelib}/sphinx/builders/latex.py*
|
|
|
|
|
%{python3_sitelib}/sphinx/builders/__pycache__/latex.*.py*
|
|
|
|
|
%{python3_sitelib}/sphinx/writers/latex.py*
|
|
|
|
|
%{python3_sitelib}/sphinx/writers/__pycache__/latex.*.py*
|
|
|
|
|
%{python3_sitelib}/sphinx/texinputs
|
|
|
|
|
%endif # with_splitlatex
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
@@ -414,6 +486,81 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.8-3
|
|
|
|
|
- Remove environment-modules as well because aviso doesn't want major changes
|
|
|
|
|
like introducing alternatives or environment-modules to hit the released
|
|
|
|
|
Fedora. This takes the package back to before the alternatives changes
|
|
|
|
|
were erroneously pushed back into f24.
|
|
|
|
|
|
|
|
|
|
* Fri Dec 30 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.8-2
|
|
|
|
|
- Remove alternatives. Alternatives should only be used for a very small
|
|
|
|
|
number of packages (system daemons which also have a compatible command line
|
|
|
|
|
interface).
|
|
|
|
|
- Use environment-modules to switch between the python2 and python3 packages
|
|
|
|
|
*but* be aware that no amount of manual switching can get this 100% right.
|
|
|
|
|
The code has to be fixed upstream, not in packaging.
|
|
|
|
|
|
|
|
|
|
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-1
|
|
|
|
|
- Update to 1.4.8
|
|
|
|
|
- Alternatives fails for scripts sometimes (bz#1382405)
|
|
|
|
|
|
|
|
|
|
* Sun Sep 4 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-2
|
|
|
|
|
- Alternatives fails for man pages due to existing files
|
|
|
|
|
|
|
|
|
|
* Fri Sep 2 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-1
|
|
|
|
|
- Update to 1.4.6 (bz#1370810)
|
|
|
|
|
- Fix unversioned Obsoletes
|
|
|
|
|
- Add alternatives slaves for man pages
|
|
|
|
|
|
|
|
|
|
* Fri Aug 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.5-1
|
|
|
|
|
- Update to 1.4.5 (bz#1356336)
|
|
|
|
|
- Remove Recommends for latex, locale, and doc subpackages (bz#1366624)
|
|
|
|
|
- Remove Requires from locale subpackage (bz#1366624)
|
|
|
|
|
- Set executable scripts via alternatives (bz#1321413)
|
|
|
|
|
- Change graphviz Requires to Recommends (bz#1366706)
|
|
|
|
|
|
|
|
|
|
* Sun Jul 03 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-2
|
|
|
|
|
- doc and locale no longer specifically require python2-sphinx
|
|
|
|
|
- Colapsed python3-sphinx-latex into python-latex
|
|
|
|
|
|
|
|
|
|
* Sun Jun 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-1
|
|
|
|
|
- Updated to 1.4.4
|
|
|
|
|
- Added python-sphinx-locale for common locale files
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-4
|
|
|
|
|
- Obsolete napoleon extension, it is now packaged with sphinx (#1286275)
|
|
|
|
|
- Rename python2-Sphinx to python2-sphinx
|
|
|
|
|
- Add conflicts to disallow parallel installation of different versions,
|
|
|
|
|
which causes file conflicts because of the shared documentation files.
|
|
|
|
|
|
|
|
|
|
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-3
|
|
|
|
|
- Restore using python2 scripts by default (#1285535)
|
|
|
|
|
|
|
|
|
|
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-2
|
|
|
|
|
- Fix requirements of python2- subpackage
|
|
|
|
|
- Provide sphinx-*-{3.5,3} symlinks for each script
|
|
|
|
|
|
|
|
|
|
* Tue Nov 24 2015 Julien Enselme <jujens@jujens.eu> - 1.3.1-1
|
|
|
|
|
- Update to 1.3.1 (#1136284)
|
|
|
|
|
- Update to new guidelines
|
|
|
|
|
- Make the default executable use python3
|
|
|
|
|
|
|
|
|
|
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.2.3-5
|
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
- add patch to reflect that Python3.5 dropped HTMLParserError
|
|
|
|
|
|
|
|
|
|
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-4
|
|
|
|
|
- Fix line encoding of bundled jquery.js
|
|
|
|
|
|
|
|
|
|
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-3
|
|
|
|
|
- Re-introduce LaTeX subpackage, solely for pulling in LaTeX dependencies
|
|
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-1
|
|
|
|
|
- Update to 1.2.3
|
|
|
|
|
- Mark license file with %%license instead of %%doc
|
|
|
|
|
|