From f453bd676f0724e0c2afef31920dcd34e6e8784b Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Thu, 5 Aug 2010 13:24:53 -0400 Subject: [PATCH] Import ubuntu patch for #591634 --- debian/control | 18 +++++++++++++++++- debian/rules | 10 ++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index a726f12..21b643e 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,8 @@ Source: python-pyxattr 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-all (>= 2.6.2), python-all-dev (>= 2.6.2), python-all-dbg, python-support (>= 0.6), libattr1-dev, python-setuptools, python-epydoc Standards-Version: 3.8.4 Homepage: http://pyxattr.sourceforge.net/ @@ -15,7 +16,22 @@ Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python:Provides} Replaces: python2.3-pyxattr (<< 0.2.1-1.1), python2.4-pyxattr (<< 0.2.1-1.1) Conflicts: python2.3-pyxattr (<< 0.2.1-1.1), python2.4-pyxattr (<< 0.2.1-1.1) +Suggests: python-pyxattr-dbg Description: module for manipulating filesystem extended attributes pyxattr is a Python interface to the libattr library. It allows manipulation of the filesystem extended attributes present in some operating systems (GNU/Linux included). + +Package: python-pyxattr-dbg +Section: debug +Priority: extra +Architecture: any +Depends: python-pyxattr (= ${binary:Version}), python-dbg, ${shlibs:Depends}, + ${misc:Depends} +Description: module for manipulating filesystem extended attributes (debug extension) + pyxattr is a Python interface to the libattr library. It allows + manipulation of the filesystem extended attributes 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 0bd9539..eb56a54 100755 --- a/debian/rules +++ b/debian/rules @@ -18,6 +18,7 @@ build: $(PYVERS:%=build-python%) build-indep build-python%: python$* setup.py build + python$*-dbg setup.py build touch $@ build-indep: @@ -34,9 +35,12 @@ clean: dh_clean install: build $(PYVERS:%=install-python%) + find debian/python-pyxattr-dbg ! -type d ! -name '*_d.so' | xargs rm -f + find debian/python-pyxattr-dbg -depth -empty -print0 | xargs -r0 rmdir install-python%: - python$* setup.py install --root $(CURDIR)/debian/python-pyxattr + python$* setup.py install --root $(CURDIR)/debian/python-pyxattr --install-layout=deb + python$*-dbg setup.py install --root $(CURDIR)/debian/python-pyxattr-dbg --install-layout=deb # Build architecture-dependent files here. binary-arch: build install @@ -44,7 +48,9 @@ binary-arch: build install dh_testroot dh_installchangelogs dh_installdocs - dh_strip + dh_strip -ppython-pyxattr --dbg-package=python-pyxattr-dbg + rm -rf debian/python-pyxattr-dbg/usr/share/doc/python-pyxattr-dbg + ln -s python-pyxattr debian/python-pyxattr-dbg/usr/share/doc/python-pyxattr-dbg dh_compress -X.js dh_fixperms dh_pysupport -- 2.39.5