--- python-pytc-0.8.orig/debian/changelog +++ python-pytc-0.8/debian/changelog @@ -0,0 +1,17 @@ +python-pytc (0.8-1) unstable; urgency=low + + * New upstream release. + * Add myself to Uploaders. + * Bump Standards-Version to 3.9.1; no changes. + * Rebuild against current tokyocabinet packages; closes: #532198. + * New patch: 10_allow_tcbdb_rangefwm_null_bytes; allows for using \x00 + bytes in TCBDB range searches. + * Upload to unstable. + + -- Robert S. Edmonds Tue, 04 Jan 2011 20:03:22 -0500 + +python-pytc (0.6-2) experimental; urgency=low + + * Initial release (Closes: #508822) + + -- Vernon Tang Tue, 16 Dec 2008 03:44:19 +0800 --- python-pytc-0.8.orig/debian/README.source +++ python-pytc-0.8/debian/README.source @@ -0,0 +1,4 @@ +This package uses quilt as patch system, you can find some information +about it at: + + /usr/share/doc/quilt/README.source --- python-pytc-0.8.orig/debian/pycompat +++ python-pytc-0.8/debian/pycompat @@ -0,0 +1 @@ +2 --- python-pytc-0.8.orig/debian/watch +++ python-pytc-0.8/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://pypi.python.org/packages/source/p/pytc/pytc-(.*)\.tar\.gz --- python-pytc-0.8.orig/debian/python-pytc.install +++ python-pytc-0.8/debian/python-pytc.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/python* --- python-pytc-0.8.orig/debian/control +++ python-pytc-0.8/debian/control @@ -0,0 +1,36 @@ +Source: python-pytc +Section: python +Priority: optional +Maintainer: Vernon Tang +Uploaders: Debian Python Modules Team , + Robert S. Edmonds +Build-Depends: debhelper (>= 7), cdbs (>= 0.4.41), quilt, python-central, + python-all-dev (>= 2.3), python-all-dbg (>= 2.3), libtokyocabinet-dev (>= 1.3.6) +XS-Python-Version: >= 2.3 +Standards-Version: 3.9.1 +Homepage: http://pypi.python.org/pypi/pytc/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-pytc/trunk +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-pytc/trunk + +Package: python-pytc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Python bindings for the Tokyo Cabinet database + This package contains the pytc module, which gives Python programs the + ability to work with Tokyo Cabinet database files. + +Package: python-pytc-dbg +Architecture: any +Section: debug +Priority: extra +Depends: python-pytc (= ${binary:Version}), + ${shlibs:Depends}, ${misc:Depends}, python-dbg +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Python bindings for the Tokyo Cabinet database (debug extension) + This package contains the pytc module, which gives Python programs the + ability to work with Tokyo Cabinet database files. + . + This package contains the extension built for the Python debug interpreter. --- python-pytc-0.8.orig/debian/rules +++ python-pytc-0.8/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pycentral + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +build/python-pytc-dbg:: + set -e; \ + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg setup.py build; \ + done + +install/python-pytc-dbg:: + set -e; \ + for i in $(cdbs_python_build_versions); do \ + python$$i-dbg setup.py install --root $(CURDIR)/debian/python-pytc-dbg $(DEB_PYTHON_INSTALL_ARGS_ALL); \ + done + find debian/python-pytc-dbg ! -type d ! -name '*_d.so' -delete + find debian/python-pytc-dbg -depth -empty -exec rmdir {} \; + +binary-predeb/python-pytc-dbg:: + rm -rf debian/python-pytc-dbg/usr/share/doc/python-pytc-dbg + ln -s python-pytc debian/python-pytc-dbg/usr/share/doc/python-pytc-dbg + +clean:: + rm -rf build --- python-pytc-0.8.orig/debian/compat +++ python-pytc-0.8/debian/compat @@ -0,0 +1 @@ +7 --- python-pytc-0.8.orig/debian/copyright +++ python-pytc-0.8/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Vernon Tang on +Tue, 16 Dec 2008 03:44:19 +0800. + +It was downloaded from http://pypi.python.org/pypi/pytc/ + +Upstream Author: + + Tasuku SUENAGA + +Copyright: + + Copyright (C) 2007 Tasuku SUENAGA + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted under the terms of the BSD License. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +On Debian systems, the complete text of the BSD License can be +found in `/usr/share/common-licenses/BSD'. + + +The Debian packaging is copyright 2008, Vernon Tang and +is licensed under the BSD License, see `/usr/share/common-licenses/BSD'. --- python-pytc-0.8.orig/debian/patches/10_allow_tcbdb_rangefwm_null_bytes +++ python-pytc-0.8/debian/patches/10_allow_tcbdb_rangefwm_null_bytes @@ -0,0 +1,21 @@ +--- orig/pytc-0.8/pytc.c 2008-12-30 11:34:53.000000000 -0500 ++++ python-pytc-0.8/pytc.c 2010-12-23 23:08:31.264929997 -0500 +@@ -1555,14 +1555,15 @@ PyTCBDB_rangefwm(PyTCBDB *self, PyObject + int max; + TCLIST *list; + char *prefix; ++ int prefix_len; + static char *kwlist[] = {"prefix", "max", NULL}; + +- if (!PyArg_ParseTupleAndKeywords(args, keywds, "si:rangefwm", kwlist, +- &prefix, &max)) { ++ if (!PyArg_ParseTupleAndKeywords(args, keywds, "s#i:rangefwm", kwlist, ++ &prefix, &prefix_len, &max)) { + return NULL; + } + Py_BEGIN_ALLOW_THREADS +- list = tcbdbrange3(self->bdb, prefix, max); ++ list = tcbdbfwmkeys(self->bdb, prefix, prefix_len, max); + Py_END_ALLOW_THREADS + + TCLIST2PyList() --- python-pytc-0.8.orig/debian/patches/series +++ python-pytc-0.8/debian/patches/series @@ -0,0 +1 @@ +10_allow_tcbdb_rangefwm_null_bytes --- python-pytc-0.8.orig/debian/source/format +++ python-pytc-0.8/debian/source/format @@ -0,0 +1 @@ +1.0