Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 PYVER := $(shell py3versions -d)
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
7 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
8 export DEB_PYTHON_INSTALL_LAYOUT = deb
9
10 ifneq ($(DEB_BUILD_MULTIARCH),$(DEB_HOST_MULTIARCH))
11 export _PYTHON_HOST_PLATFORM = $(DEB_HOST_GNU_CPU)
12 export _PYTHON_SYSCONFIGDATA_NAME = $(shell basename -s .py /usr/lib/$(PYVER)/_sysconfigdata__*_$(DEB_HOST_MULTIARCH).py)
13 endif
14
15 %:
16 dh $@
17
18 execute_after_dh_clean:
19 rm -rf python/build
20
21 override_dh_autoreconf:
22 dh_autoreconf --as-needed
23
24 override_dh_auto_configure:
25 dh_auto_configure -- \
26 --with-securedir=/usr/lib/$(DEB_HOST_MULTIARCH)/security \
27 --with-python-binary=python3 \
28 --with-python-rev=$(subst python,,$(PYVER)) \
29 --with-pythonsitedir=/usr/lib/$(PYVER)/dist-packages/
30
31 execute_before_dh_install:
32 find debian/tmp -name '*.a' -print -delete
33 find debian/tmp -name '*.la' -print -delete
34
35 override_dh_gnome_clean: