Hi Lars,

the attached patch makes python-licosmamo comply with the new policy
without adding build dependencies nor using debhelper.

Cheers,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           [EMAIL PROTECTED]
`. `'                        [EMAIL PROTECTED]
  `-  Debian GNU/Linux -- The power of freedom
diff -u python-licosmamo-1.0/debian/changelog python-licosmamo-1.0/debian/changelog
--- python-licosmamo-1.0/debian/changelog
+++ python-licosmamo-1.0/debian/changelog
@@ -1,3 +1,15 @@
+python-licosmamo (1.0-1.1) unstable; urgency=low
+
+  * NMU.
+  * Update package for the python transition.
+    + control: depend on python-support.
+    + postinst,prerm: call update-python-modules.
+    + rules: install files in the python-support directory, and install
+      postinst/prerm.
+  * Standards-version is 3.7.2.
+
+ -- Josselin Mouette <[EMAIL PROTECTED]>  Fri, 30 Jun 2006 21:35:02 +0200
+
 python-licosmamo (1.0-1) unstable; urgency=low
 
   * First release of the Debian package.
diff -u python-licosmamo-1.0/debian/control python-licosmamo-1.0/debian/control
--- python-licosmamo-1.0/debian/control
+++ python-licosmamo-1.0/debian/control
@@ -2,10 +2,11 @@
 Maintainer: Lars Wirzenius <[EMAIL PROTECTED]>
 Section: python
 Priority: optional
-Standards-Version: 3.6.2
+Standards-Version: 3.7.2
 
 Package: python-licosmamo
 Architecture: all
+Depends: python-support (>= 0.2)
 Description: random collection of liw's Python modules
  This is a little collection of small modules for Python:
  .
diff -u python-licosmamo-1.0/debian/rules python-licosmamo-1.0/debian/rules
--- python-licosmamo-1.0/debian/rules
+++ python-licosmamo-1.0/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 P = python-licosmamo
-PYTHONS = 2.3 2.4
+instdir=debian/tmp/usr/share/python-support/$P
 
 build:
 
@@ -10,12 +10,10 @@
 binary-indep: build
 	rm -rf debian/tmp
 	install -d debian/tmp/DEBIAN
+	install -m 0755 debian/p* debian/tmp/DEBIAN
 
-	for VER in $(PYTHONS); do \
-	    dir=debian/tmp/usr/lib/python$$VER/site-packages; \
-            install -d $$dir; \
-            install -m 0644 *.py $$dir; \
-            done
+	install -d $(instdir)
+	install -m 0644 *.py $(instdir)
 
 	install -d debian/tmp/usr/share/doc/$P
 	install -m 0644 debian/changelog \
only in patch2:
unchanged:
--- python-licosmamo-1.0.orig/debian/prerm
+++ python-licosmamo-1.0/debian/prerm
@@ -0,0 +1,3 @@
+#! /bin/sh
+set -e
+update-python-modules -c -i python-licosmamo
only in patch2:
unchanged:
--- python-licosmamo-1.0.orig/debian/postinst
+++ python-licosmamo-1.0/debian/postinst
@@ -0,0 +1,5 @@
+#! /bin/sh
+set -e
+if [ "$1" = "configure" ]; then
+  update-python-modules -i python-licosmamo
+fi

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to