[packages/python3-sphinx_rtd_theme] Up to 3.0.2 (python3 only now)

arekm arekm at pld-linux.org
Fri Feb 7 17:02:36 CET 2025


commit 7961f6b6c26a4e4337404d11bffcef6d0035d133
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 7 16:29:43 2025 +0100

    Up to 3.0.2 (python3 only now)

 python-sphinx_rtd_theme-docutils.patch             | 11 ----
 ...rtd_theme.spec => python3-sphinx_rtd_theme.spec | 64 ++--------------------
 2 files changed, 4 insertions(+), 71 deletions(-)
---
diff --git a/python-sphinx_rtd_theme.spec b/python3-sphinx_rtd_theme.spec
similarity index 50%
rename from python-sphinx_rtd_theme.spec
rename to python3-sphinx_rtd_theme.spec
index dc6d7b9..e527fae 100644
--- a/python-sphinx_rtd_theme.spec
+++ b/python3-sphinx_rtd_theme.spec
@@ -1,40 +1,27 @@
 #
 # Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 %bcond_without	tests	# unit tests
 
 %define 	module	sphinx_rtd_theme
 Summary:	ReadTheDocs.org theme for Sphinx
 Summary(pl.UTF-8):	Motyw ReadTheDocs.org dla Sphinksa
-Name:		python-%{module}
-Version:	1.0.0
-Release:	3
+Name:		python3-%{module}
+Version:	3.0.2
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinx_rtd_theme/
 Source0:	https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/%{module}-%{version}.tar.gz
-# Source0-md5:	fdfc7d2e102cb96eca0f6155dde7403e
-Patch0:		%{name}-docutils.patch
+# Source0-md5:	b26e7ff8c3a90817bbc20fb76c530e00
 URL:		https://github.com/snide/sphinx_rtd_theme/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest
-BuildRequires:	python-readthedocs-sphinx-ext
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-pytest
 BuildRequires:	python3-readthedocs-sphinx-ext
 %endif
-%endif
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -46,70 +33,27 @@ This is a mobile-friendly Sphinx theme made for readthedocs.org.
 Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
 wykonany przez readthedocs.org.
 
-%package -n python3-%{module}
-Summary:	ReadTheDocs.org theme for Sphinx
-Summary(pl.UTF-8):	Motyw ReadTheDocs.org dla Sphinksa
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-This is a mobile-friendly Sphinx theme made for readthedocs.org.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet zawiera przyjazny dla urządzeń przenośnych motyw Sphinksa
-wykonany przez readthedocs.org.
-
 %prep
 %setup -q -n %{module}-%{version}
-%patch0 -p1
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python-sphinx_rtd_theme-docutils.patch b/python-sphinx_rtd_theme-docutils.patch
deleted file mode 100644
index ea5f6ef..0000000
--- a/python-sphinx_rtd_theme-docutils.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- sphinx_rtd_theme-1.0.0/setup.py.orig	2021-09-13 21:18:57.000000000 +0200
-+++ sphinx_rtd_theme-1.0.0/setup.py	2022-03-12 10:04:42.605720636 +0100
-@@ -119,7 +119,7 @@ setup(
-     python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
-     install_requires=[
-         'sphinx>=1.6',
--        'docutils<0.18',
-+        'docutils<0.19',
-     ],
-     tests_require=[
-         'pytest',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_rtd_theme.git/commitdiff/7961f6b6c26a4e4337404d11bffcef6d0035d133



More information about the pld-cvs-commit mailing list