File: rules

package info (click to toggle)
qpid-proton 0.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,284 kB
  • sloc: ansic: 37,828; cpp: 37,140; python: 15,302; ruby: 6,018; xml: 477; sh: 320; pascal: 52; makefile: 18
file content (32 lines) | stat: -rwxr-xr-x 1,102 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
29
30
31
32
#!/usr/bin/make -f

# export DH_VERBOSE=1

# DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# DPKG_EXPORT_BUILDFLAGS = 1
# include /usr/share/dpkg/buildflags.mk

UPSTREAM_GIT := https://github.com/apache/qpid-proton
include /usr/share/openstack-pkg-tools/pkgos.make

# This has to be exported to make some magic below work.
export DH_OPTIONS
export DH_ALWAYS_EXCLUDE=LICENSE
export PYBUILD_SYSTEM=cmake
export PYBUILD_CONFIGURE_ARGS=-DPROTON_DISABLE_RPATH=true -DNOBUILD_RUBY=on \
	-DSYSINSTALL_BINDINGS=on -DCHECK_SYSINSTALL_PYTHON=false \
	-DPYTHON_SITEARCH_PACKAGES=/usr/lib/python{version}/dist-packages \
	-DLIB_INSTALL_DIR=/usr/lib/${DEB_HOST_MULTIARCH}
export PYBUILD_BUILD_ARGS=all docs

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

override_dh_auto_test:
	# TODO enable them when they work again

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html python/docs $(CURDIR)/debian/python-qpid-proton-doc/usr/share/doc/python-qpid-proton-doc/html
	dh_sphinxdoc -O--buildsystem=python_distutils
endif