[Python-modules-commits] r869 - in /packages/pastewebkit/trunk/debian: changelog control postinst prerm rules

pox-guest at users.alioth.debian.org pox-guest at users.alioth.debian.org
Fri Jun 16 01:13:44 UTC 2006


Author: pox-guest
Date: Fri Jun 16 01:13:43 2006
New Revision: 869

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=869
Log:
updated for new Python policy

Removed:
    packages/pastewebkit/trunk/debian/postinst
    packages/pastewebkit/trunk/debian/prerm
Modified:
    packages/pastewebkit/trunk/debian/changelog
    packages/pastewebkit/trunk/debian/control
    packages/pastewebkit/trunk/debian/rules

Modified: packages/pastewebkit/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/pastewebkit/trunk/debian/changelog?rev=869&op=diff
==============================================================================
--- packages/pastewebkit/trunk/debian/changelog (original)
+++ packages/pastewebkit/trunk/debian/changelog Fri Jun 16 01:13:43 2006
@@ -1,3 +1,10 @@
+pastewebkit (0.9-3) unstable; urgency=low
+
+  * Update for the new python policy
+  * Convert to python-central
+
+ -- Piotr Ozarowski <ozarow at gmail.com>  Fri, 16 Jun 2006 03:10:36 +0200
+
 pastewebkit (0.9-2) unstable; urgency=low
 
   * Common paste* modules file moved to paste-common package

Modified: packages/pastewebkit/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/pastewebkit/trunk/debian/control?rev=869&op=diff
==============================================================================
--- packages/pastewebkit/trunk/debian/control (original)
+++ packages/pastewebkit/trunk/debian/control Fri Jun 16 01:13:43 2006
@@ -3,13 +3,15 @@
 Priority: optional
 Maintainer: Piotr Ozarowski <ozarow at gmail.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>=5), cdbs (>=0.4.39)
-Build-Depends-Indep: python-dev, python-setuptools (>= 0.6a9-1)
+Build-Depends: debhelper (>= 5.0.37.1)
+Build-Depends-Indep: python (>= 2.3.5-7), python-all-dev, python-central (>= 0.4.10), python-setuptools (>= 0.6b3-1)
 Standards-Version: 3.7.2
+XS-Python-Version: >= 2.4
 
 Package: python-pastewebkit
 Architecture: all
-Depends: python (>= 2.4) | python2.4, python (<<2.5), python-support (>= 0.2.2), python2.4-setuptools (>= 0.6a9-1), paste-common, python-pastescript
+Depends: ${python:Depends}, paste-common, python-paste, python-pastedeploy, python-pastescript, python-setuptools (>= 0.6b3-1)
+XB-Python-Version: ${python:Versions}
 Description: port/reimplementation of Webware WebKit in WSGI and Paste
  This is a reimplementation of the Webware WebKit servlet API. This
  implementation uses WSGI internally very heavily, and builds upon the

Modified: packages/pastewebkit/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pastewebkit/trunk/debian/rules?rev=869&op=diff
==============================================================================
--- packages/pastewebkit/trunk/debian/rules (original)
+++ packages/pastewebkit/trunk/debian/rules Fri Jun 16 01:13:43 2006
@@ -1,17 +1,56 @@
 #!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
 
-# python-distutils before debhelper to avoid it calling dh_python by itself
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
+#export DH_VERBOSE=1
 
-DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
-DEB_PYTHON_INSTALL_ARGS_ALL += --install-lib usr/share/python-support/pastewebkit
-DEB_COMPRESS_EXCLUDE := .py
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
+	| grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
 
-PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
+PYVERS=$(shell pyversions -vr debian/control)
 
-install/python-pastewebkit::
-	echo "2.4-" >debian/python-pastewebkit/usr/share/python-support/pastewebkit/.version
-	mv debian/python-pastewebkit/usr/share/python-support/pastewebkit/PasteWebKit-${DEB_UPSTREAM_VERSION}{-py${PYVER}.egg-info,.egg-info}
-	rm -f debian/python-pastewebkit/usr/share/python-support/pastewebkit/paste/__init__.py
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-*
+	rm -rf dist build
+	find . -name *\.py[co] -exec rm {} \;
+	dh_clean
+
+build: $(PYVERS:%=build-python%)
+	touch $@
+build-python%:
+	python$* setup.py build
+	touch $@
+install: build $(PYVERS:%=install-python%)
+install-python%:
+	python$* setup.py install \
+		--single-version-externally-managed \
+		--root $(CURDIR)/debian/python-pastewebkit
+	# share Egg dir (remove versions from dirname)
+	mv debian/python-pastewebkit/usr/lib/python$*/site-packages/PasteWebKit-${DEB_UPSTREAM_VERSION}{-py$*,}.egg-info
+	# pth file is not needed since all paste* packages are installed in same directory
+	rm -f debian/python-pastewebkit/usr/lib/python$*/site-packages/PasteWebKit-${DEB_UPSTREAM_VERSION}-py$*-nspkg.pth
+	# in paste-common package:
+	rm -f debian/python-pastewebkit/usr/lib/python$*/site-packages/pastewebkit/paste/__init__.py
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs -i
+	dh_installdocs -i
+	dh_installexamples  -i
+	dh_pycentral -i
+	dh_python -i
+	dh_strip -i
+	dh_compress -i -X.py
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install configure




More information about the Python-modules-commits mailing list