diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-02-26 14:43:04 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-02-26 14:43:04 +0100 |
| commit | 8e60722c4150cf0164a80406ec1ff06d0c7bc11e (patch) | |
| tree | 8f87f94eacb3b2e8f0ee23f6b8cc23255cb94480 /debian/rules | |
| parent | 1c878fca17aaa7d8300224e1aed0f13066fe3e84 (diff) | |
| download | python-apt-8e60722c4150cf0164a80406ec1ff06d0c7bc11e.tar.gz | |
* merged dokos patch
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 32845c7a..7e837e8b 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,8 @@ DEB_AUTO_CLEANUP_RCS := yes DEB_PYTHON_SYSTEM=pycentral +DEB_PYTHON_PACKAGES_EXCLUDE=python-apt-dbg + # Add here any variable or target overrides you need include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk @@ -14,6 +16,27 @@ DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us arch-build:: rm -rf debian/arch-build mkdir -p debian/arch-build/$(PKG)-$(DEBVER) - tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -) + tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` \ + | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -) (cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG)) +build/python-apt-dbg:: + set -e; \ + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg ./setup.py build; \ + done + +install/python-apt-dbg:: + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-apt-dbg; \ + done + find debian/python-apt-dbg \ + ! -type d ! -name '*_d.so' | xargs rm -f + find debian/python-apt-dbg -depth -empty -exec rmdir {} \; + +binary-predeb/python-apt-dbg:: + rm -rf debian/python-apt-dbg/usr/share/doc/python-apt-dbg + ln -s python-apt debian/python-apt-dbg/usr/share/doc/python-apt-dbg + +clean:: + rm -rf build/lib* build/temp* |
