r2057 - in sourcecodegen/trunk/debian (changelog rules)

jinty-guest at users.alioth.debian.org jinty-guest at users.alioth.debian.org
Mon Feb 1 10:57:45 UTC 2010


    Date: Monday, February 1, 2010 @ 10:57:42
  Author: jinty-guest
Revision: 2057

Move our tests into the examples directory as they don't allways compile
on all available python versions. This caused installation failures when
some python versions are installed.
(Closes: #552931)

Modified:
  sourcecodegen/trunk/debian/changelog
  sourcecodegen/trunk/debian/rules

Modified: sourcecodegen/trunk/debian/changelog
===================================================================
--- sourcecodegen/trunk/debian/changelog	2010-01-31 17:39:07 UTC (rev 2056)
+++ sourcecodegen/trunk/debian/changelog	2010-02-01 10:57:42 UTC (rev 2057)
@@ -1,3 +1,12 @@
+sourcecodegen (0.6.12-2) unstable; urgency=low
+
+  * Move our tests into the examples directory as they don't allways compile
+    on all available python versions. This caused installation failures when
+    some python versions are installed.
+    (Closes: #552931)
+
+ -- Brian Sutherland <brian at vanguardistas.net>  Mon, 01 Feb 2010 11:53:46 +0100
+
 sourcecodegen (0.6.12-1) unstable; urgency=low
 
   * Initial Packaging.

Modified: sourcecodegen/trunk/debian/rules
===================================================================
--- sourcecodegen/trunk/debian/rules	2010-01-31 17:39:07 UTC (rev 2056)
+++ sourcecodegen/trunk/debian/rules	2010-02-01 10:57:42 UTC (rev 2057)
@@ -1,4 +1,18 @@
 #!/usr/bin/make -f
 
+-include /usr/share/python/python.mk
+PYVERS=$(shell pyversions -vr debian/control)
+
 %:
 	dh --with pydeb --with python-central $@
+
+override_dh_install:
+	$(MAKE) -f debian/rules $(PYVERS:%=fix-install-python%)
+
+fix-install-python%:
+	# Our tests don't allways compile on all available python versions
+	# so we move them into the examples directory.
+	# see http://bugs.debian.org/567427
+	install -d debian/python-sourcecodegen/usr/share/doc/python-sourcecodegen/examples
+	mv debian/python-sourcecodegen$(call py_libdir,$*)/sourcecodegen/tests \
+	   debian/python-sourcecodegen/usr/share/doc/python-sourcecodegen/examples/tests$*




More information about the pkg-zope-developers mailing list