Package: openalpr Version: 2.2.3-1 Severity: wishlist Tags: patch The python bindings appear to support both python and python3, so it would be nice to have the bindings packaged for both. Please see the attached patch. For completeness, it also fixes #815959 and #815960 the I filed earlier tonight.
Scott K
diff -Nru openalpr-2.2.3/debian/changelog openalpr-2.2.3/debian/changelog --- openalpr-2.2.3/debian/changelog 2016-01-24 17:27:18.000000000 -0500 +++ openalpr-2.2.3/debian/changelog 2016-02-26 00:08:37.000000000 -0500 @@ -1,3 +1,13 @@ +openalpr (2.2.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use dh-python to generate proper depends for python-openalpr (Closes: + #815960) + * Change python-openalpr from arch any to arch all (Closes: #815959) + * Add bindings package for python3, python3-openalpr + + -- Scott Kitterman <sc...@kitterman.com> Thu, 25 Feb 2016 23:25:02 -0500 + openalpr (2.2.3-1) unstable; urgency=low * Changed Debian config to build on all architectures (Closes: #812176) diff -Nru openalpr-2.2.3/debian/control openalpr-2.2.3/debian/control --- openalpr-2.2.3/debian/control 2016-01-24 15:34:14.000000000 -0500 +++ openalpr-2.2.3/debian/control 2016-02-26 00:12:00.000000000 -0500 @@ -4,7 +4,8 @@ Maintainer: Matthew Hill <matth...@openalpr.com> Build-Depends: debhelper (>= 9), git, cmake, quilt, libtesseract-dev, libleptonica-dev, liblog4cplus-dev, - libcurl3-dev, uuid-dev, libopencv-dev, default-jdk + libcurl3-dev, uuid-dev, libopencv-dev, default-jdk, + python, python3, dh-python Standards-Version: 3.9.6 Homepage: https://github.com/openalpr/openalpr Vcs-Browser: https://github.com/openalpr/openalpr @@ -101,8 +102,9 @@ Package: python-openalpr Section: python -Architecture: any -Depends: libopenalpr-dev (= ${binary:Version}), ${misc:Depends} +Architecture: all +Depends: libopenalpr-dev (>= ${source:Version}), (libopenalpr-dev << ${source:Version}.1~), + ${python:Depends}, ${misc:Depends} Description: Python binding for OpenALPR library OpenALPR is an open source Automatic License Plate Recognition library written in C++. The library analyzes images and identifies license plates. The output @@ -110,3 +112,16 @@ . The Python package allows Python code to interface with OpenALPR directly via native Python bindings. + +Package: python3-openalpr +Section: python +Architecture: all +Depends: libopenalpr-dev (>= ${source:Version}), (libopenalpr-dev << ${source:Version}.1~), + ${python3:Depends}, ${misc:Depends} +Description: Python 3 binding for OpenALPR library + OpenALPR is an open source Automatic License Plate Recognition library written + in C++. The library analyzes images and identifies license plates. The output + is the text representation of any license plate characters found in the image. + . + The Python 3 package allows Python 3 code to interface with OpenALPR directly via + native Python 3 bindings. diff -Nru openalpr-2.2.3/debian/rules openalpr-2.2.3/debian/rules --- openalpr-2.2.3/debian/rules 2016-01-24 15:34:14.000000000 -0500 +++ openalpr-2.2.3/debian/rules 2016-02-26 00:06:25.000000000 -0500 @@ -29,7 +29,7 @@ # main packaging script based on dh7 syntax %: - dh $@ --sourcedirectory=src --with quilt + dh $@ --sourcedirectory=src --with quilt,python2,python3 override_dh_auto_configure: dh_auto_configure -- \ @@ -38,6 +38,14 @@ -DCMAKE_VERBOSE_MAKEFILE=OFF \ -DCMAKE_COLOR_MAKEFILE=ON +override_dh_auto_install: + dh_auto_install + cd $(CURDIR)/src/bindings/python ; python3 ./setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-openalpr + +override_dh_auto_clean: + dh_auto_clean + rm -rf $(CURDIR)/src/bindings/python/build + # Inspired by https://wiki.debian.org/onlyjob/get-orig-source .PHONY: get-orig-source get-orig-source: $(TARBALL) $(info I: $(PKG)_$(VER)$(DTYPE))