[packages/python3-sphinxcontrib-katex] - updated to 0.9.11 for python 3.9+
qboosh
qboosh at pld-linux.org
Sun Dec 28 19:27:52 CET 2025
commit f95590904a1e6d6d2d7476c33150e3665326dfcc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 28 19:28:25 2025 +0100
- updated to 0.9.11 for python 3.9+
python-sphinxcontrib-katex.spec | 135 ---------------------------------------
python3-sphinxcontrib-katex.spec | 101 +++++++++++++++++++++++++++++
2 files changed, 101 insertions(+), 135 deletions(-)
---
diff --git a/python-sphinxcontrib-katex.spec b/python-sphinxcontrib-katex.spec
deleted file mode 100644
index 09a6328..0000000
--- a/python-sphinxcontrib-katex.spec
+++ /dev/null
@@ -1,135 +0,0 @@
-#
-# Conditional build:
-%bcond_without doc # Sphinx documentation
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-sphinxcontrib-katex.spec; here only sphinx<4 is supported)
-
-Summary: Sphinx extension for rendering math in HTML pages
-Summary(pl.UTF-8): Rozszerzenie Sphinksa do renderowania wzorów matematycznych na stronach HTML
-Name: python-sphinxcontrib-katex
-# keep 0.7.x here for python2 support
-Version: 0.7.2
-Release: 0.1
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinxcontrib-katex/
-Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-katex/sphinxcontrib-katex-%{version}.tar.gz
-# Source0-md5: 03b1c5e42af90ad3aeedb9028812a25a
-URL: https://pypi.org/project/sphinxcontrib-katex/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires: sphinx-pdg-2 >= 1.8
-%endif
-Requires: python-modules >= 1:2.7
-Requires: python-sphinxcontrib
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The extension uses KaTeX for rendering of math in HTML pages. It is
-designed as a replacement for the built-in extension
-sphinx.ext.mathjax, which uses MathJax for rendering.
-
-%description -l pl.UTF-8
-To rozszerzenie wykorzystuje KaTeX do renderowania wzorów
-matematycznych na stronach HTML. Zostało zaprojektowane jako zamiennik
-wbudowanego rozszerzenia sphinx.ext.mathjax, które wykorzystuje do
-renderowania biblioteki MathJax.
-
-%package -n python3-sphinxcontrib-katex
-Summary: Sphinx extension for rendering math in HTML pages
-Summary(pl.UTF-8): Rozszerzenie Sphinksa do renderowania wzorów matematycznych na stronach HTML
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-Requires: python3-sphinxcontrib
-
-%description -n python3-sphinxcontrib-katex
-The extension uses KaTeX for rendering of math in HTML pages. It is
-designed as a replacement for the built-in extension
-sphinx.ext.mathjax, which uses MathJax for rendering.
-
-%description -n python3-sphinxcontrib-katex -l pl.UTF-8
-To rozszerzenie wykorzystuje KaTeX do renderowania wzorów
-matematycznych na stronach HTML. Zostało zaprojektowane jako zamiennik
-wbudowanego rozszerzenia sphinx.ext.mathjax, które wykorzystuje do
-renderowania biblioteki MathJax.
-
-%package apidocs
-Summary: API documentation for Python sphinxcontrib-katex module
-Summary(pl.UTF-8): Dokumentacja API modułu Pythona sphinxcontrib-katex
-Group: Documentation
-
-%description apidocs
-API documentation for Python sphinxcontrib-katex module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona sphinxcontrib-katex.
-
-%prep
-%setup -q -n sphinxcontrib-katex-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%if %{with doc}
-PYTHONPATH=$(pwd) \
-sphinx-build-2 -b html docs docs/_build/html
-%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 NEWS.rst README.rst
-%{py_sitescriptdir}/sphinxcontrib/katex.py[co]
-%{py_sitescriptdir}/sphinxcontrib/katex-math.css
-%{py_sitescriptdir}/sphinxcontrib_katex-%{version}-py*.egg-info
-%{py_sitescriptdir}/sphinxcontrib_katex-%{version}-py*-nspkg.pth
-%endif
-
-%if %{with python3}
-%files -n python3-sphinxcontrib-katex
-%defattr(644,root,root,755)
-%doc LICENSE NEWS.rst README.rst
-%{py3_sitescriptdir}/sphinxcontrib/katex.py
-%{py3_sitescriptdir}/sphinxcontrib/katex-math.css
-%{py3_sitescriptdir}/sphinxcontrib/__pycache__/katex.cpython-*.py[co]
-%{py3_sitescriptdir}/sphinxcontrib_katex-%{version}-py*.egg-info
-%{py3_sitescriptdir}/sphinxcontrib_katex-%{version}-py*-nspkg.pth
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
-%endif
diff --git a/python3-sphinxcontrib-katex.spec b/python3-sphinxcontrib-katex.spec
new file mode 100644
index 0000000..fd4d2d1
--- /dev/null
+++ b/python3-sphinxcontrib-katex.spec
@@ -0,0 +1,101 @@
+#
+# Conditional build:
+%bcond_with doc # Sphinx documentation (requires module already installed)
+%bcond_with tests # unit tests (FIXME: fails to import module without installed package)
+
+Summary: Sphinx extension for rendering math in HTML pages
+Summary(pl.UTF-8): Rozszerzenie Sphinksa do renderowania wzorów matematycznych na stronach HTML
+Name: python3-sphinxcontrib-katex
+Version: 0.9.11
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinxcontrib-katex/
+Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-katex/sphinxcontrib_katex-%{version}.tar.gz
+# Source0-md5: 7883574d79546aeab2f69a85ff397fdf
+URL: https://pypi.org/project/sphinxcontrib-katex/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-setuptools >= 1:45
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-insipid_sphinx_theme
+BuildRequires: python3-sphinxcontrib-katex
+BuildRequires: sphinx-pdg-3 >= 1.8
+%endif
+Requires: python3-modules >= 1:3.9
+Requires: python3-sphinxcontrib
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The extension uses KaTeX for rendering of math in HTML pages. It is
+designed as a replacement for the built-in extension
+sphinx.ext.mathjax, which uses MathJax for rendering.
+
+%description -l pl.UTF-8
+To rozszerzenie wykorzystuje KaTeX do renderowania wzorów
+matematycznych na stronach HTML. Zostało zaprojektowane jako zamiennik
+wbudowanego rozszerzenia sphinx.ext.mathjax, które wykorzystuje do
+renderowania biblioteki MathJax.
+
+%package apidocs
+Summary: API documentation for Python sphinxcontrib-katex module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona sphinxcontrib-katex
+Group: Documentation
+
+%description apidocs
+API documentation for Python sphinxcontrib-katex module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona sphinxcontrib-katex.
+
+%prep
+%setup -q -n sphinxcontrib_katex-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+# remove junk
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/{docs,tests}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/sphinxcontrib/auto-render.min.js
+%{py3_sitescriptdir}/sphinxcontrib/katex.py
+%{py3_sitescriptdir}/sphinxcontrib/katex-math.css
+%{py3_sitescriptdir}/sphinxcontrib/katex-server.js
+%{py3_sitescriptdir}/sphinxcontrib/katex.min.js
+%{py3_sitescriptdir}/sphinxcontrib/__pycache__/katex.cpython-*.py[co]
+%{py3_sitescriptdir}/sphinxcontrib_katex-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinxcontrib-katex.git/commitdiff/f95590904a1e6d6d2d7476c33150e3665326dfcc
More information about the pld-cvs-commit
mailing list