3 %bcond_with tests # unit tests (failing?)
5 Summary: Sphinx extension which renders display math in HTML with JavaScript
6 Summary(pl.UTF-8): Rozszerzenie Sphinksa tworzące wyświetlanie wzorów matematycznych w HTML przy użyciu JavaScriptu
7 Name: python3-sphinxcontrib-jsmath
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/sphinxcontrib-jsmath/
13 Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-%{version}.tar.gz
14 # Source0-md5: e45179f0a3608b6766862e0f34c23b62
15 URL: https://pypi.org/project/sphinxcontrib-jsmath/
16 BuildRequires: python3-modules >= 1:3.5
17 BuildRequires: python3-setuptools
19 BuildRequires: python3-Sphinx
20 BuildRequires: python3-pytest
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.714
24 Requires: python3-modules >= 1:3.5
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 sphinxcontrib-jsmath is a Sphinx extension which renders display math
30 in HTML with JavaScript.
32 %description -l pl.UTF-8
33 sphinxcontrib-jsmath to rozszerzenie Sphinksa, tworzące wyświetlanie
34 wzorów matematycznych w HTML przy użyciu JavaScriptu.
37 %setup -q -n sphinxcontrib-jsmath-%{version}
43 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
44 %{__python3} -m pytest tests
48 rm -rf $RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc CHANGES LICENSE README.rst
58 %{py3_sitescriptdir}/sphinxcontrib/jsmath
59 %{py3_sitescriptdir}/sphinxcontrib_jsmath-%{version}-py*.egg-info
60 %{py3_sitescriptdir}/sphinxcontrib_jsmath-%{version}-py*-nspkg.pth