#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

# Common rules
export PYBUILD_NAME=impacket
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# ignore tests/SMB_RPC/test_smbserver.py test until upstream fix py3.13 build.
# ignore tests that import examples/*.py directly: debian/patches/dont-install-
# examples-as-scripts.patch removes setup.py's scripts=, so pybuild never
# copies examples/ into its build tree, breaking these tests there.
export PYBUILD_TEST_ARGS=-m "not remote" --ignore=tests/SMB_RPC/test_smbserver.py --ignore=tests/misc/test_ntfs_read.py --ignore=tests/misc/test_ticketer.py

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	# Drop upstream installed files
	rm -rf debian/python*-impacket/usr/share/doc/impacket

# Don't compress .py file
override_dh_compress:
	dh_compress -X.py
