2020-08-01 10:59:37 +08:00
|
|
|
Name: python-sphinx
|
2023-07-28 14:49:11 +08:00
|
|
|
Version: 7.0.1
|
|
|
|
|
Release: 1
|
2020-08-01 10:59:37 +08:00
|
|
|
Epoch: 1
|
|
|
|
|
Summary: Python documentation generator
|
2021-08-02 14:30:12 +00:00
|
|
|
License: BSD and MIT
|
2020-08-01 10:59:37 +08:00
|
|
|
URL: http://sphinx-doc.org/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
BuildArch: noarch
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-babel
|
|
|
|
|
BuildRequires: python3-docutils
|
|
|
|
|
BuildRequires: python3-imagesize
|
|
|
|
|
BuildRequires: python3-jinja2
|
|
|
|
|
BuildRequires: python3-packaging
|
|
|
|
|
BuildRequires: python3-pygments
|
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-applehelp
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-devhelp
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-htmlhelp
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-jsmath
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-qthelp
|
|
|
|
|
BuildRequires: python3-sphinxcontrib-serializinghtml
|
|
|
|
|
BuildRequires: python3-sphinx-theme-alabaster
|
2023-07-28 14:49:11 +08:00
|
|
|
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest
|
|
|
|
|
BuildRequires: python3-flit-core
|
2020-08-01 10:59:37 +08:00
|
|
|
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-test
|
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-snowballstemmer
|
|
|
|
|
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: texinfo
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
%description
|
2019-11-19 11:55:21 +08:00
|
|
|
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.
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
%package -n python3-sphinx
|
|
|
|
|
Summary:Python documentation generator
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
|
|
|
|
|
Requires: python3-babel python3-docutils python3-jinja2 python3-pygments
|
|
|
|
|
Requires: python3-snowballstemmer python3-sphinx_rtd_theme python3-sphinx-theme-alabaster
|
|
|
|
|
Requires: python3-imagesize python3-requests python3-six python3-packaging
|
|
|
|
|
Requires: environment(modules) python3-sphinxcontrib-websupport python3-mock
|
|
|
|
|
Requires(pre): /usr/sbin/alternatives
|
|
|
|
|
Recommends: graphviz ImageMagick
|
|
|
|
|
|
|
|
|
|
Obsoletes: python3-sphinxcontrib-napoleon < 0.3.0
|
|
|
|
|
Provides: python3-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
|
|
|
|
|
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
|
|
|
Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-sphinx}
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
|
|
|
|
|
%description -n python3-sphinx
|
2019-11-19 11:55:21 +08:00
|
|
|
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.
|
|
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%package help
|
|
|
|
|
Summary:Documentation for %{name}
|
|
|
|
|
Requires: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
|
|
|
Provides: python-sphinx-doc python-sphinx-latex
|
|
|
|
|
Obsoletes: python-sphinx-doc < %{?epoch}:%{version}-%{release}
|
|
|
|
|
Obsoletes: python-sphinx-latex < %{?epoch}:%{version}-%{release}
|
2020-08-01 10:59:37 +08:00
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%description help
|
|
|
|
|
This package contains help documentation in reST and HTML formats.
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%package locale
|
|
|
|
|
Summary:Locale files for python-sphinx
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%description locale
|
|
|
|
|
This package contains locale files for Sphinx.
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n Sphinx-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2023-07-28 14:49:11 +08:00
|
|
|
%pyproject_build
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
export PYTHONPATH=$PWD
|
2020-08-01 10:59:37 +08:00
|
|
|
pushd doc
|
2019-11-19 11:55:21 +08:00
|
|
|
export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py"
|
|
|
|
|
make html SPHINXBUILD="$SPHINXBUILD"
|
|
|
|
|
make man SPHINXBUILD="$SPHINXBUILD"
|
|
|
|
|
rm -rf _build/html/.buildinfo
|
|
|
|
|
mv _build/html ..
|
2020-08-01 10:59:37 +08:00
|
|
|
popd
|
|
|
|
|
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-07-28 14:49:11 +08:00
|
|
|
%pyproject_install sphinx==%{version}
|
2020-08-01 10:59:37 +08:00
|
|
|
|
|
|
|
|
# For backwards compatibility. Remove around Fedora 33 (with care)
|
2019-11-19 11:55:21 +08:00
|
|
|
install -d %{buildroot}%{_libexecdir}/python3-sphinx
|
|
|
|
|
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
2020-08-01 10:59:37 +08:00
|
|
|
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
|
|
|
|
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-3
|
|
|
|
|
ln -s %{_bindir}/$i %{buildroot}%{_libexecdir}/python3-sphinx/$i
|
2019-11-19 11:55:21 +08:00
|
|
|
done
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
pushd doc
|
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
|
for f in _build/man/sphinx-*.1;
|
|
|
|
|
do
|
|
|
|
|
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
rm -rf doc/_build
|
|
|
|
|
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
|
|
|
|
|
mv doc reST
|
2020-08-01 10:59:37 +08:00
|
|
|
rm reST/make.bat
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
pushd %{buildroot}%{python3_sitelib}
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
|
|
|
|
do
|
2020-08-01 10:59:37 +08:00
|
|
|
test $lang == __pycache__ && continue
|
2019-11-19 11:55:21 +08:00
|
|
|
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
|
|
|
|
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
|
|
|
|
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
|
|
|
|
|
%{buildroot}%{_datadir}/sphinx/locale/$lang/
|
|
|
|
|
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \
|
|
|
|
|
%{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
|
|
|
|
|
rm -rf sphinx/locale/$lang
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
%find_lang sphinx
|
|
|
|
|
|
|
|
|
|
(cd %{buildroot} && find . -name 'sphinx.js') | sed -e 's|^.||' | sed -e \
|
|
|
|
|
's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \
|
|
|
|
|
>> sphinx.lang
|
|
|
|
|
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
%if %{with tests}
|
2019-11-19 11:55:21 +08:00
|
|
|
%check
|
2020-08-01 10:59:37 +08:00
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
export PATH=%{buildroot}%{_bindir}:$PATH
|
2019-11-19 11:55:21 +08:00
|
|
|
%endif
|
|
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%files locale -f sphinx.lang
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%dir %{_datadir}/sphinx/
|
|
|
|
|
%dir %{_datadir}/sphinx/locale
|
|
|
|
|
%dir %{_datadir}/sphinx/locale/*
|
2019-11-19 11:55:21 +08:00
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
%files -n python3-sphinx -f sphinx.lang
|
2019-11-19 11:55:21 +08:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES EXAMPLES README.rst
|
2020-08-01 10:59:37 +08:00
|
|
|
%{_bindir}/sphinx-*
|
2023-07-28 14:49:11 +08:00
|
|
|
%{python3_sitelib}/sphinx*
|
2019-11-19 11:55:21 +08:00
|
|
|
%{_libexecdir}/python3-sphinx/
|
|
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
%files help
|
2019-11-19 11:55:21 +08:00
|
|
|
%doc html reST
|
2020-08-05 10:21:30 +08:00
|
|
|
%{_mandir}/man1/*
|
2019-11-19 11:55:21 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-07-28 14:49:11 +08:00
|
|
|
* Fri Jul 28 2023 xu_ping <707078654@qq.com> - 1:7.0.1-1
|
|
|
|
|
- Upgrade version to 7.0.1
|
|
|
|
|
|
2023-07-20 19:06:17 +08:00
|
|
|
* Thu Jul 20 2023 shixuantong <shixuantong1@huawei.com> - 1:4.4.0-2
|
|
|
|
|
- html: Updated jQuery version from 3.5.1 to 3.6.0
|
|
|
|
|
|
2022-07-05 15:15:43 +08:00
|
|
|
* Thu Jun 16 2022 zhangy1317 <zhangy1317@foxmail.com> - 1:4.4.0-1
|
|
|
|
|
- Upgrade version for openstack yoga
|
|
|
|
|
|
2021-12-13 09:26:58 +08:00
|
|
|
* Mon Dec 13 2021 shixuantong <shixuantong@huawei.com> - 4.3.1-1
|
|
|
|
|
- update version to 4.3.1
|
|
|
|
|
|
2021-08-02 14:30:12 +00:00
|
|
|
* Tue Jul 27 2021 OpenStack_SIG <openstack@openeuler.org> - 3.5.2-1
|
|
|
|
|
- update to 3.5.2
|
|
|
|
|
|
2021-02-02 10:10:57 +08:00
|
|
|
* Wed Jan 13 2021 SimpleUpdate Robot <tc@openeuler.org> - 3.4.3-1
|
|
|
|
|
- Upgrade to version 3.4.3
|
|
|
|
|
|
2020-08-05 10:21:30 +08:00
|
|
|
* Wed Aug 5 2020 tianwei <tianwei12@huawei.com> - 3.1.2-2
|
|
|
|
|
- add package locale and help
|
|
|
|
|
|
2020-08-01 10:59:37 +08:00
|
|
|
* Fri Jul 31 2020 tianwei <tianwei12@huawei.com> - 3.1.2-1
|
|
|
|
|
- Package update to 3.1.2
|
|
|
|
|
|
2020-02-20 03:20:53 -05:00
|
|
|
* Thu Feb 20 2020 Lijin Yang <yanglijin@huawei.com> - 1:1.7.6-6
|
2020-02-20 03:25:37 -05:00
|
|
|
- delete useless files
|
2020-02-20 03:20:53 -05:00
|
|
|
|
2020-02-19 23:23:38 -05:00
|
|
|
* Thu Feb 20 2020 Lijin Yang <yanglijin@huawei.com> - 1:1.7.6-5
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: make sphinx-build enable
|
|
|
|
|
|
2020-02-19 01:58:32 -05:00
|
|
|
* Thu Nov 14 2019 Lijin Yang <yanglijin@huawei.com> - 1:1.7.6-4
|
2019-11-19 11:55:21 +08:00
|
|
|
- init package
|