File: rules

package info (click to toggle)
python-crypto 2.6.1-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,044 kB
  • sloc: ansic: 12,466; python: 10,478; sh: 35; makefile: 10
file content (19 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# build with -O3 (as upstream does) if noopt is not set
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
export DEB_CFLAGS_MAINT_APPEND=-O3
endif

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

override_dh_clean:
	# Keep LEGAL/copy/LICENSE.orig
	dh_clean -XLEGAL/copy/LICENSE.orig

override_dh_auto_test-arch:
	dh_auto_test -- -s custom --test-args="{interpreter} setup.py test"

# no test and install for indep
override_dh_auto_install-indep override_dh_auto_test-indep: