| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# export DH_VERBOSE=1 |
| 4 |
|
| 5 |
# DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 6 |
# DPKG_EXPORT_BUILDFLAGS = 1 |
| 7 |
# include /usr/share/dpkg/buildflags.mk |
| 8 |
|
| 9 |
UPSTREAM_GIT := https://github.com/apache/qpid-proton |
| 10 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 11 |
|
| 12 |
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-error=unused-but-set-variable |
| 13 |
|
| 14 |
# This has to be exported to make some magic below work. |
| 15 |
export DH_OPTIONS |
| 16 |
export DH_ALWAYS_EXCLUDE=LICENSE |
| 17 |
export PYBUILD_SYSTEM=cmake |
| 18 |
export PYBUILD_CONFIGURE_ARGS=-DPROTON_DISABLE_RPATH=true -DNOBUILD_RUBY=on \ |
| 19 |
-DSYSINSTALL_BINDINGS=on -DCHECK_SYSINSTALL_PYTHON=false \ |
| 20 |
-DPYTHON_SITEARCH_PACKAGES=/usr/lib/python{version}/dist-packages \ |
| 21 |
-DLIB_INSTALL_DIR=/usr/lib/${DEB_HOST_MULTIARCH} |
| 22 |
export PYBUILD_BUILD_ARGS=all docs |
| 23 |
|
| 24 |
%: |
| 25 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
# TODO enable them when they work again |
| 29 |
|
| 30 |
override_dh_sphinxdoc: |
| 31 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 32 |
PYTHONPATH=. python3 -m sphinx -b html python/docs $(CURDIR)/debian/python-qpid-proton-doc/usr/share/doc/python-qpid-proton-doc/html |
| 33 |
dh_sphinxdoc |
| 34 |
endif |