File: rules

package info (click to toggle)
python-libtrace 1.6+git20180219-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,316 kB
  • sloc: ansic: 7,460; python: 3,472; makefile: 54; sh: 49
file content (28 lines) | stat: -rwxr-xr-x 1,020 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

PY3VERS=$(shell py3versions -sv)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

override_dh_auto_build:
	set -e && for pyvers in $(PY3VERS); do \
		( cd lib/ipp; python$$pyvers ipp-setup.py build ); \
		( cd lib/plt; python$$pyvers plt-setup.py build ); \
		( cd lib/natkit; python$$pyvers natkit-setup.py build ); \
		( cd lib/pldns; python$$pyvers pldns-setup.py build ); \
	done

override_dh_auto_install:
	set -e && for pyvers in $(PY3VERS); do \
		( cd lib/ipp ; python$$pyvers ipp-setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-libtrace ) ; \
		( cd lib/plt ; python$$pyvers plt-setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-libtrace ) ; \
		( cd lib/natkit ; python$$pyvers natkit-setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-libtrace ) ; \
		( cd lib/pldns ; python$$pyvers pldns-setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-libtrace ) ; \
	done