3 DEB_PYTHON_SYSTEM=pysupport
4 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
5 DEB_VENDOR=$(shell dpkg-vendor --query vendor)
7 # Comment this to enable 'make check'
8 DEB_BUILD_OPTIONS=nocheck
10 include /usr/share/cdbs/1/rules/debhelper.mk
11 include /usr/share/cdbs/1/class/autotools.mk
12 include /usr/share/cdbs/1/class/python-distutils.mk
14 DEB_CONFIGURE_EXTRA_FLAGS := \
20 --with-python-installdir=/usr/share/pyshared
22 DEB_DBG_PACKAGES = libguestfs0-dbg
23 DEB_PYTHON_SETUP_CMD := /dev/null
24 #DEB_DH_MAKESHLIBS_ARGS_python-guestfs = -X usr/lib/pyshared
26 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
28 for TEST in ${DEBIAN_SKIP_TEST}; do \
32 touch debian/check-stamp
34 build/guestfish:: debian/check-stamp
37 #install/python-guestfs::
38 # rm -f debian/tmp/usr/lib/python*/*/libguestfsmod.so
39 # for mod in debian/tmp/usr/lib/python*/*/libguestfsmod.so.0.0.0; do \
40 # mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \
44 rm -rf perl/blib/ perl/*.o
45 rm -f src/.pod2text.data
46 rm -f debian/check-stamp