[liblas] 02/23: Also build python extension, replaces separate source package.
Bas Couwenberg
sebastic at xs4all.nl
Sat Feb 8 01:30:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository liblas.
commit 8ce02a9c5def64281c85f30fee2a4e8c295085be
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jan 31 01:56:31 2014 +0100
Also build python extension, replaces separate source package.
---
debian/changelog | 1 +
debian/control | 26 ++++++++++++++++++++++++++
debian/python-liblas.install | 1 +
debian/rules | 29 ++++++++++++++++++++++++++---
4 files changed, 54 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 25f2180..08dc201 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ liblas (1.7.0+dfsg-3) UNRELEASED; urgency=low
* Update debian watch file with sepwatch changes,
and handle more common mistakes.
* Refresh boost patch.
+ * Also build python extension, replaces separate source package.
-- Bas Couwenberg <sebastic at xs4all.nl> Fri, 31 Jan 2014 01:37:27 +0100
diff --git a/debian/control b/debian/control
index edf96c3..8336b96 100644
--- a/debian/control
+++ b/debian/control
@@ -13,10 +13,15 @@ Build-Depends:
, libboost-dev
, libboost-program-options-dev
, libboost-thread-dev
+ , python-all-dev (>= 2.6.6-3~)
+Build-Depends-Indep:
+ dh-python
+ , python-setuptools
Standards-Version: 3.9.5
Homepage: http://liblas.org/
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/liblas.git
Vcs-Git: git://anonscm.debian.org/pkg-grass/liblas.git
+X-Python-Version: >= 2.5
Package: liblas2
Architecture: any
@@ -119,3 +124,24 @@ Description: ASPRS LiDAR data translation toolset
.
This package contains the essential toolset to manage LiDAR data:
lasinfo, lasmerge, las2las, las2txt, txt2las, las2ogr.
+
+Package: python-liblas
+Architecture: all
+Section: python
+Depends:
+ ${shlibs:Depends}
+ , ${misc:Depends}
+ , ${python:Depends}
+ , python (>= 2.5) | python-ctypes
+Description: Python module to use the ASPRS LiDAR data translation library
+ libLAS is a C/C++ library for reading and writing ASPRS LAS versions
+ 1.0, 1.1 and 1.2 data. The LAS format is a sequential binary format
+ used to store data from sensors and as intermediate processing storage
+ by some LiDAR-related applications. LiDAR (Light Detection and Ranging)
+ is an optical remote sensing technology that measures properties of
+ scattered light to find range and/or other information of a distant
+ target. The prevalent method to determine distance to an object or
+ surface is to use laser pulses.
+ .
+ This package contains a Python module to use libLAS.
+
diff --git a/debian/python-liblas.install b/debian/python-liblas.install
new file mode 100644
index 0000000..b2cc136
--- /dev/null
+++ b/debian/python-liblas.install
@@ -0,0 +1 @@
+usr/lib/python2*
diff --git a/debian/rules b/debian/rules
index 745f141..81b4b9c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,34 @@
#!/usr/bin/make -f
%:
- dh $@ \
- -Scmake
+ dh $@ --with python2 \
+ --buildsystem cmake
+
+override_dh_auto_clean:
+ dh_auto_clean
+ dh_auto_clean --sourcedirectory $(CURDIR)/python --buildsystem python_distutils
+
+override_dh_clean:
+ dh_clean
+
+ rm -rf $(CURDIR)/README.txt
+ rm -rf $(CURDIR)/python/build
+ rm -rf $(CURDIR)/python/libLAS.egg-info
override_dh_auto_configure:
- dh_auto_configure -Scmake -- \
+ dh_auto_configure --buildsystem cmake -- \
-DWITH_GDAL=TRUE \
-DWITH_GEOTIFF=TRUE \
-DGEOTIFF_INCLUDE_DIR=/usr/include/geotiff
+override_dh_auto_build:
+ dh_auto_build
+ dh_auto_build --sourcedirectory $(CURDIR)/python --buildsystem python_distutils
+
+override_dh_auto_install:
+ dh_auto_install
+ dh_auto_install --sourcedirectory $(CURDIR)/python --buildsystem python_distutils
+
override_dh_install:
dh_install
@@ -18,3 +37,7 @@ override_dh_install:
override_dh_auto_test:
# don't run tests
+
+override_dh_python2:
+ dh_python2 -ppython-liblas $(CURDIR)/python
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/liblas.git
More information about the Pkg-grass-devel
mailing list