[Python-modules-commits] r7576 - in packages/py-sendfile/trunk/debian (control rules)

speijnik-guest at users.alioth.debian.org speijnik-guest at users.alioth.debian.org
Mon Feb 16 07:56:15 UTC 2009


    Date: Monday, February 16, 2009 @ 07:56:14
  Author: speijnik-guest
Revision: 7576

Added -dbg package to debian/control and the respective build targets to debian/rules.

Modified:
  packages/py-sendfile/trunk/debian/control
  packages/py-sendfile/trunk/debian/rules

Modified: packages/py-sendfile/trunk/debian/control
===================================================================
--- packages/py-sendfile/trunk/debian/control	2009-02-16 07:52:52 UTC (rev 7575)
+++ packages/py-sendfile/trunk/debian/control	2009-02-16 07:56:14 UTC (rev 7576)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Stephan Peijnik <debian at sp.or.at>
-Build-Depends: debhelper (>= 5), python-all-dev (>= 2.4), python-setuptools, cdbs, python-central
+Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.4), python-setuptools, cdbs (>= 0.4.43), python-central (>= 0.6), python-all-dbg
 Standards-Version: 3.8.0
 Homepage: http://pypi.python.org/pypi/py-sendfile
 
@@ -14,3 +14,13 @@
 Description: Python interface to sendfile(2)
  python-sendfile provides an interface to sendfile(2) for Python modules
  and applications.
+
+Package: python-sendfile-dbg
+Priority: extra
+Architecture: any
+Depends: python-sendfile (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+Description: Python interface to sendfile(2)
+ python-sendfile provides an interface to sendfile(2) for Python modules
+ and applications.
+ .
+ This package contains the extension built for the Python debug interpreter.
\ No newline at end of file

Modified: packages/py-sendfile/trunk/debian/rules
===================================================================
--- packages/py-sendfile/trunk/debian/rules	2009-02-16 07:52:52 UTC (rev 7575)
+++ packages/py-sendfile/trunk/debian/rules	2009-02-16 07:56:14 UTC (rev 7576)
@@ -15,4 +15,22 @@
 	-rm -rf build py_sendfile.egg-info
 
 get-orig-sources::
-	uscan --force-download --rename --repack
\ No newline at end of file
+	uscan --force-download --rename --repack
+
+build/python-sendfile-dbg::
+	set -e; \
+	for i in $(cdbs_python_build_versions); do \
+	  python$$i-dbg ./setup.py build; \
+	done
+
+install/python-sendfile-dbg::
+	for i in $(cdbs_python_build_versions); do \
+	  python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-sendfile-dbg; \
+	done
+	find debian/python-sendfile-dbg \
+		! -type d ! -name '*_d.so' | xargs rm -f
+	find debian/python-sendfile-dbg -depth -empty -exec rmdir {} \;
+
+binary-predep/python-sendfile-dbg::
+	rm -rf debian/python-sendfile-dbg/usr/share/doc/python-sendfile-dbg
+	ln -s python-sendfile debian/python-sendfile-dbg/usr/share/doc/python-sendfile-dbg
\ No newline at end of file




More information about the Python-modules-commits mailing list