| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
include /usr/share/dpkg/architecture.mk |
| 6 |
|
| 7 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 8 |
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH) |
| 9 |
endif |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=meson |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
override_dh_auto_configure: |
| 17 |
$(foreach PYVERSION,$(shell py3versions -s),dh_auto_configure --builddir=obj-$(PYVERSION) -- -Dpython=$(PYVERSION); ) |
| 18 |
|
| 19 |
override_dh_auto_build: |
| 20 |
$(foreach PYVERSION,$(shell py3versions -s),dh_auto_build --builddir=obj-$(PYVERSION) -- ; ) |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
$(foreach PYVERSION,$(shell py3versions -s),dh_auto_install --builddir=obj-$(PYVERSION) -- ; ) |
| 24 |
|
| 25 |
|
| 26 |
override_dh_auto_test-indep: |
| 27 |
|
| 28 |
override_dh_auto_test: |
| 29 |
$(foreach PYVERSION,$(shell py3versions -s),dh_auto_test --builddir=obj-$(PYVERSION) -- ; ) |
| 30 |
|
| 31 |
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 32 |
execute_after_dh_auto_build-indep: |
| 33 |
python3 -m sphinx -bhtml docs debian/tmp-doc/html |
| 34 |
|
| 35 |
sed -ir 's|src="https:[^"]*|src="|' debian/tmp-doc/html/index.html |
| 36 |
endif |
| 37 |
|
| 38 |
execute_after_dh_auto_clean: |
| 39 |
rm -rf debian/tmp-doc |
| 40 |
|
| 41 |
|
| 42 |
override_dh_installchangelogs: |
| 43 |
dh_installchangelogs -Xchangelog |