diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-30 20:31:47 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-30 20:31:47 +0200 |
| commit | 67c86eb63c861e9048c8b712654d65dd86d77330 (patch) | |
| tree | 33aa2bcb1481734920132478d52f6475cc6dc3e2 /debian/rules | |
| parent | 0a53a962ea50141dacd09e0e9f6228233c12e1f1 (diff) | |
| parent | 1d67c8142d295004c894473df5457b8ce9ed6197 (diff) | |
| download | python-apt-67c86eb63c861e9048c8b712654d65dd86d77330.tar.gz | |
Merge 0.7.11.1-0.7.12.0 from unstable.
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 52 |
1 files changed, 11 insertions, 41 deletions
diff --git a/debian/rules b/debian/rules index 967da911..6e2204cf 100755 --- a/debian/rules +++ b/debian/rules @@ -1,50 +1,20 @@ #!/usr/bin/make -f - -DEB_AUTO_CLEANUP_RCS := yes -DEB_PYTHON_SYSTEM=pycentral - export DH_PYCENTRAL=nomove +export DEBVER=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') +export CFLAGS=-Wno-write-strings -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 - -# Add python3 versions to the list of python versions -cdbs_python_build_versions += $(shell find /usr/bin/python3.? | sed s/.*python//) - +%: + dh --with python-central $@ -DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p') -DEB_COMPRESS_EXCLUDE:=.html .js _static/* _sources/* _sources/*/* .inv -DEB_PYTHON_INSTALL_ARGS_ALL=--no-compile --install-layout=deb - -# Define COMPAT_0_7 to get all the deprecated interfaces. -export CFLAGS+=-DCOMPAT_0_7 -Wno-write-strings -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 \ - $(DEB_PYTHON_INSTALL_ARGS_ALL); \ - 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:: +override_dh_installdocs: + dh_installdocs ln -sf ../../../../javascript/jquery/jquery.js \ debian/python-apt/usr/share/doc/python-apt/html/_static/jquery.js - -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* build +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 |
