From b15d85c86cea09060783cd9acd59eb6f08c5e344 Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Fri, 28 Jul 2023 14:39:54 +0800 Subject: [PATCH] Support for sphinx-0.7.x and docutils-0.20.x Signed-off-by: cherry530 <707078654@qq.com> --- ...ort-for-sphinx-0.7.x-and-docutils-0.20.x.patch | 15 +++++++++++++++ python-sphinx_rtd_theme.spec | 14 +++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 Support-for-sphinx-0.7.x-and-docutils-0.20.x.patch diff --git a/Support-for-sphinx-0.7.x-and-docutils-0.20.x.patch b/Support-for-sphinx-0.7.x-and-docutils-0.20.x.patch new file mode 100644 index 0000000..bc1d0f7 --- /dev/null +++ b/Support-for-sphinx-0.7.x-and-docutils-0.20.x.patch @@ -0,0 +1,15 @@ +diff --git a/setup.cfg b/setup.cfg +index afd56e2..01e0e35 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -44,8 +44,8 @@ zip_safe = False + packages = sphinx_rtd_theme + python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* + install_requires = +- sphinx >=1.6,<6 +- docutils <0.18 ++ sphinx >=1.6,<8 ++ docutils <=0.20 + tests_require = + pytest + diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec index d080181..eecd32d 100644 --- a/python-sphinx_rtd_theme.spec +++ b/python-sphinx_rtd_theme.spec @@ -1,11 +1,13 @@ Name: python-sphinx_rtd_theme Summary: Sphinx theme for readthedocs.org Version: 1.1.1 -Release: 1 +Release: 2 License: MIT URL: https://github.com/snide/sphinx_rtd_theme Source0: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz +Patch0: Support-for-sphinx-0.7.x-and-docutils-0.20.x.patch + BuildArch: noarch BuildRequires: python3-devel python3-setuptools python3-sphinx @@ -27,23 +29,21 @@ on both desktop and mobile devices. this theme is used primarily on read the doc with any sphinx project. you can find a working demo of the theme in the theme documentation. %prep -%autosetup -c -p1 +%autosetup -n sphinx_rtd_theme-%{version} -p1 %build -cd sphinx_rtd_theme-%{version} %py3_build %install -pushd sphinx_rtd_theme-%{version} %py3_install -popd %files -n python3-sphinx_rtd_theme -%doc sphinx_rtd_theme-%{version}/README.rst -%license sphinx_rtd_theme-%{version}/LICENSE %{python3_sitelib}/sphinx_rtd_theme* %changelog +* Fri Jul 28 2023 xu_ping <707078654@qq.com> 1.1.1-2 +- Support for sphinx-0.7.x and docutils-0.20.x + * Fri Jun 16 2023 xiaotong 1.1.1-1 - upgrade version to 1.1.1 -- Gitee