File: rules

package info (click to toggle)
zope.proxy 6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 472 kB
  • sloc: python: 1,677; ansic: 821; makefile: 136; sh: 7
file content (17 lines) | stat: -rwxr-xr-x 463 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=zope.proxy

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd src/zope/; {interpreter} -m unittest -v" dh_auto_test

override_dh_install:
	dh_install
	find debian/python3-zope.proxy -name '*.c' -delete
	for d in debian/python3-zope.proxy/usr/include/python*; do \
		[ "$$d" = *m ] || mv "$$d" "$$d"m; \
	done