Hi,

Attached is the diff for my python-pymetar 0.12-2.1 NMU.

-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org
diff -u python-pymetar-0.12/debian/changelog 
python-pymetar-0.12/debian/changelog
--- python-pymetar-0.12/debian/changelog
+++ python-pymetar-0.12/debian/changelog
@@ -1,3 +1,12 @@
+python-pymetar (0.12-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package to the last python policy (Closes: #373343)
+  * Bump Standards-Version to 3.7.2.
+  * Build for all python versions.
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Sat, 12 Aug 2006 00:40:17 +0200
+
 python-pymetar (0.12-2) unstable; urgency=low
 
   * handle CAVOK tags based on a patch by Gregor Herrmann
diff -u python-pymetar-0.12/debian/control python-pymetar-0.12/debian/control
--- python-pymetar-0.12/debian/control
+++ python-pymetar-0.12/debian/control
@@ -2,12 +2,13 @@
 Section: python
 Priority: optional
 Maintainer: Uli Martens <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.65), python-dev (>= 2.3)
-Standards-Version: 3.6.1
+Build-Depends: debhelper (>= 4.1.65), python-all-dev (>= 2.3), python-support
+Standards-Version: 3.7.2
 
 Package: python-pymetar
 Architecture: all
 Depends: ${python:Depends}
+Provides: ${python:Provides}
 Description: Python interface to METAR reports
  The pymetar Python interface will provide full and easy to use access to the
  METAR reports available from the NOAA (http://www.noaa.gov).
diff -u python-pymetar-0.12/debian/rules python-pymetar-0.12/debian/rules
--- python-pymetar-0.12/debian/rules
+++ python-pymetar-0.12/debian/rules
@@ -3,14 +3,16 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PYTHON=/usr/bin/python2.3
+PYVERS := $(shell pyversions -s | sed -e 's/$(shell pyversions -d)/python/')
 
 build: build-stamp
 build-stamp:
        dh_testdir
 
        ln -fs weather.py bin/pymetar
-       $(PYTHON) setup.py build
+       set -e; \
+       for py in $(PYVERS); do \
+           $$py setup.py build; done
 
        touch build-stamp
 
@@ -19,7 +21,8 @@
        dh_testroot
        rm -f build-stamp
 
-       $(PYTHON) setup.py clean --all
+       for py in $(PYVERS); do \
+           $$py setup.py clean --all; done
        rm -f bin/pymetar
        rm -f *.pyc
 
@@ -31,7 +34,9 @@
        dh_testroot
        dh_clean -k
 
-       $(PYTHON) setup.py install --prefix=`pwd`/debian/python-pymetar/usr
+       set -e; \
+       for py in $(PYVERS); do \
+           $$py setup.py install --prefix=`pwd`/debian/python-pymetar/usr; done
 
        dh_installdocs
        dh_installexamples bin/example.py
@@ -43,7 +48,7 @@
        dh_fixperms
        dh_installdeb
        dh_shlibdeps
-       dh_python
+       dh_pysupport
        dh_gencontrol
        dh_md5sums
        dh_builddeb

Attachment: signature.asc
Description: Digital signature

Reply via email to