From bc4fe2af3c77c6ac318b1786ff9c4f23cf005b14 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 5 Aug 2010 15:38:39 -0400 Subject: [PATCH] Import modified version of the Ubuntu dbg patch --- debian/control | 17 ++++++++++++++++- debian/rules | 13 +++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index fdca364..16d0bea 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,8 @@ Source: python-pylibacl Section: python Priority: optional Maintainer: Iustin Pop -Build-Depends: debhelper (>= 7), python (>= 2.3.5-11), python-all-dev (>= 2.3.5-11), +Build-Depends: debhelper (>= 7), + python (>= 2.6.2), python-all-dev (>= 2.6.2), python-all-dbg, python-support (>= 0.6), libacl1-dev, python-setuptools, python-epydoc Standards-Version: 3.8.4 Homepage: http://pylibacl.sourceforge.net/ @@ -15,7 +16,21 @@ Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python:Provides} Replaces: python2.3-pylibacl (<< 0.2.1-3.1), python2.4-pylibacl (<< 0.2.1-3.1) Conflicts: python2.3-pylibacl (<< 0.2.1-3.1), python2.4-pylibacl (<< 0.2.1-3.1) +Suggests: python-pylibacl-dbg Description: module for manipulating POSIX.1e ACLs pylibacl is a Python interface to the libacl library. It allows manipulation of the POSIX.1e-compliant filesystem ACLs present in some operating systems (GNU/Linux included). + +Package: python-pylibacl-dbg +Priority: extra +Section: debug +Architecture: any +Depends: python-pylibacl (= ${binary:Version}), python-dbg, + ${shlibs:Depends}, ${misc:Depends} +Description: module for manipulating POSIX.1e ACLs (debug extension) + pylibacl is a Python interface to the libacl library. It allows + manipulation of the POSIX.1e-compliant filesystem ACLs present + in some operating systems (GNU/Linux included). + . + This package contains the extension built for the Python debug interpreter. diff --git a/debian/rules b/debian/rules index 224b077..0078e48 100755 --- a/debian/rules +++ b/debian/rules @@ -13,11 +13,15 @@ export DH_OPTIONS PYVERS := $(shell pyversions -vr) +PKGROOT=debian/python-pylibacl +DBGROOT=debian/python-pylibacl-dbg + build: $(PYVERS:%=build-python%) build-indep touch $@ build-python%: python$* setup.py build + python$*-dbg setup.py build touch $@ build-indep: @@ -34,9 +38,12 @@ clean: dh_clean install: build $(PYVERS:%=install-python%) + find $(DBGROOT) ! -type d ! -name '*_d.so' | xargs rm -f + find $(DBGROOT) -depth -empty -print0|xargs -r0 rmdir install-python%: - python$* setup.py install --root $(CURDIR)/debian/python-pylibacl + python$* setup.py install --root $(CURDIR)/$(PKGROOT) --install-layout=deb + python$*-dbg setup.py install --root $(CURDIR)/$(DBGROOT) --install-layout=deb # Build architecture-dependent files here. binary-arch: build install @@ -44,7 +51,9 @@ binary-arch: build install dh_testroot dh_installchangelogs dh_installdocs - dh_strip + dh_strip -ppython-pylibacl --dbg-package=python-pylibacl-dbg + rm -rf $(DBGROOT)/usr/share/doc/python-pylibacl-dbg + ln -s python-pylibacl $(DBGROOT)/usr/share/doc/python-pylibacl-dbg dh_compress -X.js dh_fixperms dh_pysupport -- 2.39.5