[packages/python-texext] - new
qboosh
qboosh at pld-linux.org
Sat Sep 14 07:10:15 CEST 2019
commit 8832f1be03919f547c9689ef74a78da63c44ab53
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 14 07:13:03 2019 +0200
- new
python-texext.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 118 insertions(+)
---
diff --git a/python-texext.spec b/python-texext.spec
new file mode 100644
index 0000000..a773089
--- /dev/null
+++ b/python-texext.spec
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Sphinx extensions for working with LaTeX math
+Summary(pl.UTF-8): Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
+Name: python-texext
+Version: 0.6.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/texext/
+Source0: https://files.pythonhosted.org/packages/source/t/texext/texext-%{version}.tar.gz
+# Source0-md5: a8bf2d509afdbc1307a0e7bfc4bd3eaf
+URL: https://pypi.org/project/texext/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-Sphinx >= 1.3.1
+BuildRequires: python-pytest
+BuildRequires: python-six
+BuildRequires: python-sympy
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 1.3.1
+BuildRequires: python3-pytest
+BuildRequires: python3-six
+BuildRequires: python3-sympy
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+texext contains a couple of Sphinx extensions for working with LaTeX
+math.
+
+%description -l pl.UTF-8
+texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
+matematycznymi.
+
+%package -n python3-texext
+Summary: Sphinx extensions for working with LaTeX math
+Summary(pl.UTF-8): Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.3
+
+%description -n python3-texext
+texext contains a couple of Sphinx extensions for working with LaTeX
+math.
+
+%description -n python3-texext -l pl.UTF-8
+texext zawiera kilka rozszerzeń Sphinksa do pracy z LaTeXowymi wzorami
+matematycznymi.
+
+%prep
+%setup -q -n texext-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/build-2/lib \
+%{__python} -m pytest texext/tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd)/build-2/lib \
+%{__python3} -m pytest texext/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}/texext
+%{py_sitescriptdir}/texext-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-texext
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/texext
+%{py3_sitescriptdir}/texext-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-texext.git/commitdiff/8832f1be03919f547c9689ef74a78da63c44ab53
More information about the pld-cvs-commit
mailing list