#!/usr/bin/make -f

DISTRO := $(shell lsb_release -si | tr '[:upper:]' '[:lower:]')

%:
	dh $@ --with python2 --buildsystem=python_distutils

override_dh_auto_configure:
	./setup.py configure --qemu-user=libvirt-qemu \
		--preferred-distros=$(DISTRO)

override_dh_python2:
	dh_python2 -O--buildsystem=python_distutils
	dh_python2 -p virtinst usr/share/virt-manager
