summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-19 11:47:27 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-19 11:47:27 +0200
commitf35167305afec76128454fc15fae26b0770a44c8 (patch)
treec31cbb65f8fc911e7947d548d2258908cd2dc7f4 /debian/rules
parentde49263fd994bee687f4c2ceb7cd527f528f991b (diff)
parentaae9d9c7c07c7c078e11d2d8affc88d9eaa51e11 (diff)
downloadpython-apt-f35167305afec76128454fc15fae26b0770a44c8.tar.gz
merge from debian
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules50
1 files changed, 14 insertions, 36 deletions
diff --git a/debian/rules b/debian/rules
index e9917843..4fcdc0c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,42 +1,20 @@
#!/usr/bin/make -f
+export DH_PYCENTRAL=nomove
+export DEBVER=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+export CFLAGS=-Wno-write-strings
-DEB_AUTO_CLEANUP_RCS := yes
-DEB_PYTHON_SYSTEM=pycentral
+%:
+ dh --with python-central $@
-export DH_PYCENTRAL=include-links
-
-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
-
-PKG=python-apt
-DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
-DEB_COMPRESS_EXCLUDE:=.html .js _static/* _sources/* _sources/*/* .inv
-DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
-export DEBVER
-
-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 --install-layout=deb; \
- 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::
- ln -sf ../../../../javascript/jquery/jquery.js debian/python-apt/usr/share/doc/python-apt/html/_static/jquery.js
-
-binary-predeb/python-apt-dbg::
+override_dh_installdocs:
+ dh_installdocs
+ ln -sf ../../../../javascript/jquery/jquery.js \
+ debian/python-apt/usr/share/doc/python-apt/html/_static/jquery.js
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*
+override_dh_strip:
+ dh_strip --dbg-package=python-apt-dbg
+
+override_dh_compress:
+ dh_compress -X.js -X_static/* -X _sources/* -X_sources/*/* -X.inv