[Python-modules-commits] r23302 - in packages/python-dawg/trunk/debian (control rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Mon Jan 14 16:42:52 UTC 2013


    Date: Monday, January 14, 2013 @ 16:42:50
  Author: jwilk
Revision: 23302

Add -dbg packages.

Modified:
  packages/python-dawg/trunk/debian/control
  packages/python-dawg/trunk/debian/rules

Modified: packages/python-dawg/trunk/debian/control
===================================================================
--- packages/python-dawg/trunk/debian/control	2013-01-14 13:35:25 UTC (rev 23301)
+++ packages/python-dawg/trunk/debian/control	2013-01-14 16:42:50 UTC (rev 23302)
@@ -25,9 +25,35 @@
  python-dawg is a Python library for building and accessing dictionaries
  implemented with directed acyclic word graphs (DAWGs).
 
+Package: python-dawg-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, ${shlibs:Depends}, python-dawg (= ${binary:Version})
+Recommends: ${python:Depends}
+Description: Python library for DAWG dictionaries - debug
+ python-dawg is a Python library for building and accessing dictionaries
+ implemented with directed acyclic word graphs (DAWGs).
+ .
+ This package contains the detached debugging symbols and the extensions built
+ for the Python debug interpreter.
+
 Package: python3-dawg
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends}
 Description: Python 3 library for DAWG dictionaries
  python3-dawg is a Python 3 library for building and accessing dictionaries
  implemented with directed acyclic word graphs (DAWGs).
+
+Package: python3-dawg-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, ${shlibs:Depends}, python3-dawg (= ${binary:Version})
+Recommends: ${python3:Depends}
+Description: Python 3 library for DAWG dictionaries - debug
+ python3-dawg is a Python 3 library for building and accessing dictionaries
+ implemented with directed acyclic word graphs (DAWGs).
+ .
+ This package contains the detached debugging symbols and the extensions built
+ for the Python debug interpreter.

Modified: packages/python-dawg/trunk/debian/rules
===================================================================
--- packages/python-dawg/trunk/debian/rules	2013-01-14 13:35:25 UTC (rev 23301)
+++ packages/python-dawg/trunk/debian/rules	2013-01-14 16:42:50 UTC (rev 23302)
@@ -8,8 +8,12 @@
 export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
 
 parallel = -P$(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1)
-pythons = $(shell pyversions -r) $(shell py3versions -r)
-python_all = echo -n $(pythons) | xargs $(parallel) -d ' ' -t -I {} env {}
+python2 = $(shell pyversions -r)
+python3 = $(shell py3versions -r)
+python2d = $(addsuffix -dbg,$(python2))
+python3d = $(addsuffix -dbg,$(python3))
+python_all = $(python2) $(python2d) $(python3) $(python3d)
+loop = echo -n $(1) | xargs $(2) -d ' ' -t -I {} env {} 
 
 # clean
 # =====
@@ -28,9 +32,9 @@
 build build-arch: build/cython-stamp
 	dh_testdir
 	rm -rf lib/
-	$(python_all) setup.py build
+	$(call loop, $(python_all), $(parallel)) setup.py build
 ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
-	$(python_all) debian/run-tests.py
+	$(call loop, $(python_all),) debian/run-tests.py
 endif
 
 build/cython-stamp:
@@ -48,17 +52,19 @@
 	dh_testdir
 	dh_testroot
 	dh_prep
-	$(python_all) setup.py install --prefix=/usr --root=debian/tmp/
-	dh_install -p python-dawg usr/lib/python2*
-	dh_install -p python3-dawg usr/lib/python3*
+	$(call loop, $(python2),) setup.py install --root=debian/python-dawg/
+	$(call loop, $(python2d),) setup.py install --root=debian/python-dawg-dbg/
+	$(call loop, $(python3),) setup.py install --root=debian/python3-dawg/
+	$(call loop, $(python3d),) setup.py install --root=debian/python3-dawg-dbg/
 	dh_installdocs README.rst
 	dh_installchangelogs
 	dh_compress
 	dh_fixperms
-	dh_strip
+	dh_strip -p python-dawg --dbg-package python-dawg-dbg
+	dh_strip -p python3-dawg --dbg-package python3-dawg-dbg
 	dh_shlibdeps
-	dh_python2 -p python-dawg
-	dh_python3 -p python3-dawg
+	dh_python2 -p python-dawg -p python-dawg-dbg
+	dh_python3 -p python3-dawg -p python3-dawg-dbg
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums




More information about the Python-modules-commits mailing list