tags 373325 + patch
thanks

Hi,

  Attached is the diff to make python-licosmamo compliant with the last
debian policy. As it's quite intrusive in your previously ...  rather
optimized packaging (I now need such high level tools as debhelper ;p) I
prefer to let you review the patch and not NMUing it.

  Cheers,
-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org
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,10 @@
+python-licosmamo (1.0-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package for the new python policy (closes: #373325).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Fri, 30 Jun 2006 09:53:00 +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,14 @@
 Maintainer: Lars Wirzenius <[EMAIL PROTECTED]>
 Section: python
 Priority: optional
-Standards-Version: 3.6.2
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), 
python-support (>= 0.3)
 
 Package: python-licosmamo
 Architecture: all
+Depends: ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
 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
@@ -3,33 +3,39 @@
+export DH_COMPAT = 5
+
 P = python-licosmamo
-PYTHONS = 2.3 2.4
+PYVERS:=$(shell pyversions -r)
+DEST:=debian/python-licosmamo
 
 build:
 
 binary: binary-arch binary-indep
 
 binary-indep: build
-       rm -rf debian/tmp
-       install -d debian/tmp/DEBIAN
-
-       for VER in $(PYTHONS); do \
-           dir=debian/tmp/usr/lib/python$$VER/site-packages; \
+       rm -rf $(DEST)
+       install -d $(DEST)/DEBIAN
+       
+       for PYVER in $(PYVERS); do \
+           dir=$(DEST)/usr/lib/$$PYVER/site-packages; \
             install -d $$dir; \
             install -m 0644 *.py $$dir; \
             done
-
-       install -d debian/tmp/usr/share/doc/$P
+       
+       install -d $(DEST)/usr/share/doc/$P
        install -m 0644 debian/changelog \
-           debian/tmp/usr/share/doc/$P/changelog.Debian
-       install -m 0644 README debian/tmp/usr/share/doc/$P
-       gzip -9 debian/tmp/usr/share/doc/$P/*
-       install -m 0644 debian/copyright debian/tmp/usr/share/doc/$P
-
-       dpkg-gencontrol -isp
-       chown -R root.root debian/tmp
-       chmod -R o-s,go=u,go-ws debian/tmp
-       dpkg --build debian/tmp ..
+           $(DEST)/usr/share/doc/$P/changelog.Debian
+       install -m 0644 README $(DEST)/usr/share/doc/$P
+       gzip -9 $(DEST)/usr/share/doc/$P/*
+       install -m 0644 debian/copyright $(DEST)/usr/share/doc/$P
+       
+       dh_pysupport
+       dh_python
+       dh_gencontrol
+       
+       chown -R root.root $(DEST)
+       chmod -R o-s,go=u,go-ws $(DEST)
+       dpkg --build $(DEST) ..
 
 binary-arch:
 
 clean:
-       rm -rf debian/files debian/substvars debian/tmp
+       rm -rf debian/files debian/substvars $(DEST)
only in patch2:
unchanged:
--- python-licosmamo-1.0.orig/debian/pycompat
+++ python-licosmamo-1.0/debian/pycompat
@@ -0,0 +1 @@
+2

Attachment: signature.asc
Description: Digital signature

Reply via email to