diff --git a/debian/control b/debian/control index a9e3f64..736b62d 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Koichi Akabe -Build-Depends: debhelper (>= 9.0.0), python3-all-dev (>= 3.1), libcairo2-dev (>= 1.10.0), python3-sphinx, python3-pytest +Build-Depends: debhelper (>= 9.0.0), python3-all-dev (>= 3.1), python3-all-dbg, libcairo2-dev (>= 1.10.0), python3-sphinx, python3-pytest Standards-Version: 3.9.5 Homepage: http://cairographics.org/pycairo/ X-Python3-Version: >= 3.1 @@ -20,6 +20,17 @@ Description: Python 3 bindings for the Cairo vector graphics library This package contains modules that allow you to use the Cairo in Python 3 programs. +Package: python3-cairo-dbg +Architecture: any +Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends} +Description: Python 3 debug bindings for the Cairo vector graphics library + Cairo is a multi-platform library providing anti-aliased vector-based + rendering for multiple target backends. + . + This package contains modules that allow you to debug the Cairo in + Python 3 programs using debug version of the interpreter. + + Package: python3-cairo-dev Architecture: all Depends: python3-cairo (>= ${binary:Version}), ${misc:Depends} diff --git a/debian/rules b/debian/rules index c17a63b..4c7c91f 100755 --- a/debian/rules +++ b/debian/rules @@ -29,6 +29,10 @@ override_dh_auto_build: PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed configure -v -o $(CURDIR)/build$$pyversion --prefix /usr --nopyc --nopyo; \ echo "building for $$pyversion"; \ PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed build -v -o $(CURDIR)/build$$pyversion; \ + echo "configuring for $$pyversion-dbg"; \ + PYTHON=python$$pyversion-dbg python$$pyversion-dbg $(CURDIR)/waf-uncompressed configure -v -o $(CURDIR)/build$$pyversion-dbg --prefix /usr --nopyc --nopyo; \ + echo "building for $$pyversion-dbg"; \ + PYTHON=python$$pyversion-dbg python$$pyversion-dbg $(CURDIR)/waf-uncompressed build -v -o $(CURDIR)/build$$pyversion-dbg; \ done mkdir -p $(CURDIR)/doc/_build/html cd $(CURDIR)/doc && $(MAKE) html @@ -37,12 +41,14 @@ override_dh_auto_install: for pyversion in $(shell py3versions -vr); do \ cp -p $(CURDIR)/build$$pyversion/.lock-wafbuild .; \ PYTHON=python$$pyversion python$$pyversion $(CURDIR)/waf-uncompressed install -v -o $(CURDIR)/build$$pyversion --destdir $(CURDIR)/debian/tmp; \ + PYTHON=python$$pyversion-dbg python$$pyversion-dbg $(CURDIR)/waf-uncompressed install -v -o $(CURDIR)/build$$pyversion-dbg --destdir $(CURDIR)/debian/python3-cairo-dbg; \ done override_dh_clean: dh_clean for pyversion in $(shell py3versions -vr); \ do rm -rf $(CURDIR)/build$$pyversion; \ + rm -rf $(CURDIR)/build$$pyversion-dbg; \ done rm -rf $(CURDIR)/.waf* $(CURDIR)/.lock* $(CURDIR)/doc/_build $(CURDIR)/test/cairo \ `find $(CURDIR) -name "__pycache__"` \