| |
@@ -21,11 +21,11 @@
|
| |
%global upstream_name Sphinx
|
| |
|
| |
Name: python-sphinx
|
| |
- %global general_version 3.2.1
|
| |
+ %global general_version 3.3.1
|
| |
#global prerel ...
|
| |
%global upstream_version %{general_version}%{?prerel}
|
| |
Version: %{general_version}%{?prerel:~%{prerel}}
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 1%{?dist}
|
| |
Epoch: 1
|
| |
Summary: Python documentation generator
|
| |
|
| |
@@ -42,30 +42,10 @@
|
| |
# which causes that test to fail.
|
| |
Patch1: sphinx-test_theming.diff
|
| |
|
| |
- # Latest version of python-pygments (2.7.1) breaks python-sphinx.
|
| |
- # It is already fixed in upstream and this patch can be removed
|
| |
- # once new version of python-sphinx is released.
|
| |
- Patch2: https://github.com/sphinx-doc/sphinx/commit/85b24a2e88ea71edc728aff3b078d34c2f374f06.patch
|
| |
-
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python%{python3_pkgversion}-devel
|
| |
- BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
-
|
| |
- BuildRequires: python%{python3_pkgversion}-babel
|
| |
- BuildRequires: python%{python3_pkgversion}-docutils
|
| |
- BuildRequires: python%{python3_pkgversion}-imagesize
|
| |
- BuildRequires: python%{python3_pkgversion}-jinja2
|
| |
- BuildRequires: python%{python3_pkgversion}-packaging
|
| |
- BuildRequires: python%{python3_pkgversion}-pygments
|
| |
- BuildRequires: python%{python3_pkgversion}-requests
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-applehelp
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-devhelp
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-htmlhelp
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-jsmath
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-qthelp
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinxcontrib-serializinghtml
|
| |
- BuildRequires: python%{python3_pkgversion}-sphinx-theme-alabaster
|
| |
+ BuildRequires: pyproject-rpm-macros
|
| |
|
| |
%if %{with websupport}
|
| |
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-websupport
|
| |
@@ -78,11 +58,7 @@
|
| |
# tests import _testcapi
|
| |
BuildRequires: python%{python3_pkgversion}-test
|
| |
|
| |
- BuildRequires: python%{python3_pkgversion}-html5lib
|
| |
- BuildRequires: python%{python3_pkgversion}-mock
|
| |
- BuildRequires: python%{python3_pkgversion}-pytest
|
| |
- BuildRequires: python%{python3_pkgversion}-snowballstemmer
|
| |
-
|
| |
+ BuildRequires: gcc
|
| |
BuildRequires: gettext
|
| |
BuildRequires: graphviz
|
| |
BuildRequires: texinfo
|
| |
@@ -159,22 +135,12 @@
|
| |
|
| |
Recommends: graphviz
|
| |
Recommends: ImageMagick
|
| |
- %{?python_provide:%python_provide python%{python3_pkgversion}-sphinx}
|
| |
|
| |
# Bundled JavaScript
|
| |
- Provides: bundled(jquery) = 3.2.1
|
| |
+ Provides: bundled(jquery) = 3.5.1
|
| |
Provides: bundled(underscore) = 1.3.1
|
| |
Provides: bundled(css3-mediaqueries) = 1.0
|
| |
|
| |
- # Remove in F33
|
| |
- Obsoletes: python-sphinx-locale < 1:2
|
| |
- Provides: python-sphinx-locale = %{epoch}:%{version}-%{release}
|
| |
- Obsoletes: python%{python3_pkgversion}-sphinxcontrib-napoleon < 0.3.0
|
| |
- Provides: python%{python3_pkgversion}-sphinxcontrib-napoleon = %{epoch}:%{version}-%{release}
|
| |
- Conflicts: python2-Sphinx < 1:2
|
| |
- Conflicts: python2-sphinx < 1:2
|
| |
- Provides: python(Sphinx) = %{epoch}:%{version}-%{release}
|
| |
-
|
| |
%description -n python%{python3_pkgversion}-sphinx
|
| |
Sphinx is a tool that makes it easy to create intelligent and
|
| |
beautiful documentation for Python projects (or other documents
|
| |
@@ -238,11 +204,8 @@
|
| |
Requires: tex(utf8x.def)
|
| |
Requires: tex(wrapfig.sty)
|
| |
|
| |
- %{?python_provide:%python_provide python%{python3_pkgversion}-sphinx-latex}
|
| |
-
|
| |
- # Remove in F33
|
| |
- Obsoletes: python-sphinx-latex < 1:2
|
| |
- Provides: python-sphinx-latex = %{epoch}:%{version}-%{release}
|
| |
+ # No files in this package, automatic provides don't work:
|
| |
+ %py_provides python%{python3_pkgversion}-sphinx-latex
|
| |
|
| |
%description -n python%{python3_pkgversion}-sphinx-latex
|
| |
Sphinx is a tool that makes it easy to create intelligent and
|
| |
@@ -282,13 +245,22 @@
|
| |
rm tests/test_ext_imgconverter.py
|
| |
%endif
|
| |
|
| |
+ # Don't measure coverage:
|
| |
+ sed -i '/pytest-cov/d' setup.py
|
| |
+ # Not needed on recent Pythons, https://github.com/sphinx-doc/sphinx/pull/8483
|
| |
+ sed -i '/typed_ast/d' setup.py
|
| |
+
|
| |
+
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires %{?with_tests:-x test}
|
| |
+
|
| |
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
|
| |
export PYTHONPATH=$PWD
|
| |
pushd doc
|
| |
- export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py"
|
| |
+ export SPHINXBUILD="%{python3} ../sphinx/cmd/build.py"
|
| |
make html SPHINXBUILD="$SPHINXBUILD"
|
| |
make man SPHINXBUILD="$SPHINXBUILD"
|
| |
rm -rf _build/html/.buildinfo
|
| |
@@ -297,7 +269,7 @@
|
| |
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
+ %pyproject_install
|
| |
|
| |
# For backwards compatibility. Remove with care, if at all
|
| |
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
| |
@@ -371,7 +343,7 @@
|
| |
%{_bindir}/sphinx-*
|
| |
%{python3_sitelib}/sphinx/
|
| |
%dir %{python3_sitelib}/sphinxcontrib/
|
| |
- %{python3_sitelib}/Sphinx-%{upstream_version}-py%{python3_version}.egg-info/
|
| |
+ %{python3_sitelib}/Sphinx-%{upstream_version}.dist-info/
|
| |
%dir %{_datadir}/sphinx/
|
| |
%dir %{_datadir}/sphinx/locale
|
| |
%dir %{_datadir}/sphinx/locale/*
|
| |
@@ -388,6 +360,10 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Mon Nov 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.3.1-1
|
| |
+ - Update to 3.3.1
|
| |
+ - Fixes: rhbz#1893752
|
| |
+
|
| |
* Wed Oct 14 2020 Tomas Hrnciar <thrnciar@redhat.com> - 1:3.2.1-2
|
| |
- Backport commit to fix python-sphinx with python-pygments v2.7.1
|
| |
|
| |
https://copr.fedorainfracloud.org/coprs/churchyard/sphinx-3.3/monitor/