r1699 - in zope.interface/trunk/debian (changelog control rules)
Matthias Klose
doko at alioth.debian.org
Tue Aug 25 18:04:25 UTC 2009
Date: Tuesday, August 25, 2009 @ 18:04:05
Author: doko
Revision: 1699
zope.interface (3.5.1-4) unstable; urgency=low
* Build a python-zope.interface.dbg package.
-- Matthias Klose <doko at debian.org> Tue, 25 Aug 2009 19:40:54 +0200
Modified:
zope.interface/trunk/debian/changelog
zope.interface/trunk/debian/control
zope.interface/trunk/debian/rules
Modified: zope.interface/trunk/debian/changelog
===================================================================
--- zope.interface/trunk/debian/changelog 2009-08-12 09:51:51 UTC (rev 1698)
+++ zope.interface/trunk/debian/changelog 2009-08-25 18:04:05 UTC (rev 1699)
@@ -1,3 +1,9 @@
+zope.interface (3.5.1-4) unstable; urgency=low
+
+ * Build a python-zope.interface.dbg package.
+
+ -- Matthias Klose <doko at debian.org> Tue, 25 Aug 2009 19:40:54 +0200
+
zope.interface (3.5.1-3) unstable; urgency=low
[ Michael Bienia ]
Modified: zope.interface/trunk/debian/control
===================================================================
--- zope.interface/trunk/debian/control 2009-08-12 09:51:51 UTC (rev 1698)
+++ zope.interface/trunk/debian/control 2009-08-25 18:04:05 UTC (rev 1699)
@@ -3,8 +3,8 @@
Priority: extra
Maintainer: Debian/Ubuntu Zope Team <pkg-zope-developers at lists.alioth.debian.org>
Uploaders: Brian Sutherland <brian at vanguardistas.net>, Fabio Tranchitella <kobold at debian.org>
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb
-Standards-Version: 3.8.2
+Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-all-dbg, python-central (>= 0.5.6), python-setuptools (>= 0.6b3), python-van.pydeb
+Standards-Version: 3.8.3
XS-Python-Version: all
XS-Vcs-Svn: svn://svn.debian.org/pkg-zope/zope.interface/trunk
@@ -19,3 +19,17 @@
Description: Zope 3 Interface Infrastructure
This package provides the zope.interface module, which provide interfaces
for Python.
+
+Package: python-zope.interface-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Depends: python-zope.interface (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+Conflicts: python-zopeinterface-dbg
+Replaces: python-zopeinterface-dbg
+Provides: python-zopeinterface-dbg
+Description: Zope 3 Interface Infrastructure (debug extension)
+ This package provides the zope.interface module, which provide interfaces
+ for Python.
+ .
+ This package contains the extension built for the Python debug interpreter.
Modified: zope.interface/trunk/debian/rules
===================================================================
--- zope.interface/trunk/debian/rules 2009-08-12 09:51:51 UTC (rev 1698)
+++ zope.interface/trunk/debian/rules 2009-08-25 18:04:05 UTC (rev 1699)
@@ -2,6 +2,62 @@
include /usr/share/python-van.pydeb/rules_templates/rules.1.mk
+# target overwritten
+build: $(PYVERS:%=build-python%) $(PYVERS:%=build-dbg-python%)
+ touch $@
+build-dbg-python%:
+ dh_testdir
+ python$*-dbg setup.py build
+ touch $@
+
+# target overwritten
+clean:
+ dh_testdir
+ dh_testroot
+ $(MAKE) -f debian/rules $(PYVERS:%=clean-python%)
+ rm -f build-python?.? build-dbg-python?.?
+ rm -rf build
+ rm -rf dist
+ find -iname '*.pyc' -exec rm -f {} \;
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) -f debian/rules $(PYVERS:%=install-python%) $(PYVERS:%=install-dbg-python%)
+
+install-dbg-python%:
+ python$*-dbg setup.py install --no-compile --single-version-externally-managed $(py_setup_install_args) --root=debian/$(package)-dbg --install-data=usr/lib/$(package)
+ find debian/$(package)-dbg
+ find debian/$(package)-dbg ! -type d ! -name '*.so' | xargs rm -f
+ find debian/$(package)-dbg -depth -empty -exec rmdir {} \;
+
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_install
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_link
+ dh_strip
+ dh_strip -p$(package) --dbg-package=$(package)-dbg
+ rm -rf debian/$(package)-dbg/usr/share/doc/$(package)-dbg
+ mkdir -p debian/$(package)-dbg/usr/share/doc
+ ln -sf $(package) debian/$(package)-dbg/usr/share/doc/$(package)-dbg
+ dh_compress
+ dh_fixperms
+ dh_pycentral
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
post-install-python%:
install -D -m 644 src/zope/__init__.py \
debian/$(package)/$(call py_libdir,$*)/zope/__init__.py
More information about the pkg-zope-commits
mailing list