[Python-modules-commits] r3966 - in packages/python-processing/trunk/debian (5 files)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Sun Dec 16 19:26:12 UTC 2007


    Date: Sunday, December 16, 2007 @ 19:26:12
  Author: morph-guest
Revision: 3966

debug pkg + index.html patching

Added:
  packages/python-processing/trunk/debian/patches/10_fix_index_html.dpatch
Modified:
  packages/python-processing/trunk/debian/changelog
  packages/python-processing/trunk/debian/control
  packages/python-processing/trunk/debian/patches/00list
  packages/python-processing/trunk/debian/rules

Modified: packages/python-processing/trunk/debian/changelog
===================================================================
--- packages/python-processing/trunk/debian/changelog	2007-12-16 16:10:59 UTC (rev 3965)
+++ packages/python-processing/trunk/debian/changelog	2007-12-16 19:26:12 UTC (rev 3966)
@@ -3,8 +3,7 @@
   TO CHECK:
     - should I patch index.html to reflect debian file disposition?
     - install even test/ dir or not? in the doc part, maybe?
-    - I don't compress upstream "doc" dir files in doc, is it ok?
 
   * Initial release (Closes: #454359)
 
- -- Sandro Tosi <matrixhasu at gmail.com>  Thu, 13 Dec 2007 23:02:55 +0100
+ -- Sandro Tosi <matrixhasu at gmail.com>  Sat, 15 Dec 2007 06:25:39 +0100

Modified: packages/python-processing/trunk/debian/control
===================================================================
--- packages/python-processing/trunk/debian/control	2007-12-16 16:10:59 UTC (rev 3965)
+++ packages/python-processing/trunk/debian/control	2007-12-16 19:26:12 UTC (rev 3966)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <matrixhasu at gmail.com>
-Build-Depends: debhelper (>= 5), python-all-dev, python-central (>= 0.5.6), dpatch
+Build-Depends: debhelper (>= 5), python-all-dev, python-support (>= 0.4), dpatch, python-all-dbg
 Standards-Version: 3.7.3
 Homepage: http://developer.berlios.de/projects/pyprocessing
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-processing/trunk/
@@ -14,6 +14,7 @@
 Architecture: any
 Depends: ${python:Depends}, ${misc:Depends}
 XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
 Description: spawning processes mimicking the threading module
  It's a package for the Python language which supports the spawning of
  processes  using  the API  of  the  standard library's  ``threading``
@@ -27,3 +28,26 @@
     ``threading`` are available.
   * A Pool  class makes it easy to  submit tasks to a  pool of worker
     processes.
+
+Package: python-processing-dbg
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-processing (= ${binary:Version}), python-dbg (>= 2.5) | python2.5-dbg
+XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Description: spawning processes mimicking the threading module
+ It's a package for the Python language which supports the spawning of
+ processes  using  the API  of  the  standard library's  ``threading``
+ module. Its features are:
+ .
+  * Objects  can  be transferred  between  processes  using pipes  or
+    multi-producer/multi-consumer queues.
+  * Objects can be shared between processes using a server process or
+    (for simple data) shared memory.
+  * Equivalents   of   all    the   synchronization   primitives   in
+    ``threading`` are available.
+  * A Pool  class makes it easy to  submit tasks to a  pool of worker
+    processes.
+ .
+ This  package  contains the  extension  built  for  the python  debug
+ interpreter.

Modified: packages/python-processing/trunk/debian/patches/00list
===================================================================
--- packages/python-processing/trunk/debian/patches/00list	2007-12-16 16:10:59 UTC (rev 3965)
+++ packages/python-processing/trunk/debian/patches/00list	2007-12-16 19:26:12 UTC (rev 3966)
@@ -1 +1,2 @@
-01_setup.py.dpatch
+01_setup.py
+10_fix_index_html

Added: packages/python-processing/trunk/debian/patches/10_fix_index_html.dpatch
===================================================================
--- packages/python-processing/trunk/debian/patches/10_fix_index_html.dpatch	                        (rev 0)
+++ packages/python-processing/trunk/debian/patches/10_fix_index_html.dpatch	2007-12-16 19:26:12 UTC (rev 3966)
@@ -0,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix_index-html.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad python-processing~/index.html python-processing/index.html
+--- python-processing~/index.html	2007-11-25 16:11:34.000000000 +0100
++++ python-processing/index.html	2007-12-16 19:51:56.983041831 +0100
+@@ -44,11 +44,8 @@
+ <div class="section">
+ <h1><a id="links" name="links">Links</a></h1>
+ <ul class="simple">
+-<li><a class="reference" href="./doc/index.html">Documentation</a></li>
+-<li><a class="reference" href="./INSTALL.txt">Installation instructions</a></li>
+-<li><a class="reference" href="./CHANGES.txt">Changelog</a></li>
+-<li><a class="reference" href="./THANKS.txt">Acknowledgments</a></li>
+-<li><a class="reference" href="./COPYING.txt">BSD Licence</a></li>
++<li><a class="reference" href="/usr/share/doc/python-processing/doc/index.html">Documentation</a></li>
++<li><a class="reference" href="/usr/share/doc/python-processing/THANKS.txt">Acknowledgments</a></li>
+ </ul>
+ <p>The project is hosted at</p>
+ <ul class="simple">


Property changes on: packages/python-processing/trunk/debian/patches/10_fix_index_html.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Modified: packages/python-processing/trunk/debian/rules
===================================================================
--- packages/python-processing/trunk/debian/rules	2007-12-16 16:10:59 UTC (rev 3965)
+++ packages/python-processing/trunk/debian/rules	2007-12-16 19:26:12 UTC (rev 3966)
@@ -3,6 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+PKGNAME:=python-processing
 include /usr/share/dpatch/dpatch.make
 
 PYVERS=$(shell pyversions -rv)
@@ -20,6 +21,7 @@
 
 	for py in $(PYVERS); do  \
 	    python$$py setup.py build; \
+	    python$$py-dbg setup.py build; \
 	done
 
 	# performing tests
@@ -28,7 +30,9 @@
 	set -e ;\
 	for py in $(PYVERS); do  \
 	    PYTHONPATH=$(CURDIR)/build/lib.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py \
-	    /usr/bin/time -v python$$py -c "from processing.test import main; main()";\
+	      /usr/bin/time -v python$$py -c "from processing.test import main; main()";\
+	    PYTHONPATH=$(CURDIR)/build/lib_d.$(DEB_BUILD_ARCH_OS)-$(shell uname -m)-$$py \
+	      /usr/bin/time -v python$$py-dbg -c "from processing.test import main; main()";\
 	done
 endif
 
@@ -52,10 +56,15 @@
 	dh_installdirs
 	
 	for py in $(PYVERS); do  \
-  	    python$$py setup.py install --root=$(CURDIR)/debian/python-processing; \
+  	    python$$py setup.py install --root=$(CURDIR)/debian/$(PKGNAME); \
+  	    python$$py-dbg setup.py install --root=$(CURDIR)/debian/$(PKGNAME)-dbg; \
 	done
 
+	find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.pyc" -print0 | xargs -0 rm -f
+	find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.py" -print0 | xargs -0 rm -f
+	find $(CURDIR)/debian/$(PKGNAME)-dbg -name "*.egg-info" -print0 | xargs -0 rm -f
 
+
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.
@@ -66,11 +75,12 @@
 	dh_testroot
 	dh_installchangelogs	CHANGES.txt
 	dh_installdocs		README.txt THANKS.txt *.html doc
-	dh_installexamples
-	dh_pycentral
-	dh_link
-	dh_strip
-	dh_compress		-X doc/python-processing/doc
+	dh_installexamples	test/*
+	dh_pysupport
+	dh_strip		-p$(PKGNAME) --dbg-package=$(PKGNAME)-dbg
+	rm -rf debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg
+	ln -s $(PKGNAME) debian/$(PKGNAME)-dbg/usr/share/doc/$(PKGNAME)-dbg
+	dh_compress
 	dh_fixperms
 	dh_installdeb
 	dh_shlibdeps




More information about the Python-modules-commits mailing list