--- python-couchdb-0.4.orig/debian/manpages +++ python-couchdb-0.4/debian/manpages @@ -0,0 +1,3 @@ +couchdb-dump.1 +couchdb-load.1 +couchpy.1 --- python-couchdb-0.4.orig/debian/dirs +++ python-couchdb-0.4/debian/dirs @@ -0,0 +1 @@ +usr/bin --- python-couchdb-0.4.orig/debian/pycompat +++ python-couchdb-0.4/debian/pycompat @@ -0,0 +1 @@ +2 --- python-couchdb-0.4.orig/debian/copyright +++ python-couchdb-0.4/debian/copyright @@ -0,0 +1,17 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=179 +Upstream-Name: CouchDB +Upstream-Maintainer: Christopher Lenz +Upstream-Source: http://pypi.python.org/pypi/CouchDB + +Files: * +Copyright: Copyright 2007, Christopher Lenz +License: BSD-3 + On Debian systems the full text of the BSD Licence (with no-endorsement clause) + can be found in the `/usr/share/common-licenses/BSD' file. + +Files: debian/* +Copyright: Copyright 2008, Noah Slater +License: GAP + Copying and distribution of this package, with or without modification, are + permitted in any medium without royalty provided the copyright notice and this + notice are preserved. --- python-couchdb-0.4.orig/debian/compat +++ python-couchdb-0.4/debian/compat @@ -0,0 +1 @@ +5 --- python-couchdb-0.4.orig/debian/watch +++ python-couchdb-0.4/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://pypi.python.org/packages/source/C/CouchDB/CouchDB-(.*)\.tar\.gz --- python-couchdb-0.4.orig/debian/changelog +++ python-couchdb-0.4/debian/changelog @@ -0,0 +1,22 @@ +python-couchdb (0.4-1) unstable; urgency=low + + * New upstream release. + * Added python-docutils, python-epydoc and python-pygments to build depends. + * Added API documentation generation to debian/rules. + * Added debian/README.source for upstream source information. + * Updated debian/copyright per latest proposed format. + * Updated Standards-Version to 3.8.0. + + -- Noah Slater Thu, 10 Jul 2008 15:47:33 +0100 + +python-couchdb (0.3-2) unstable; urgency=low + + * Added couchdb Suggests. Closes: #469027 + + -- Noah Slater Tue, 04 Mar 2008 23:20:56 +0000 + +python-couchdb (0.3-1) unstable; urgency=low + + * Initial release. Closes: #447596 + + -- Noah Slater Tue, 12 Feb 2008 21:57:28 +0000 --- python-couchdb-0.4.orig/debian/rules +++ python-couchdb-0.4/debian/rules @@ -0,0 +1,46 @@ +#!/usr/bin/make -f + +# This file is part of the python-couchdb package. + +# Copyright 2008, Noah Slater + +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice and this +# notice are preserved. + +DEB_PYTHON_SYSTEM = pysupport + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_PYTHON_BUILD_ARGS = build_doc + +DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed + +VERSION = __import__('pkg_resources').get_distribution('CouchDB').version + +clean:: + rm -rf *.1 couchdb/tools/__init__.py doc/index.html doc/api + +cleanbuilddir:: + sed -i -e "s/\"$(DEB_UPSTREAM_VERSION)\"/$(VERSION)/" couchdb/__init__.py + +post-patches:: + sed -i -e "s/$(VERSION)/\"$(DEB_UPSTREAM_VERSION)\"/" couchdb/__init__.py + touch couchdb/tools/__init__.py + +install/python-couchdb:: + chmod 755 couchdb-* couchpy + PYTHONPATH=debian/python-couchdb/usr/share/python-support/python-couchdb \ + help2man -N -n "a CouchDB dump utility" ./couchdb-dump > couchdb-dump.1 && \ + help2man -N -n "a CouchDB load utility" ./couchdb-load > couchdb-load.1 && \ + help2man -N -n "a CouchDB Python view server" ./couchpy > couchpy.1 + cp couchdb-dump couchdb-load debian/python-couchdb/usr/bin + cp couchpy debian/python-couchdb/usr/bin/couchpy + +get-orig-source: + uscan --force-download + +.PHONY: get-orig-source --- python-couchdb-0.4.orig/debian/docs +++ python-couchdb-0.4/debian/docs @@ -0,0 +1,3 @@ +doc/index.html +doc/api +README.txt --- python-couchdb-0.4.orig/debian/control +++ python-couchdb-0.4/debian/control @@ -0,0 +1,27 @@ +Source: python-couchdb +Section: python +Priority: optional +Maintainer: Noah Slater +Uploaders: Debian Python Modules Team +Standards-Version: 3.8.0 +Build-Depends: cdbs (>= 0.4.42), debhelper (>= 5.0.37.2), python +Build-Depends-Indep: help2man, python-docutils, python-epydoc, python-httplib2, + python-pygments, python-simplejson, python-setuptools (>= 0.6b3), + python-support (>= 0.6.4) +Homepage: http://pypi.python.org/pypi/CouchDB +Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-couchdb/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-couchdb/trunk/?op=log + +Package: python-couchdb +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, python-httplib2, python-simplejson +Suggests: couchdb +Description: Python library and tools for working with Apache CouchDB + Provides a high-level client interface for Apache CouchDB, a Python view server + and dump and load utilities that can be used as migration tools when upgrading + or moving between databases. + . + Apache CouchDB is a distributed document database system with bi-directional + replication. It makes it simple to build collaborative applications that can + be replicated offline by users, with full interactivity (query, add, update, + delete), and later "synced up" with everyone else's changes when back online. --- python-couchdb-0.4.orig/debian/patches/correct-readme.patch +++ python-couchdb-0.4/debian/patches/correct-readme.patch @@ -0,0 +1,11 @@ +diff -Nur python-couchdb-0.1/README.txt python-couchdb-0.1.new/README.txt +--- python-couchdb-0.1/README.txt 2007-09-23 17:18:26.000000000 +0100 ++++ python-couchdb-0.1.new/README.txt 2007-10-30 00:19:12.000000000 +0000 +@@ -5,5 +5,5 @@ + + + +-Please see the files in the `doc` folder and/or the docstrings in +-the code for documentation. ++Please see the `index.html' file, files under the `api` directory or the ++docstrings in the code for module documentation. --- python-couchdb-0.4.orig/debian/patches/remove-pkg_resources.patch +++ python-couchdb-0.4/debian/patches/remove-pkg_resources.patch @@ -0,0 +1,44 @@ +diff -Nur -x '*.orig' -x '*~' CouchDB-0.4/couchdb-dump CouchDB-0.4.new/couchdb-dump +--- CouchDB-0.4/couchdb-dump 1970-01-01 01:00:00.000000000 +0100 ++++ CouchDB-0.4.new/couchdb-dump 2008-07-03 20:02:56.000000000 +0100 +@@ -0,0 +1,5 @@ ++#!/usr/bin/python ++ ++from couchdb.tools import dump ++ ++dump.main() +diff -Nur -x '*.orig' -x '*~' CouchDB-0.4/couchdb-load CouchDB-0.4.new/couchdb-load +--- CouchDB-0.4/couchdb-load 1970-01-01 01:00:00.000000000 +0100 ++++ CouchDB-0.4.new/couchdb-load 2008-07-03 20:02:56.000000000 +0100 +@@ -0,0 +1,5 @@ ++#!/usr/bin/python ++ ++from couchdb.tools import load ++ ++load.main() +diff -Nur -x '*.orig' -x '*~' CouchDB-0.4/couchpy CouchDB-0.4.new/couchpy +--- CouchDB-0.4/couchpy 1970-01-01 01:00:00.000000000 +0100 ++++ CouchDB-0.4.new/couchpy 2008-07-03 20:02:56.000000000 +0100 +@@ -0,0 +1,5 @@ ++#!/usr/bin/python ++ ++from couchdb import view ++ ++view.main() +diff -Nur -x '*.orig' -x '*~' CouchDB-0.4/setup.py CouchDB-0.4.new/setup.py +--- CouchDB-0.4/setup.py 2008-07-03 20:00:43.000000000 +0100 ++++ CouchDB-0.4.new/setup.py 2008-07-03 20:02:56.000000000 +0100 +@@ -128,13 +128,5 @@ + + install_requires = ['httplib2', 'simplejson'], + +- entry_points = { +- 'console_scripts': [ +- 'couchpy = couchdb.view:main', +- 'couchdb-dump = couchdb.tools.dump:main', +- 'couchdb-load = couchdb.tools.load:main' +- ], +- }, +- + cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} + ) --- python-couchdb-0.4.orig/debian/patches/remove-module-shebang.patch +++ python-couchdb-0.4/debian/patches/remove-module-shebang.patch @@ -0,0 +1,8 @@ +diff -Nur python-couchdb-0.1/couchdb/view.py python-couchdb-0.1.new/couchdb/view.py +--- python-couchdb-0.1/couchdb/view.py 2007-10-23 13:20:15.000000000 +0100 ++++ python-couchdb-0.1.new/couchdb/view.py 2007-10-30 22:38:26.000000000 +0000 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # -*- coding: utf-8 -*- + # + # Copyright (C) 2007 Christopher Lenz