Here are the python-crypt debian/rules

Build-depends include python-all-dbg, depends for the -dbg binary
package are “ python-crypto (= ${Source-Version}), python-dbg,
${shlibs:Depends} ” although it's not really sure python-dbg should be
part of that (it pulls python2.5-dbg; either nothing or a “python-any-
dbg” make more sense).


#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

pyver := $(shell pyversions -vd)
MKHOWTO = /usr/lib/python$(pyver)/doc/tools/mkhowto

common-build-arch::
        cd Doc && $(MKHOWTO) --ps

$(patsubst %,binary-post-install/%,$(DEB_PYTHON_REAL_LIB_PACKAGES)):: 
        sh -e debian/pathmangle.sh /usr/bin/$(shell echo $(cdbs_curpkg) | sed 
's,-crypto$$,,') debian/$(cdbs_curpkg)

build/python-crypto-dbg::
        set -e; \
        for i in $(cdbs_python_build_versions); do \
          python$$i-dbg ./setup.py build; \
        done

install/python-crypto-dbg::
        for i in $(cdbs_python_build_versions); do \
          python$$i-dbg ./setup.py install --root 
$(CURDIR)/debian/python-crypto-dbg; \
        done
        find debian/python-crypto-dbg \
                ! -type d ! -name '*_d.so' | xargs rm -f
        find debian/python-crypto-dbg -depth -empty -exec rmdir {} \;

binary-predeb/python-crypto-dbg::
        rm -rf debian/python-crypto-dbg/usr/share/doc/python-crypto-dbg
        ln -s python-crypto 
debian/python-crypto-dbg/usr/share/doc/python-crypto-dbg

clean::
        rm -rf build
        rm -f Doc/*.ps

-- 
please add support to build python dbg extensions
https://bugs.launchpad.net/bugs/85097
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to