2011-07-03 13:34:40 +02:00
|
|
|
#
|
2017-08-24 18:44:23 +02:00
|
|
|
# spec file for package python-Sphinx
|
2011-07-03 13:34:40 +02:00
|
|
|
#
|
2017-02-16 12:48:07 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-07-04 12:44:36 +02:00
|
|
|
|
2017-08-24 18:44:23 +02:00
|
|
|
%if 0%{?suse_version} != 1315
|
2017-05-08 17:39:30 +02:00
|
|
|
%bcond_without latex
|
|
|
|
%else
|
|
|
|
%bcond_with latex
|
|
|
|
%endif
|
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-05-05 23:09:39 +02:00
|
|
|
%define oldpython python
|
2011-07-03 13:34:40 +02:00
|
|
|
Name: python-Sphinx
|
2017-10-30 11:25:19 +01:00
|
|
|
Version: 1.6.5
|
2011-09-22 12:59:46 +02:00
|
|
|
Release: 0
|
2015-12-17 14:38:15 +01:00
|
|
|
Url: http://sphinx-doc.org
|
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
|
2017-07-27 15:01:58 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
2017-06-29 17:37:32 +02:00
|
|
|
Patch1: disable-test.patch
|
2011-07-03 13:34:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-04-24 22:54:10 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-Babel >= 1.3
|
2013-11-06 12:47:17 +01:00
|
|
|
Requires: python-Jinja2 >= 2.3
|
2015-04-13 15:33:30 +02:00
|
|
|
Requires: python-Pygments >= 2.0
|
2017-04-24 22:54:10 +02:00
|
|
|
Requires: python-alabaster >= 0.7
|
2015-04-13 15:33:30 +02:00
|
|
|
Requires: python-docutils >= 0.11
|
2017-02-16 12:48:07 +01:00
|
|
|
Requires: python-imagesize
|
2017-06-29 17:37:32 +02:00
|
|
|
Requires: python-requests >= 2.0.0
|
2017-02-16 12:48:07 +01:00
|
|
|
Requires: python-six >= 1.5
|
|
|
|
Requires: python-snowballstemmer >= 1.1
|
2015-04-13 15:33:30 +02:00
|
|
|
Requires: python-sphinx_rtd_theme
|
2017-09-19 00:31:19 +02:00
|
|
|
Requires: python-sphinxcontrib
|
2017-06-30 09:00:58 +02:00
|
|
|
Requires: python-sphinxcontrib-websupport
|
2017-07-27 15:01:58 +02:00
|
|
|
Recommends: python-SQLAlchemy >= 0.9
|
|
|
|
Recommends: python-Whoosh >= 2.0
|
|
|
|
Recommends: %{name}-doc-man
|
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
Requires: python-typing
|
|
|
|
%endif
|
|
|
|
%ifpython3
|
|
|
|
%if %{python3_version_nodots} < 35
|
2017-06-29 17:50:58 +02:00
|
|
|
Requires: python-typing
|
2017-07-27 15:01:58 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
2017-05-08 17:39:30 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2015-09-09 09:25:00 +02:00
|
|
|
|
2015-07-27 16:32:26 +02:00
|
|
|
%if 0%{?suse_version}
|
2015-06-29 16:14:41 +02:00
|
|
|
Recommends: python-rst2pdf
|
2015-07-27 16:32:26 +02:00
|
|
|
%endif
|
|
|
|
# workaround for suboptimal CentOS-7 project config
|
|
|
|
#!BuildIgnore: texinfo
|
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
%ifpython2
|
2017-05-05 23:09:39 +02:00
|
|
|
Obsoletes: %{oldpython}-sphinx < %{version}
|
|
|
|
Provides: %{oldpython}-sphinx = %{version}
|
2012-11-12 11:25:50 +01:00
|
|
|
%endif
|
2017-04-24 22:54:10 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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
|
2017-04-24 22:54:10 +02:00
|
|
|
Requires: %{name} = %{version}
|
2015-09-09 09:25:00 +02:00
|
|
|
Requires: texlive-latex
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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)
|
2015-09-09 09:25:00 +02:00
|
|
|
Requires: tex(wrapfig.sty)
|
2017-08-24 18:44:23 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
Requires: texlive-latexmk
|
|
|
|
Requires: texlive-makeindex
|
|
|
|
Requires: tex(varwidth.sty)
|
|
|
|
%endif
|
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
|
|
|
|
|
|
|
This package contains the LaTeX components for %{name}.
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n Sphinx-%{version}
|
2017-06-29 17:37:32 +02:00
|
|
|
%patch1 -p1
|
2016-02-17 10:13:39 +01:00
|
|
|
|
2012-11-12 11:25:50 +01:00
|
|
|
sed -i '/#\!/d' sphinx/pycode/pgen2/token.py # Fix non-excutable-script warning
|
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
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
%install
|
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
|
|
|
|
2017-05-08 17:39:30 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-07-03 13:34:40 +02:00
|
|
|
|
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
|
2013-04-30 16:38:55 +02:00
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
%files %{python_files}
|
2011-07-03 13:34:40 +02:00
|
|
|
%defattr(-,root,root,-)
|
2013-11-06 12:47:17 +01:00
|
|
|
%doc AUTHORS CHANGES LICENSE 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/
|
2017-05-08 17:39:30 +02:00
|
|
|
%if %{with latex}
|
2015-09-09 09:25:00 +02:00
|
|
|
%exclude %{python_sitelib}/sphinx/texinputs/
|
|
|
|
%endif
|
2017-05-08 17:39:30 +02:00
|
|
|
%{python_sitelib}/Sphinx-%{version}-py*.egg-info
|
2011-07-03 13:34:40 +02:00
|
|
|
|
2015-09-09 09:25:00 +02:00
|
|
|
# Requirements are not available on SLES
|
2017-05-08 17:39:30 +02:00
|
|
|
%if %{with latex}
|
2017-04-24 22:54:10 +02:00
|
|
|
%files %{python_files latex}
|
2015-09-09 09:25:00 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
%{python_sitelib}/sphinx/texinputs/
|
|
|
|
%endif
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
%changelog
|