[Python-modules-commits] r12744 - in packages/scipy/trunk/debian (changelog control rules)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Sun Apr 25 16:56:51 UTC 2010


    Date: Sunday, April 25, 2010 @ 16:56:47
  Author: dktrkranz
Revision: 12744

Provide python-scipy-dbg package (Closes: #525329)

Modified:
  packages/scipy/trunk/debian/changelog
  packages/scipy/trunk/debian/control
  packages/scipy/trunk/debian/rules

Modified: packages/scipy/trunk/debian/changelog
===================================================================
--- packages/scipy/trunk/debian/changelog	2010-04-25 13:09:58 UTC (rev 12743)
+++ packages/scipy/trunk/debian/changelog	2010-04-25 16:56:47 UTC (rev 12744)
@@ -1,11 +1,11 @@
-python-scipy (0.7.2-1) UNRELEASED; urgency=low
+python-scipy (0.7.2-1) unstable; urgency=low
 
   * New upstream release.
   * Switch to debhelper 7.
-  * debian/control:
-    - Add myself to Uploaders.
+  * Provide python-scipy-dbg package (Closes: #525329).
+  * Add myself to Uploaders.
 
- -- Luca Falavigna <dktrkranz at debian.org>  Sun, 25 Apr 2010 15:01:58 +0200
+ -- Luca Falavigna <dktrkranz at debian.org>  Sun, 25 Apr 2010 17:21:21 +0200
 
 python-scipy (0.7.1-1) unstable; urgency=low
 

Modified: packages/scipy/trunk/debian/control
===================================================================
--- packages/scipy/trunk/debian/control	2010-04-25 13:09:58 UTC (rev 12743)
+++ packages/scipy/trunk/debian/control	2010-04-25 16:56:47 UTC (rev 12744)
@@ -4,8 +4,9 @@
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Alexandre Fayolle <afayolle at debian.org>, Ondrej Certik <ondrej at certik.cz>, David Cournapeau <cournape at gmail.com>, Luca Falavigna <dktrkranz at debian.org>
 Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.5.4-1~),
- python-central (>= 0.6.7), python-numpy (>= 1:1.2.0), gfortran,
- sharutils, swig, libsuitesparse-dev (>= 3.1.0-3),
+ python-all-dbg (>= 2.5.4-1~), python-central (>= 0.6.7),
+ python-numpy (>= 1:1.2.0), python-numpy-dbg (>= 1:1.2.0),
+ gfortran, sharutils, swig, libsuitesparse-dev (>= 3.1.0-3),
  libblas-dev | libatlas-base-dev, liblapack-dev | libatlas-base-dev
 XS-Python-Version: all
 Standards-Version: 3.8.4
@@ -31,3 +32,21 @@
  equation (ODE) solvers, gradient optimization, genetic algorithms, parallel
  programming tools, an expression-to-C++ compiler for fast execution, and
  others.
+
+Package: python-scipy-dbg
+Section: debug
+Architecture: any
+XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}, python-dbg, ${shlibs:Depends}, ${misc:Depends}, python-scipy (= ${binary:Version}),
+Description: scientific tools for Python - debugging symbols
+ SciPy supplements the popular NumPy module (python-numpy package), gathering a
+ variety of high level science and engineering modules together as a single
+ package.
+ .
+ SciPy is a set of Open Source scientific and numeric tools for Python. It
+ currently supports special functions, integration, ordinary differential
+ equation (ODE) solvers, gradient optimization, genetic algorithms, parallel
+ programming tools, an expression-to-C++ compiler for fast execution, and
+ others.
+ .
+ This package provides debugging symbols for python-scipy.

Modified: packages/scipy/trunk/debian/rules
===================================================================
--- packages/scipy/trunk/debian/rules	2010-04-25 13:09:58 UTC (rev 12743)
+++ packages/scipy/trunk/debian/rules	2010-04-25 16:56:47 UTC (rev 12744)
@@ -24,14 +24,29 @@
 		rm -f $$d/usr/lib/python$$v/*-packages/scipy/LICENSE.txt;\
 		python$$v setup.py clean --all;                          \
 	done
-	rm -fr $(BASE)/python-scipy/usr/lib/python2.*/*-packages/scipy/weave/examples/
+	set -e; for v in $(PYVERS); do                                   \
+		d=$(BASE)/python-scipy-dbg;                              \
+		mkdir -m 755 -p $$d/usr/share/doc/python-scipy-dbg;      \
+		CFLAGS="-g -ggdb" python$$v-dbg setup.py config_fc       \
+					--noarch build;                  \
+		python$$v-dbg setup.py install --prefix $$d/usr          \
+			--no-compile --install-layout=deb;               \
+		rm -f $$d/usr/lib/python$$v/*-packages/scipy/LICENSE.txt;\
+		python$$v-dbg setup.py clean --all;                      \
+	done
+	find debian/python-scipy-dbg ! -type d ! -name '*_d.so' | xargs rm -f
+	find debian/python-scipy-dbg -depth -empty -exec rmdir {} \;
+	rm -fr $(BASE)/python-scipy*/usr/lib/python*/*-packages/scipy/weave/examples/
 
 override_dh_fixperms:
 	dh_fixperms
 	set -e; for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
-		if head -1 $$i | grep -q '^#!' ; then                    \
-	    		chmod +x $$i;                                    \
-		fi ;                                                     \
+		if head -1 $$i | grep -q '^#!' ; then                      \
+	    		chmod +x $$i;                                      \
+		fi ;                                                       \
 	done
 	sed -i '1s|.|#!/usr/bin/python\n&|' $(BASE)/python-scipy/`pycentral pycentraldir python-scipy`/scipy/cluster/tests/vq_test.py
 	sed -i '1s|.|#!/usr/bin/python\n&|' $(BASE)/python-scipy/`pycentral pycentraldir python-scipy`/scipy/stats/tests/test_stats.py
+
+override_dh_strip:
+	dh_strip --dbg-package=python-scipy-dbg




More information about the Python-modules-commits mailing list