Debianization patch from upstream.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 3 Oct 2009 23:12:19 +0000 (00:12 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 3 Oct 2009 23:12:19 +0000 (00:12 +0100)
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..5e1e45c
--- /dev/null
@@ -0,0 +1,40 @@
+python-cdb (0.32-5.1) unstable; urgency=low
+
+  * NMU
+  * Build for python2.3 as default python version.
+
+ -- Matthias Klose <doko@debian.org>  Thu, 21 Aug 2003 22:27:06 +0200
+
+python-cdb (0.32-5) unstable; urgency=low
+
+  * Fixed location of cdb module.
+
+ -- Adam D. McKenna <adam@debian.org>  Wed, 11 Sep 2002 17:44:10 -0700
+
+python-cdb (0.32-4) unstable; urgency=low
+
+  * Fixed Depends:, Build-Depends: for new python version in unstable.
+
+ -- Adam D. McKenna <adam@debian.org>  Wed, 11 Sep 2002 17:17:10 -0700
+
+python-cdb (0.32-3) unstable; urgency=low
+
+  * Fixed Build-Depends:.  (Closes: Bug#142623)
+
+ -- Adam D. McKenna <adam@debian.org>  Sat, 13 Apr 2002 00:50:51 -0700
+
+python-cdb (0.32-2) unstable; urgency=low
+
+  * Fixed Depends:.  heh.
+
+ -- Adam D. McKenna <adam@debian.org>  Sun, 24 Mar 2002 02:09:12 -0800
+
+python-cdb (0.32-1) unstable; urgency=low
+
+  * Initial Release. (Closes: Bug#129602, Bug#122505)
+
+ -- Adam D. McKenna <adam@debian.org>  Thu, 31 Jan 2002 14:12:03 -0800
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..e498b23
--- /dev/null
@@ -0,0 +1,18 @@
+Source: python-cdb
+Section: contrib/python
+Priority: optional
+Maintainer: Adam D. McKenna <adam@debian.org>
+Build-Depends: debhelper (>> 3.0.0), python-dev (>= 2.3) | python2.3-dev
+Standards-Version: 3.5.2
+
+Package: python-cdb
+Architecture: any
+Depends: ${python:Depends}
+Description: Python CDB (constant database) library
+ D. J. Bernstein's cdb library adapted as a python extension module. You 
+ probably already know that cdb files are mappings of keys to values (c.f., 
+ dbm and friends), designed for wickedly fast lookups and atomic updates.
+ .
+ This interface presents cdb files as (surprise!) mapping objects with a few 
+ special features. In general, the module tries to mimic the functionality of 
+ the normal cdb utilities.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..93850bd
--- /dev/null
@@ -0,0 +1,16 @@
+This package was debianized by Adam D. McKenna <adam@debian.org> on
+Tue,  4 Dec 2001 22:27:24 -0800.
+
+It was downloaded from http://pilcrow.madison.wi.us/
+
+Upstream Author: Michael J. Pomraning <mjp@pilcrow.madison.wi.us>
+
+COPYRIGHT
+=========
+python-cdb is free software, as is cdb itself.
+
+The extension module is licensed under the GNU GPL version 2 or later,
+and is copyright 2001, 2002 Michael J. Pomraning.  Ancillary files from
+Felix von Leitner's libowfat are also licensed under the GPL.  Finally,
+modifications to D. J. Bernstein's public domain cdb implementation are
+similarly released to the public domain.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..ca882bb
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..6e8144d
--- /dev/null
@@ -0,0 +1,2 @@
+README
+Example
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..2f88883
--- /dev/null
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+
+export DH_COMPAT=3
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+       dh_testdir
+
+       python2.3 setup.py build
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       rm -rf build dist
+
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       python2.3 setup.py install --prefix=debian/python-cdb/usr
+
+binary-indep: build install
+
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs
+       dh_installchangelogs ChangeLog
+       dh_link
+       dh_python
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure