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

bernat at users.alioth.debian.org bernat at users.alioth.debian.org
Wed Aug 10 19:51:27 UTC 2011


    Date: Wednesday, August 10, 2011 @ 19:51:25
  Author: bernat
Revision: 18115

Provide a -dbg package.

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

Modified: packages/soya/trunk/debian/changelog
===================================================================
--- packages/soya/trunk/debian/changelog	2011-08-10 17:48:14 UTC (rev 18114)
+++ packages/soya/trunk/debian/changelog	2011-08-10 19:51:25 UTC (rev 18115)
@@ -1,3 +1,9 @@
+soya (0.15~rc1-6) unstable; urgency=low
+
+  * Provide a -dbg package.
+
+ -- Vincent Bernat <bernat at debian.org>  Wed, 10 Aug 2011 20:17:53 +0200
+
 soya (0.15~rc1-5) unstable; urgency=low
 
   * Also link directly to libGL. Really closes: #626964.

Modified: packages/soya/trunk/debian/control
===================================================================
--- packages/soya/trunk/debian/control	2011-08-10 17:48:14 UTC (rev 18114)
+++ packages/soya/trunk/debian/control	2011-08-10 19:51:25 UTC (rev 18115)
@@ -5,7 +5,7 @@
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
            David Martínez Martí (mainkey) <deavidsedice at gmail.com>
 Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5),
-               python-all-dev (>= 2.6.6-3~),
+               python-all-dev (>= 2.6.6-3~), python-all-dbg,
                libsdl1.2-dev, libcal3d12-dev,
                libglu1-mesa-dev | libglu-dev,
                libfreetype6-dev, libpng12-dev,
@@ -33,3 +33,19 @@
  free (GPL) games of professional quality entirely in Python.
  Soya can also render on PyGame surfaces !
 
+Package: python-soya-dbg
+Architecture: any
+Priority: extra
+Section: debug
+Depends: python-soya (= ${binary:Version}),
+	 ${misc:Depends}, ${shlibs:Depends}
+Recommends: ${python:Depends}
+Description: high level 3D engine for Python - debug extension
+ Soya 3D is a high level 3D engine for Python. It relies on OpenGL and
+ SDL. It is designed with games in mind, and written partly in Python
+ and partly in C; the goal is to provide a full architecture for making
+ free (GPL) games of professional quality entirely in Python.
+ Soya can also render on PyGame surfaces !
+ .
+ This package contains the extensions built for the Python debug
+ interpreter as well as debug symbols.

Modified: packages/soya/trunk/debian/rules
===================================================================
--- packages/soya/trunk/debian/rules	2011-08-10 17:48:14 UTC (rev 18114)
+++ packages/soya/trunk/debian/rules	2011-08-10 19:51:25 UTC (rev 18115)
@@ -1,18 +1,35 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 
+DEB_COMPRESS_EXCLUDE := .py
+DEB_DESTDIR := $(CURDIR)/debian/python-soya/
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-DEB_COMPRESS_EXCLUDE := .py
+# Debug package
+build/python-soya-dbg::
+	set -e; \
+	for i in $(cdbs_python_build_versions); do \
+	  python$$i-dbg ./setup.py build; \
+	done
 
+install/python-soya-dbg::
+	for i in $(cdbs_python_build_versions); do \
+	  python$$i-dbg ./setup.py install --root $(CURDIR)/debian/$(cdbs_curpkg); \
+	done
+	rm -rf $(CURDIR)/debian/$(cdbs_curpkg)/usr/local
+	find debian/$(cdbs_curpkg) \
+	        ! -type d ! -name '*_d.so' | xargs rm -f
+	find debian/$(cdbs_curpkg) -depth -empty -exec rmdir {} \;
+
 install/python-soya::
 	# fix unnecessary versionned shebang
 	sed -i 's/^#! *\/usr\/bin\/python[0-9.]\+/#! \/usr\/bin\/python/' debian/$(cdbs_curpkg)/usr/bin/*
 	# move data to usr/share
-	mv debian/$(cdbs_curpkg)/usr/lib/python$(cdbs_python_current_version)/site-packages/soya/data/* \
+	mv debian/$(cdbs_curpkg)/usr/lib/python$(cdbs_python_current_version)/*-packages/soya/data/* \
 		debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)
-	rm -rf debian/$(cdbs_curpkg)/usr/lib/python*/site-packages/soya/data
+	rm -rf debian/$(cdbs_curpkg)/usr/lib/python*/*-packages/soya/data
 	# avoid font duplication
 	rm debian/$(cdbs_curpkg)/usr/share/python-soya/FreeSans.ttf
 	dh_link -p$(cdbs_curpkg) usr/share/fonts/truetype/freefont/FreeSans.ttf \




More information about the Python-modules-commits mailing list