[packages/python-tesserocr] update deps; disable tests

glen glen at pld-linux.org
Fri Apr 21 18:37:52 CEST 2017


commit 2002dbb2322ec5ff3e5f781c1bf181cfd9bbb578
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Apr 21 19:37:32 2017 +0300

    update deps; disable tests

 python-tesserocr.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/python-tesserocr.spec b/python-tesserocr.spec
index 07d9533..d0839da 100644
--- a/python-tesserocr.spec
+++ b/python-tesserocr.spec
@@ -1,7 +1,9 @@
 #
+# TODO
+# - tests fail: raise RuntimeError('Failed to initialize API')
+
 # Conditional build:
-%bcond_without	doc	# don't build doc
-%bcond_without	tests	# do not perform "make test"
+%bcond_with	tests	# do not perform "make test"
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -17,16 +19,19 @@ Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 # Source0-md5:	9fb6e8e6d1e1a7a5faa660b12d1b18fa
 URL:		https://github.com/sirfz/tesserocr
-BuildRequires:	python-Cython
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	tesseract-devel >= 3.04
 %if %{with python2}
+BuildRequires:	python-Cython
 BuildRequires:	python-devel
+BuildRequires:	python-pillow
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
+BuildRequires:	python3-Cython
 BuildRequires:	python3-devel
+BuildRequires:	python3-pillow
 BuildRequires:	python3-setuptools
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-tesserocr.git/commitdiff/2002dbb2322ec5ff3e5f781c1bf181cfd9bbb578



More information about the pld-cvs-commit mailing list