Skip to content

Commit 52634a7

Browse files
committed
use dh_python2
1 parent 2bf6611 commit 52634a7

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

debian/control

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ Section: libdevel
33
Priority: extra
44
Maintainer: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
55
Uploaders: Arne Bernin <arne@alamut.de>, Yaroslav Halchenko <debian@onerussian.com>, Mark Renouf <mark.renouf@gmail.com>
6-
Build-Depends: debhelper (>= 9), python-support,
7-
cmake, pkg-config, libusb-1.0-0-dev, freeglut3-dev,
8-
libxmu-dev, libxi-dev, python-dev, cython, python-numpy, doxygen
6+
Build-Depends: debhelper (>= 9), cmake, pkg-config,
7+
libusb-1.0-0-dev, freeglut3-dev, libxmu-dev, libxi-dev,
8+
python-all-dev (>= 2.6.6-3~), cython, python-numpy, doxygen
9+
X-Python-Version: 2.7
910
Standards-Version: 3.9.3
1011
Homepage: http://openkinect.org/
1112
Vcs-Git: git://anonscm.debian.org/pkg-exppsy/libfreenect.git
@@ -106,6 +107,7 @@ Description: library for accessing Kinect device -- documentation
106107
Package: python-freenect
107108
Section: python
108109
Architecture: any
110+
Provides: ${python:Provides}
109111
Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends},
110112
libfreenect0.1 (= ${binary:Version}), python-numpy
111113
Suggests: python-matplotlib, python-opencv

debian/rules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export DEB_LDFLAGS_MAINT_APPEND=-Wl,-Bsymbolic-functions -Wl,--as-needed
55
export MA_TRIPLET=`dpkg-architecture -qDEB_HOST_MULTIARCH`
66

77
%:
8-
dh $@
8+
dh $@ --with python2
99

1010
override_dh_auto_configure:
1111
dh_auto_configure -- -DBUILD_PYTHON:Bool=True -DPROJECT_LIBRARY_INSTALL_DIR="lib/$(MA_TRIPLET)"
@@ -25,8 +25,8 @@ override_dh_auto_install:
2525
mv debian/tmp/usr/bin/glpclview debian/tmp/usr/bin/freenect-glpclview
2626
mv debian/tmp/usr/bin/cppview debian/tmp/usr/bin/freenect-cppview
2727

28-
override_dh_pysupport:
29-
dh_pysupport -ppython-freenect
28+
override_dh_python2:
29+
dh_python2 -p python-freenect
3030
if [ -x /usr/bin/dh_numpy ]; then dh_numpy -ppython-freenect; fi
3131

3232
override_dh_installdocs:

0 commit comments

Comments
 (0)