From e640c99310bc5be14aa113e95e0f319ee939a569 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 5 Aug 2015 18:48:00 -0400 Subject: [PATCH] Added Python binding installer/deb package --- distros/debian/control | 10 ++++++++++ distros/debian/python-openalpr.install | 1 + src/bindings/python/CMakeLists.txt | 5 ++++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 distros/debian/python-openalpr.install diff --git a/distros/debian/control b/distros/debian/control index 78b8301..91ecc80 100644 --- a/distros/debian/control +++ b/distros/debian/control @@ -69,3 +69,13 @@ Description: Utilities for the 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. + +Package: python-openalpr +Section: libdevel +Architecture: amd64 +Depends: libopenalpr-dev (= ${binary:Version}), ${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 + is the text representation of any license plate characters found in the image. + diff --git a/distros/debian/python-openalpr.install b/distros/debian/python-openalpr.install new file mode 100644 index 0000000..4d43ce6 --- /dev/null +++ b/distros/debian/python-openalpr.install @@ -0,0 +1 @@ +usr/lib/python2.7/dist-packages/openalpr \ No newline at end of file diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index 6466d87..91d4fe5 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -17,4 +17,7 @@ set_target_properties(openalprpy PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION}) TARGET_LINK_LIBRARIES(openalprpy openalpr) -install (TARGETS openalprpy DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) \ No newline at end of file +install (TARGETS openalprpy DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) +install (DIRECTORY openalpr DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/python2.7/dist-packages + USE_SOURCE_PERMISSIONS +)