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-sympy
29 BuildRequires: python3-modules >= 1:3.3
30 BuildRequires: python3-setuptools
32 BuildRequires: python3-Sphinx >= 1.3.1
33 BuildRequires: python3-pytest
34 BuildRequires: python3-six
35 BuildRequires: python3-sympy
38 BuildRequires: rpm-pythonprov
39 BuildRequires: rpmbuild(macros) >= 1.714
40 Requires: python-modules >= 1:2.7
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 texext contains a couple of Sphinx extensions for working with LaTeX
48 %description -l pl.UTF-8
49 texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
52 %package -n python3-texext
53 Summary: Sphinx extensions for working with LaTeX math
54 Summary(pl.UTF-8): Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
55 Group: Libraries/Python
56 Requires: python3-modules >= 1:3.3
58 %description -n python3-texext
59 texext contains a couple of Sphinx extensions for working with LaTeX
62 %description -n python3-texext -l pl.UTF-8
63 texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
67 %setup -q -n texext-%{version}
74 PYTHONPATH=$(pwd)/build-2/lib \
75 %{__python} -m pytest texext/tests
83 PYTHONPATH=$(pwd)/build-2/lib \
84 %{__python3} -m pytest texext/tests
89 rm -rf $RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc LICENSE README.rst
108 %{py_sitescriptdir}/texext
109 %{py_sitescriptdir}/texext-%{version}-py*.egg-info
113 %files -n python3-texext
114 %defattr(644,root,root,755)
115 %doc LICENSE README.rst
116 %{py3_sitescriptdir}/texext
117 %{py3_sitescriptdir}/texext-%{version}-py*.egg-info