3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Sphinx extensions for working with LaTeX math
8 Summary(pl.UTF-8): Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/texext/
15 Source0: https://files.pythonhosted.org/packages/source/t/texext/texext-%{version}.tar.gz
16 # Source0-md5: a8bf2d509afdbc1307a0e7bfc4bd3eaf
17 URL: https://pypi.org/project/texext/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-Sphinx >= 1.3.1
23 BuildRequires: python-pytest
24 BuildRequires: python-six
25 BuildRequires: python-sphinxtesters
26 BuildRequires: python-sympy
30 BuildRequires: python3-modules >= 1:3.3
31 BuildRequires: python3-setuptools
33 BuildRequires: python3-Sphinx >= 1.3.1
34 BuildRequires: python3-pytest
35 BuildRequires: python3-six
36 BuildRequires: python3-sphinxtesters
37 BuildRequires: python3-sympy
40 BuildRequires: rpm-pythonprov
41 BuildRequires: rpmbuild(macros) >= 1.714
42 Requires: python-modules >= 1:2.7
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 texext contains a couple of Sphinx extensions for working with LaTeX
50 %description -l pl.UTF-8
51 texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
54 %package -n python3-texext
55 Summary: Sphinx extensions for working with LaTeX math
56 Summary(pl.UTF-8): Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
57 Group: Libraries/Python
58 Requires: python3-modules >= 1:3.3
60 %description -n python3-texext
61 texext contains a couple of Sphinx extensions for working with LaTeX
64 %description -n python3-texext -l pl.UTF-8
65 texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
69 %setup -q -n texext-%{version}
76 PYTHONPATH=$(pwd)/build-2/lib \
77 %{__python} -m pytest texext/tests
85 PYTHONPATH=$(pwd)/build-2/lib \
86 %{__python3} -m pytest texext/tests
91 rm -rf $RPM_BUILD_ROOT
104 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc LICENSE README.rst
110 %{py_sitescriptdir}/texext
111 %{py_sitescriptdir}/texext-%{version}-py*.egg-info
115 %files -n python3-texext
116 %defattr(644,root,root,755)
117 %doc LICENSE README.rst
118 %{py3_sitescriptdir}/texext
119 %{py3_sitescriptdir}/texext-%{version}-py*.egg-info