2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
2021-06-02 15:53:21 +02:00
|
|
|
|
# spec file
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
2021-01-11 16:01:56 +01:00
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2011-07-04 12:44:36 +02:00
|
|
|
|
|
2018-12-07 21:22:04 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
|
|
|
|
|
2011-07-04 12:44:36 +02:00
|
|
|
|
|
2018-05-23 14:18:27 +02:00
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define oldpython python
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2019-06-06 14:55:31 +02:00
|
|
|
|
%define skip_python2 1
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Name: python-Sphinx%{psuffix}
|
2022-01-03 11:35:07 +01:00
|
|
|
|
Version: 4.3.2
|
2011-09-22 12:59:46 +02:00
|
|
|
|
Release: 0
|
2011-07-03 13:34:40 +02:00
|
|
|
|
Summary: Python documentation generator
|
2011-09-22 12:59:46 +02:00
|
|
|
|
License: BSD-2-Clause
|
2011-07-03 13:34:40 +02:00
|
|
|
|
Group: Development/Languages/Python
|
2018-05-23 14:18:27 +02:00
|
|
|
|
URL: http://sphinx-doc.org
|
2017-07-27 15:01:58 +02:00
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
2020-05-11 15:43:53 +02:00
|
|
|
|
Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc
|
2020-12-05 18:44:43 +01:00
|
|
|
|
# Provide intersphinx inventory offline
|
|
|
|
|
Source2: https://docs.python.org/3/objects.inv#/python3.inv
|
2021-01-11 16:01:56 +01:00
|
|
|
|
Source3: https://requests.readthedocs.io/en/master/objects.inv#/requests.inv
|
2019-08-09 11:09:08 +02:00
|
|
|
|
Source99: python-Sphinx-rpmlintrc
|
2018-07-20 14:46:04 +02:00
|
|
|
|
BuildRequires: %{python_module base}
|
2017-04-24 22:54:10 +02:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-23 14:18:27 +02:00
|
|
|
|
# workaround for suboptimal CentOS-7 project config
|
|
|
|
|
#!BuildIgnore: texinfo
|
2017-04-24 22:54:10 +02:00
|
|
|
|
Requires: python-Babel >= 1.3
|
2013-11-06 12:47:17 +01:00
|
|
|
|
Requires: python-Jinja2 >= 2.3
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires: python-Pygments >= 2.1
|
2017-04-24 22:54:10 +02:00
|
|
|
|
Requires: python-alabaster >= 0.7
|
2021-04-16 10:05:51 +02:00
|
|
|
|
Requires: python-docutils >= 0.12
|
2017-02-16 12:48:07 +01:00
|
|
|
|
Requires: python-imagesize
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-requests >= 2.5.0
|
|
|
|
|
Requires: python-setuptools
|
2017-02-16 12:48:07 +01:00
|
|
|
|
Requires: python-snowballstemmer >= 1.1
|
2015-04-13 15:33:30 +02:00
|
|
|
|
Requires: python-sphinx_rtd_theme
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-sphinxcontrib-applehelp
|
|
|
|
|
Requires: python-sphinxcontrib-devhelp
|
2021-07-17 15:26:19 +02:00
|
|
|
|
Requires: python-sphinxcontrib-htmlhelp >= 2.0.0
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-sphinxcontrib-jsmath
|
2021-11-12 17:31:03 +01:00
|
|
|
|
Requires: python-sphinxcontrib-qthelp >= 1.0.2
|
2021-07-17 15:26:19 +02:00
|
|
|
|
Requires: python-sphinxcontrib-serializinghtml >= 1.1.5
|
2017-06-30 09:00:58 +02:00
|
|
|
|
Requires: python-sphinxcontrib-websupport
|
2018-05-23 14:18:27 +02:00
|
|
|
|
Requires(post): update-alternatives
|
2021-04-06 03:33:36 +02:00
|
|
|
|
Requires(postun):update-alternatives
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Recommends: python-SQLAlchemy >= 0.9
|
|
|
|
|
Recommends: python-Sphinx-doc-man
|
|
|
|
|
Recommends: python-Whoosh >= 2.0
|
2018-05-23 14:18:27 +02:00
|
|
|
|
BuildArch: noarch
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if %{with test}
|
2020-05-11 15:43:53 +02:00
|
|
|
|
BuildRequires: %{python_module Cython}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: %{python_module Sphinx = %{version}}
|
2019-04-10 09:13:51 +02:00
|
|
|
|
BuildRequires: %{python_module Sphinx-latex = %{version}}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: %{python_module html5lib}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module sphinxcontrib-websupport}
|
2020-05-12 13:02:49 +02:00
|
|
|
|
BuildRequires: %{python_module testsuite}
|
|
|
|
|
BuildRequires: %{python_module typed-ast}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: ImageMagick
|
2020-12-05 18:44:43 +01:00
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
# For PNG format
|
|
|
|
|
BuildRequires: graphviz-gd
|
|
|
|
|
# For PDF format (!?)
|
|
|
|
|
BuildRequires: graphviz-gnome
|
2021-11-28 20:14:11 +01:00
|
|
|
|
BuildRequires: texlive-tex-gyre
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_subpackages
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
|
|
|
|
%description
|
2017-09-12 17:25:47 +02:00
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources). It was originally created for the Python documentation, and
|
|
|
|
|
supports Python project documentation well, but C/C++ is likewise
|
|
|
|
|
supported.
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2017-09-12 17:25:47 +02:00
|
|
|
|
Sphinx uses reStructuredText as its markup language. Sphinx draws from
|
|
|
|
|
the parsing and translating suite, the Docutils.
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%package latex
|
|
|
|
|
Summary: Sphinx packages for LaTeX
|
|
|
|
|
Group: Productivity/Publishing/TeX/Base
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires: python-Sphinx = %{version}
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: texlive-dvipng
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires: texlive-gnu-freefont
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: texlive-latex
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: texlive-latexmk
|
|
|
|
|
Requires: texlive-makeindex
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: texlive-metafont
|
|
|
|
|
Requires: texlive-pdftex
|
|
|
|
|
Requires: tex(8r.enc)
|
|
|
|
|
Requires: tex(alltt.sty)
|
|
|
|
|
Requires: tex(amsfonts.sty)
|
|
|
|
|
Requires: tex(amsmath.sty)
|
|
|
|
|
Requires: tex(amssymb.sty)
|
|
|
|
|
Requires: tex(amsthm.sty)
|
2018-07-20 14:46:04 +02:00
|
|
|
|
Requires: tex(anyfontsize.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(array.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(article.cls)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(atbegshi.sty)
|
|
|
|
|
Requires: tex(babel.sty)
|
|
|
|
|
Requires: tex(bm.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(capt-of.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(color.sty)
|
|
|
|
|
Requires: tex(colortbl.sty)
|
|
|
|
|
Requires: tex(dvipdfmx.def)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(english.ldf)
|
|
|
|
|
Requires: tex(eqparbox.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
Requires: tex(fancyhdr.sty)
|
|
|
|
|
Requires: tex(fancyvrb.sty)
|
|
|
|
|
Requires: tex(float.sty)
|
|
|
|
|
Requires: tex(fncychap.sty)
|
|
|
|
|
Requires: tex(fontenc.sty)
|
|
|
|
|
Requires: tex(footnote.sty)
|
|
|
|
|
Requires: tex(framed.sty)
|
|
|
|
|
Requires: tex(graphics.sty)
|
|
|
|
|
Requires: tex(graphicx.sty)
|
|
|
|
|
Requires: tex(hypcap.sty)
|
|
|
|
|
Requires: tex(hyperref.sty)
|
|
|
|
|
Requires: tex(ifthen.sty)
|
|
|
|
|
Requires: tex(inputenc.sty)
|
|
|
|
|
Requires: tex(longtable.sty)
|
2019-06-07 12:48:28 +02:00
|
|
|
|
Requires: tex(luatex85.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(makeidx.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(needspace.sty)
|
|
|
|
|
Requires: tex(newfloat.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(palatino.sty)
|
|
|
|
|
Requires: tex(parskip.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(pcrr.tfm)
|
|
|
|
|
Requires: tex(pdftex.def)
|
|
|
|
|
Requires: tex(pdftex.map)
|
|
|
|
|
Requires: tex(phvr.tfm)
|
2018-07-20 14:46:04 +02:00
|
|
|
|
Requires: tex(polyglossia.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(pplr.tfm)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(preview.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(ptmr.tfm)
|
|
|
|
|
Requires: tex(pzcmi.tfm)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(tabulary.sty)
|
|
|
|
|
Requires: tex(textcomp.sty)
|
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(times.sty)
|
|
|
|
|
Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(utf8.def)
|
|
|
|
|
Requires: tex(utf8x.def)
|
2017-08-24 18:44:23 +02:00
|
|
|
|
Requires: tex(varwidth.sty)
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: tex(wrapfig.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
|
|
|
|
%description latex
|
2017-09-12 17:25:47 +02:00
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources).
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
This package contains the LaTeX components for python-Sphinx.
|
|
|
|
|
|
|
|
|
|
%package -n python-Sphinx-doc
|
|
|
|
|
Summary: Man files for python-Sphinx
|
|
|
|
|
Group: Documentation/Other
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python3-Sphinx = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc
|
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources). It was originally created for the Python documentation, and
|
|
|
|
|
supports Python project documentation well, but C/C++ is likewise
|
|
|
|
|
supported.
|
|
|
|
|
|
|
|
|
|
Sphinx uses reStructuredText as its markup language. Sphinx draws from
|
|
|
|
|
the parsing and translating suite, the Docutils.
|
|
|
|
|
|
|
|
|
|
This package contains the documentation for Sphinx.
|
|
|
|
|
|
|
|
|
|
%package -n python-Sphinx-doc-man
|
|
|
|
|
Summary: Man files for python-Sphinx
|
|
|
|
|
Group: Documentation/Man
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python3-Sphinx = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires(post): update-alternatives
|
2021-04-06 03:33:36 +02:00
|
|
|
|
Requires(postun):update-alternatives
|
2019-06-07 12:48:28 +02:00
|
|
|
|
Supplements: python3-Sphinx
|
2021-11-10 14:57:54 +01:00
|
|
|
|
Obsoletes: python-Sphinx-doc-man-common <= %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc-man
|
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources).
|
|
|
|
|
|
|
|
|
|
This package contains the manual pages for the Sphinx executables.
|
|
|
|
|
|
|
|
|
|
%package -n python-Sphinx-doc-html
|
|
|
|
|
Summary: HTML Documentation for python-Sphinx
|
|
|
|
|
Group: Documentation/HTML
|
2021-11-10 14:57:54 +01:00
|
|
|
|
Provides: python-Sphinx-doc-html = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc-html
|
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources).
|
|
|
|
|
|
|
|
|
|
This package contains the HTML documentation for Sphinx.
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Sphinx-%{version}
|
2020-09-28 15:45:58 +02:00
|
|
|
|
%autopatch -p1
|
2016-02-17 10:13:39 +01:00
|
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
|
sed -i 's/\r$//' sphinx/themes/basic/static/jquery.js # Fix wrong end-of-line encoding
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_build
|
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if %{with test}
|
|
|
|
|
mkdir build.doc
|
|
|
|
|
|
2020-05-12 13:02:49 +02:00
|
|
|
|
cp %{SOURCE2} doc/python3.inv
|
2021-01-11 16:01:56 +01:00
|
|
|
|
cp %{SOURCE3} doc/requests.inv
|
2020-12-05 18:44:43 +01:00
|
|
|
|
%{python_expand # Use one bundled intersphinx inventory for all flavors.
|
|
|
|
|
# The python3.6 inventory fails to build even in its own flavor.
|
|
|
|
|
# Use a more recent default (currently 3.9) from the source tag instead.
|
2021-01-11 16:01:56 +01:00
|
|
|
|
# The same for requests.
|
|
|
|
|
sed -i -e "s/\((.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" doc/conf.py
|
|
|
|
|
sed -i -e "s/\((.https:..requests.readthedocs.io.*, \)None\()\)/\1'requests.inv'\2/g" doc/conf.py
|
2020-12-05 18:44:43 +01:00
|
|
|
|
$python setup.py build_sphinx
|
|
|
|
|
rm build/sphinx/html/.buildinfo
|
|
|
|
|
$python setup.py build_sphinx -b man
|
|
|
|
|
}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
mv build/sphinx/{html,man} build.doc/
|
|
|
|
|
%endif
|
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%install
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if ! %{with test}
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%python_install
|
2017-04-24 22:54:10 +02:00
|
|
|
|
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-apidoc
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-autogen
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-build
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-quickstart
|
2017-04-24 22:54:10 +02:00
|
|
|
|
|
2018-12-07 21:40:34 +01:00
|
|
|
|
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2020-11-04 20:50:22 +01:00
|
|
|
|
# gh#openSUSE/python-rpm-macros#74
|
|
|
|
|
%{!?python_find_lang: %define python_find_lang() \
|
|
|
|
|
%find_lang %{**} \
|
|
|
|
|
langfile=%{?2}%{!?2:%1.lang} \
|
|
|
|
|
%{python_expand # \
|
|
|
|
|
grep -v 'python.*site-packages' ${langfile} > %{$python_prefix}-${langfile} \
|
|
|
|
|
grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \
|
|
|
|
|
} \
|
2020-11-03 21:55:53 +01:00
|
|
|
|
}
|
2021-12-04 20:04:41 +01:00
|
|
|
|
%python_find_lang sphinx
|
2019-08-09 11:09:08 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%else
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
|
|
|
|
|
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
mv build.doc/man/sphinx-all.1 %{buildroot}%{_mandir}/man1/sphinx-all.1
|
|
|
|
|
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
|
|
|
|
|
|
2019-03-11 16:01:50 +01:00
|
|
|
|
# Always deduplicate
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if ! %{with test}
|
2013-04-30 16:38:55 +02:00
|
|
|
|
%post
|
2017-07-27 15:01:58 +02:00
|
|
|
|
%{python_install_alternative sphinx-apidoc sphinx-autogen sphinx-build sphinx-quickstart}
|
2013-04-30 16:38:55 +02:00
|
|
|
|
|
2014-02-11 15:17:09 +01:00
|
|
|
|
%postun
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_uninstall_alternative sphinx-apidoc
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with test}
|
|
|
|
|
export LC_ALL="C.utf8"
|
2020-12-05 18:44:43 +01:00
|
|
|
|
# test_latex_images test downloading a remote image
|
2021-06-02 18:49:30 +02:00
|
|
|
|
# test_signature_annotations doesn’t work
|
|
|
|
|
%pytest tests -k 'not (linkcheck or test_latex_images or test_signature_annotations)'
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
2013-04-30 16:38:55 +02:00
|
|
|
|
|
2019-06-06 14:55:31 +02:00
|
|
|
|
%if ! %{with test}
|
2020-11-03 21:55:53 +01:00
|
|
|
|
%files %{python_files} -f %{python_prefix}-sphinx.lang
|
2018-05-23 14:18:27 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES README.rst
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_alternative %{_bindir}/sphinx-apidoc
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-autogen
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-build
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-quickstart
|
2013-09-16 11:26:51 +02:00
|
|
|
|
%{python_sitelib}/sphinx/
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%exclude %{python_sitelib}/sphinx/texinputs/
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%{python_sitelib}/Sphinx-%{version}-py*.egg-info
|
2018-12-07 21:22:04 +01:00
|
|
|
|
%dir %{python_sitelib}/sphinxcontrib
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%files %{python_files latex}
|
2018-05-23 14:18:27 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%{python_sitelib}/sphinx/texinputs/
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
|
%files -n python-Sphinx-doc-man
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%{_mandir}/man1/sphinx-all.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/sphinx-apidoc.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/sphinx-build.1%{?ext_man}
|
|
|
|
|
%{_mandir}/man1/sphinx-quickstart.1%{?ext_man}
|
|
|
|
|
|
|
|
|
|
%files -n python-Sphinx-doc-html
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%dir %{_docdir}/python-Sphinx/
|
|
|
|
|
%{_docdir}/python-Sphinx/html/
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%changelog
|