From: Mark Wooding Date: Sat, 3 Oct 2009 23:12:19 +0000 (+0100) Subject: Debianization patch from upstream. X-Git-Tag: 0.32-5.2~1 X-Git-Url: https://git.distorted.org.uk/~mdw/python-cdb/commitdiff_plain/1a25d7bd1cf936a871b82cba2272e668e61d24ef Debianization patch from upstream. --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5e1e45c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,40 @@ +python-cdb (0.32-5.1) unstable; urgency=low + + * NMU + * Build for python2.3 as default python version. + + -- Matthias Klose Thu, 21 Aug 2003 22:27:06 +0200 + +python-cdb (0.32-5) unstable; urgency=low + + * Fixed location of cdb module. + + -- Adam D. McKenna 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 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 Sat, 13 Apr 2002 00:50:51 -0700 + +python-cdb (0.32-2) unstable; urgency=low + + * Fixed Depends:. heh. + + -- Adam D. McKenna 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 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 index 0000000..e498b23 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: python-cdb +Section: contrib/python +Priority: optional +Maintainer: Adam D. McKenna +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 index 0000000..93850bd --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Adam D. McKenna on +Tue, 4 Dec 2001 22:27:24 -0800. + +It was downloaded from http://pilcrow.madison.wi.us/ + +Upstream Author: Michael J. Pomraning + +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 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..6e8144d --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +Example diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2f88883 --- /dev/null +++ b/debian/rules @@ -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