Hello,

I prepared a new revision of simplejson which implements the new Policy
and uploaded to the 3-day DELAYED queue on gluck.

The attached patch is the diff between the current version and the NMU
packaging.

I need simplejson 1.3 for one of my packages, so if you are not against
it I'll prepare another NMU later this week to fix the other 2 bugs it
has.

Thanks,

-- 
Gustavo Noronha Silva <[EMAIL PROTECTED]>
http://people.debian.org/~kov/
diff -urN simplejson-1.1.old/debian/changelog simplejson-1.1/debian/changelog
--- simplejson-1.1.old/debian/changelog	2006-06-20 07:27:04.000000000 -0300
+++ simplejson-1.1/debian/changelog	2006-06-20 07:18:36.000000000 -0300
@@ -1,3 +1,15 @@
+simplejson (1.1-1.1) unstable; urgency=low
+
+  * NMU for the new Python Policy transition (Closes: #373380)
+  * debian/control:
+  - build-depend on the newest versions of cdbs, debhelper, and
+    python-setuptools to conform to the new policy
+  - provides policy headers
+  * debian/rules:
+  - install the files to /usr/share/python-support/python-simplejson
+
+ -- Gustavo Noronha Silva <[EMAIL PROTECTED]>  Tue, 20 Jun 2006 07:18:36 -0300
+
 simplejson (1.1-1) unstable; urgency=low
 
   * Initial release
diff -urN simplejson-1.1.old/debian/compat simplejson-1.1/debian/compat
--- simplejson-1.1.old/debian/compat	2006-06-20 07:27:04.000000000 -0300
+++ simplejson-1.1/debian/compat	2006-06-20 07:16:01.000000000 -0300
@@ -1 +1 @@
-4
+5
diff -urN simplejson-1.1.old/debian/control simplejson-1.1/debian/control
--- simplejson-1.1.old/debian/control	2006-06-20 07:27:04.000000000 -0300
+++ simplejson-1.1/debian/control	2006-06-20 07:19:02.000000000 -0300
@@ -3,11 +3,17 @@
 Priority: optional
 Maintainer: Tommi Virtanen <[EMAIL PROTECTED]>
 Standards-Version: 3.6.2
-Build-Depends-Indep: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), python-setuptools, python2.3-setuptools, python2.4-setuptools
+Build-Depends: cdbs (>= 0.4.42), debhelper (>= 5.0.37.1), python, python-setuptools (>= 0.6b3-1)
+Build-Depends-Indep: python-all-dev (>= 2.3.5-10), python-support (>= 0.2.3)
+XS-Python-Standards-Version: 0.4
+XS-Python-Version: all, >= 2.3
 
 Package: python-simplejson
 Architecture: all
 Depends: ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Replaces: python2.3-simplejson, python2.4-simplejson
+Conflicts: python2.3-simplejson, python2.4-simplejson
 Description: Simple, fast, extensible JSON encoder/decoder for Python
  simplejson is a simple, fast, complete, correct and extensible JSON
  <http://json.org> encoder and decoder. It is pure Python code with no
@@ -19,41 +25,3 @@
  .
  The decoder can handle incoming JSON strings of any specified encoding
  (UTF-8 by default).
- .
- This is a dummy package that depends on the correct version of
- simplejson for the default version of Python.
-
-Package: python2.3-simplejson
-Architecture: all
-Depends: ${python:Depends}
-Description: Simple, fast, extensible JSON encoder/decoder for Python
- simplejson is a simple, fast, complete, correct and extensible JSON
- <http://json.org> encoder and decoder. It is pure Python code with no
- dependencies.
- .
- The encoder may be subclassed to provide serialization in any kind of
- situation, without any special support by the objects to be serialized
- (somewhat like pickle).
- .
- The decoder can handle incoming JSON strings of any specified encoding
- (UTF-8 by default).
- .
- This version is usable with python2.3
-
-Package: python2.4-simplejson
-Architecture: all
-Depends: ${python:Depends}
-Description: Simple, fast, extensible JSON encoder/decoder for Python
- simplejson is a simple, fast, complete, correct and extensible JSON
- <http://json.org> encoder and decoder. It is pure Python code with
- no dependencies.
- .
- The encoder may be subclassed to provide serialization in any kind of
- situation, without any special support by the objects to be serialized
- (somewhat like pickle).
- .
- The decoder can handle incoming JSON strings of any specified encoding
- (UTF-8 by default).
- .
- This version is usable with python2.4
-
diff -urN simplejson-1.1.old/debian/rules simplejson-1.1/debian/rules
--- simplejson-1.1.old/debian/rules	2006-06-20 07:27:04.000000000 -0300
+++ simplejson-1.1/debian/rules	2006-06-20 07:23:56.000000000 -0300
@@ -2,13 +2,21 @@
 # -*- mode: makefile; coding: utf-8 -*-
 # Copyright © 2002,2003 Colin Walters <[EMAIL PROTECTED]>
 
+DEB_PYTHON_SYSTEM := pysupport
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
+UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+PYVER=$(shell pyversions -vr 'current')
+
 DEB_DH_ALWAYS_EXCLUDE := .svn:.git:
-DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
+DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-simplejson
+
+binary-post-install/python-simplejson::
+	mv debian/python-simplejson/usr/share/python-support/python-simplejson/simplejson-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
+	   debian/python-simplejson/usr/share/python-support/python-simplejson/simplejson-${UPSTREAM_VERSION}.egg-info
+	-rm -rf debian/python-simplejson/usr/lib/
 
 clean::
-	find simplejson -name '*.py[co]' -print0 \
-	| xargs -0 rm -f --
 	rm -rf dist simplejson.egg-info

Attachment: signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente

Reply via email to