File: rules

package info (click to toggle)
python-gssapi 1.6.1-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 744 kB
  • sloc: python: 2,991; makefile: 155; ansic: 27
file content (20 lines) | stat: -rwxr-xr-x 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# PIE currently breaks compilation
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

LDFLAGS += -Wl,--as-needed
CFLAGS += $(CPPFLAGS)

export PYBUILD_NAME=gssapi

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

override_dh_auto_test:
	python3 -c 'import should_be' && python3 setup.py nosetests || true

override_dh_auto_clean:
	find . \( -name \*.pyc -or -name \*.c -or -name \*.so -or -name \*.egg \) -delete