[packages/python-tesserocr] new, version 2.1.3

glen glen at pld-linux.org
Fri Apr 21 16:46:02 CEST 2017


commit 16bee122b83d51633223f561eb0b6b989751cd91
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Apr 21 17:45:37 2017 +0300

    new, version 2.1.3
    
    Created with pyp2rpm-3.2.2

 python-tesserocr.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 98 insertions(+)
---
diff --git a/python-tesserocr.spec b/python-tesserocr.spec
new file mode 100644
index 0000000..187ca93
--- /dev/null
+++ b/python-tesserocr.spec
@@ -0,0 +1,98 @@
+#
+# Conditional build:
+%bcond_without	doc	# don't build doc
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module		tesserocr
+%define 	egg_name	tesserocr
+%define		pypi_name	tesserocr
+Summary:	A simple, Pillow-friendly, Python wrapper around tesseract-ocr API using Cython
+Name:		python-%{pypi_name}
+Version:	2.1.3
+Release:	1
+License:	MIT
+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:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	tesseract-devel >= 3.04
+%if %{with python2}
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tesserocr integrates directly with Tesseract's C++ API using Cython
+which allows for a simple Pythonic and easy-to-read source code. It
+enables real concurrent execution when used with Python's threading
+module by releasing the GIL while processing an image in tesseract.
+
+tesserocr is designed to be Pillow-friendly but can also be used with
+image files instead.
+
+%package -n python3-%{pypi_name}
+Summary:	A simple, Pillow-friendly, Python wrapper around tesseract-ocr API using Cython
+Group:		Libraries/Python
+
+%description -n python3-%{pypi_name}
+tesserocr integrates directly with Tesseract's C++ API using Cython
+which allows for a simple Pythonic and easy-to-read source code. It
+enables real concurrent execution when used with Python's threading
+module by releasing the GIL while processing an image in tesseract.
+
+tesserocr is designed to be Pillow-friendly but can also be used with
+image files instead.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r %{egg_name}.egg-info
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%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 README.rst
+%attr(755,root,root) %{py_sitedir}/%{module}.so
+%{py_sitedir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{py3_sitedir}/%{module}.*.so
+%{py3_sitedir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-tesserocr.git/commitdiff/16bee122b83d51633223f561eb0b6b989751cd91



More information about the pld-cvs-commit mailing list