tags 547864 + patch
thanks

Dear maintainer,

I've prepared an NMU for tilecache (versioned as 2.03-1.2) and
uploaded it to unstable

Regards.
diff -u tilecache-2.03/debian/changelog tilecache-2.03/debian/changelog
--- tilecache-2.03/debian/changelog
+++ tilecache-2.03/debian/changelog
@@ -1,3 +1,16 @@
+tilecache (2.03-1.2) unstable; urgency=low
+
+  * Non-maintainer upload to make the package ready for Python 2.6; thanks to
+    Josselin Mouette for the report; Closes: #547864
+    - debian/control
+      + build-depends on python (>= 2.5.4-1~)
+    - debian/rules
+      + added python.mk inclusion
+      + used $(py_setup_install_args) at install time
+      + used '*-packages' instead of 'site-packages'
+
+ -- Sandro Tosi <[email protected]>  Sun, 11 Oct 2009 21:16:36 +0200
+
 tilecache (2.03-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u tilecache-2.03/debian/control tilecache-2.03/debian/control
--- tilecache-2.03/debian/control
+++ tilecache-2.03/debian/control
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Christopher Schmidt <[email protected]>
 Build-Depends: debhelper (>= 5.0.0)
-Build-Depends-Indep: python (>= 2.1), python-support (>= 0.3), 
+Build-Depends-Indep: python (>= 2.5.4-1~), python-support (>= 0.3), 
                      python-setuptools
 Standards-Version: 3.7.3
 Homepage: http://tilecache.org/
diff -u tilecache-2.03/debian/rules tilecache-2.03/debian/rules
--- tilecache-2.03/debian/rules
+++ tilecache-2.03/debian/rules
@@ -5,6 +5,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/python/python.mk
+
 PREFIX := debian/tilecache
 PYSUPPORT := /usr/share/python-support/tilecache
 
@@ -33,7 +35,7 @@
 	dh_installdirs
 
 	# Add here commands to install the package into debian/tilecache.
-	python ./setup.py install --debian --no-compile --root=$(PREFIX)
+	python ./setup.py install --debian --no-compile --root=$(PREFIX) $(py_setup_install_args)
     
 	# eliminates script-not-executable warning from lintian
 
@@ -55,9 +57,9 @@
 	dh_link
 	dh_compress
 	dh_fixperms
-	chmod +x $(PREFIX)/usr/lib/python*/site-packages/TileCache/Service.py
-	chmod +x $(PREFIX)/usr/lib/python*/site-packages/TileCache/Client.py
-	rm $(PREFIX)/usr/lib/python*/site-packages/TileCache/Caches/S3.py # Suggests python-boto instead.
+	chmod +x $(PREFIX)/usr/lib/python*/*-packages/TileCache/Service.py
+	chmod +x $(PREFIX)/usr/lib/python*/*-packages/TileCache/Client.py
+	rm $(PREFIX)/usr/lib/python*/*-packages/TileCache/Caches/S3.py # Suggests python-boto instead.
 	dh_pysupport
 	dh_installdeb
 	dh_gencontrol

Reply via email to