3
DEB_PYTHON_SYSTEM = pysupport
4
DEB_PYTHON_MODULE_PACKAGES = bzr python-bzrlib
6
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
7
include /usr/share/cdbs/1/rules/debhelper.mk
8
include /usr/share/cdbs/1/class/python-distutils.mk
10
DEB_PYTHON_INSTALL_ARGS_ALL += --install-data=/usr/share
11
DEB_PYTHON_BUILD_ARGS += --executable "/usr/bin/python"
12
DEB_COMPRESS_EXCLUDE += .svg .pdf
14
build/bzr:: debian/stamp-doc
4
dh --with python2 --with quilt --buildsystem=python_distutils $*
20
6
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21
7
CONCURRENCY = BZR_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
10
PYTHON_CURRENT_VERSION = $(shell pyversions -vd)
24
12
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
25
build/bzr:: debian/stamp-selftest
27
debian/stamp-selftest:
13
override_dh_auto_test:
28
14
[ -d debian/bzrhome ] || mkdir debian/bzrhome
30
16
BZR_HOME=debian/bzrhome \
31
17
BZR_PLUGIN_PATH=-site:-user \
32
18
BZR_DISABLE_PLUGINS=launchpad \
33
PYTHONPATH=$(wildcard $(CURDIR)/build/lib.*-$(cdbs_python_current_version)) \
34
$(CURDIR)/build/scripts-$(cdbs_python_current_version)/bzr selftest -v --parallel=fork
19
PYTHONPATH=$(wildcard $(CURDIR)/build/lib.*-$(PYTHON_CURRENT_VERSION)) \
20
$(CURDIR)/build/scripts-$(PYTHON_CURRENT_VERSION)/bzr selftest -v --parallel=fork
23
override_dh_auto_clean:
41
26
rm -rf debian/bzrhome
44
# Install the documentation; since html and txt and intermixed
45
# under doc/, this is handier than trying to do it from bzr-doc.install.
29
override_dh_auto_install:
30
dh_auto_install -- --install-data=/usr/share
34
# Install the documentation; since html and txt and intermixed
35
# under doc/, this is handier than trying to do it from bzr-doc.install.
46
36
for ext in txt html; do \
47
37
( cd doc && find -name "*.$$ext" -print0 ) | \
48
38
xargs -r0 -i'{}' -n1 install -D -m 644 'doc/{}' \
49
39
"debian/bzr-doc/usr/share/doc/bzr/$$ext/{}"; \
51
# Install images as well
41
# Install images as well
52
42
( cd doc && find -name "*.png" -print0 ) | \
53
43
xargs -r0 -i'{}' -n1 install -D -m 644 'doc/{}' \
54
44
"debian/bzr-doc/usr/share/doc/bzr/html/{}"
46
override_dh_auto_build:
51
dh_compress -X.xvg -X.pdf