Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7572144d2 | ||
|
|
4500554943 | ||
|
|
82817e3a80 | ||
|
|
daad1311b1 | ||
|
|
67bdc19f10 | ||
|
|
bcde98f61b | ||
|
|
9e608a0fa5 | ||
|
|
976a71363d | ||
|
|
5bf9c06479 | ||
|
|
884ff2afc1 | ||
|
|
1d11fd11e2 | ||
|
|
39005de2f4 | ||
|
|
686ccb777b | ||
|
|
e4c8578188 | ||
|
|
95033b7db0 | ||
|
|
1a1e29e5a8 | ||
|
|
19463ebbdd | ||
|
|
23b5cdf21e | ||
|
|
7afb2d61aa | ||
|
|
d237e99bb9 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -22,3 +22,8 @@
|
||||
/Sphinx-2.1.2.tar.gz
|
||||
/Sphinx-2.2.0.tar.gz
|
||||
/Sphinx-2.2.2.tar.gz
|
||||
/Sphinx-3.1.1.tar.gz
|
||||
/Sphinx-3.1.2.tar.gz
|
||||
/Sphinx-3.2.1.tar.gz
|
||||
/Sphinx-3.3.1.tar.gz
|
||||
/Sphinx-3.4.3.tar.gz
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
# Also, we don't have all the tests requirements
|
||||
%bcond_without tests
|
||||
|
||||
# Unset -s on python shebang to allow RPM-installed sphinx to be used
|
||||
# with user-installed modules (#1903763)
|
||||
%global py3_shebang_flags %nil
|
||||
|
||||
# No internet in Koji
|
||||
%bcond_with internet
|
||||
@@ -15,11 +18,13 @@
|
||||
%bcond_without imagemagick_tests
|
||||
%endif
|
||||
|
||||
# During texlive updates, sometimes the latex environment is unstable
|
||||
%bcond_without latex_tests
|
||||
|
||||
%global upstream_name Sphinx
|
||||
|
||||
Name: python-sphinx
|
||||
%global general_version 2.2.2
|
||||
%global general_version 3.4.3
|
||||
#global prerel ...
|
||||
%global upstream_version %{general_version}%{?prerel}
|
||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||
@@ -42,26 +47,12 @@ Patch1: sphinx-test_theming.diff
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
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
|
||||
BuildRequires: make
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
||||
%if %{with websupport}
|
||||
BuildRequires: python3-sphinxcontrib-websupport
|
||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-websupport
|
||||
%endif
|
||||
|
||||
# for fixes
|
||||
@@ -69,13 +60,9 @@ BuildRequires: dos2unix
|
||||
|
||||
%if %{with tests}
|
||||
# tests import _testcapi
|
||||
BuildRequires: python3-test
|
||||
|
||||
BuildRequires: python3-html5lib
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-snowballstemmer
|
||||
BuildRequires: python%{python3_pkgversion}-test
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gettext
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: texinfo
|
||||
@@ -84,6 +71,7 @@ BuildRequires: texinfo
|
||||
BuildRequires: ImageMagick
|
||||
%endif
|
||||
|
||||
%if %{with latex_tests}
|
||||
BuildRequires: texlive-collection-fontsrecommended
|
||||
BuildRequires: texlive-collection-latex
|
||||
BuildRequires: texlive-dvipng
|
||||
@@ -114,6 +102,7 @@ BuildRequires: tex(upquote.sty)
|
||||
BuildRequires: tex(utf8x.def)
|
||||
BuildRequires: tex(wrapfig.sty)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
@@ -145,28 +134,18 @@ the Python docs:
|
||||
snippets and inclusion of appropriately formatted docstrings.
|
||||
|
||||
|
||||
%package -n python3-sphinx
|
||||
%package -n python%{python3_pkgversion}-sphinx
|
||||
Summary: Python documentation generator
|
||||
|
||||
Recommends: graphviz
|
||||
Recommends: ImageMagick
|
||||
%{?python_provide:%python_provide python3-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: python3-sphinxcontrib-napoleon < 0.3.0
|
||||
Provides: python3-sphinxcontrib-napoleon = %{epoch}:%{version}-%{release}
|
||||
Conflicts: python2-Sphinx < 1:2
|
||||
Conflicts: python2-sphinx < 1:2
|
||||
Provides: python(Sphinx) = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description -n python3-sphinx
|
||||
%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
|
||||
consisting of multiple reStructuredText sources), written by Georg
|
||||
@@ -195,10 +174,10 @@ the Python docs:
|
||||
snippets and inclusion of appropriately formatted docstrings.
|
||||
|
||||
|
||||
%package -n python3-sphinx-latex
|
||||
Summary: LaTeX builder dependencies for python3-sphinx
|
||||
%package -n python%{python3_pkgversion}-sphinx-latex
|
||||
Summary: LaTeX builder dependencies for python%{python3_pkgversion}-sphinx
|
||||
|
||||
Requires: python3-sphinx = %{epoch}:%{version}-%{release}
|
||||
Requires: python%{python3_pkgversion}-sphinx = %{epoch}:%{version}-%{release}
|
||||
Requires: texlive-collection-fontsrecommended
|
||||
Requires: texlive-collection-latex
|
||||
Requires: texlive-dvipng
|
||||
@@ -229,13 +208,10 @@ Requires: tex(upquote.sty)
|
||||
Requires: tex(utf8x.def)
|
||||
Requires: tex(wrapfig.sty)
|
||||
|
||||
%{?python_provide:%python_provide python3-sphinx-latex}
|
||||
# No files in this package, automatic provides don't work:
|
||||
%py_provides python%{python3_pkgversion}-sphinx-latex
|
||||
|
||||
# Remove in F33
|
||||
Obsoletes: python-sphinx-latex < 1:2
|
||||
Provides: python-sphinx-latex = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description -n python3-sphinx-latex
|
||||
%description -n python%{python3_pkgversion}-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
|
||||
@@ -250,7 +226,7 @@ builder.
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
License: BSD
|
||||
Recommends: python3-sphinx = %{epoch}:%{version}-%{release}
|
||||
Recommends: python%{python3_pkgversion}-sphinx = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description doc
|
||||
Sphinx is a tool that makes it easy to create intelligent and
|
||||
@@ -273,13 +249,22 @@ dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
||||
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
|
||||
@@ -288,14 +273,12 @@ popd
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
|
||||
# For backwards compatibility. Remove around Fedora 33 (with care)
|
||||
install -d %{buildroot}%{_libexecdir}/python3-sphinx
|
||||
# For backwards compatibility. Remove with care, if at all
|
||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
||||
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
|
||||
done
|
||||
|
||||
# Clean up non-python files
|
||||
@@ -349,11 +332,8 @@ mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
|
||||
# Currently, all linkcheck tests and test_latex_images need internet
|
||||
%{__python3} -m pytest \
|
||||
%pytest \
|
||||
%if %{without internet}
|
||||
-k "not linkcheck and not test_latex_images" \
|
||||
%endif
|
||||
@@ -361,21 +341,20 @@ export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-sphinx -f sphinx.lang
|
||||
%files -n python%{python3_pkgversion}-sphinx -f sphinx.lang
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGES EXAMPLES README.rst
|
||||
%{_bindir}/sphinx-*
|
||||
%{python3_sitelib}/sphinx/
|
||||
%dir %{python3_sitelib}/sphinxcontrib/
|
||||
%{python3_sitelib}/Sphinx-%{upstream_version}-py%{python3_version}.egg-info/
|
||||
%{_libexecdir}/python3-sphinx/
|
||||
%{python3_sitelib}/Sphinx-%{upstream_version}.dist-info/
|
||||
%dir %{_datadir}/sphinx/
|
||||
%dir %{_datadir}/sphinx/locale
|
||||
%dir %{_datadir}/sphinx/locale/*
|
||||
%{_mandir}/man1/sphinx-*
|
||||
|
||||
|
||||
%files -n python3-sphinx-latex
|
||||
%files -n python%{python3_pkgversion}-sphinx-latex
|
||||
# empty, this is a metapackage
|
||||
|
||||
|
||||
@@ -385,6 +364,45 @@ export PATH=%{buildroot}%{_bindir}:$PATH
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.4.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jan 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 1:3.4.3-1
|
||||
- Update to 3.4.3
|
||||
- Fixes rhbz#1909494
|
||||
|
||||
* Sat Dec 05 2020 Mattia Verga <mattia.verga@protonmail.com> - 1:3.3.1-2
|
||||
- Unset -s from python shebang
|
||||
- Fixes: rhbz#1903763
|
||||
|
||||
* 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
|
||||
|
||||
* Tue Aug 18 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.2.1-1
|
||||
- Update to 3.2.1
|
||||
- Remove compatibility symbolic links from /usr/libexec/
|
||||
- Fixes rhbz#1867294
|
||||
|
||||
* Fri Aug 07 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.1.2-1
|
||||
- Update to 3.1.2
|
||||
- Fixes rhbz#1853901
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 30 2020 Charalampos Stratakis <cstratak@redhat.com> - 1:3.1.1-1
|
||||
- Update to 3.1.1 (#1783776)
|
||||
|
||||
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:2.2.2-4
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1:2.2.2-3
|
||||
- Bootstrap for Python 3.9
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.2.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
2
sources
2
sources
@@ -1 +1 @@
|
||||
SHA512 (Sphinx-2.2.2.tar.gz) = 2aaed5980c6fb3bf1a8b2911bbf5d7b8a2d9356e2e9faad58e9ac93e76f76e0c5f40243774553a719dfe982e5e683821545db56142cd8e3db914e97e363124f1
|
||||
SHA512 (Sphinx-3.4.3.tar.gz) = 2e085e00c722f3aaf34552eefc3842daf5443f7b8a11afa850db1e31ad81d5ff7f579622b91f982b21708fa6379907bac4fe72d42dc05859a3f62c75298facaa
|
||||
|
||||
Reference in New Issue
Block a user