From 8546fc9dc62bd41d654b875f7d594cd06fa5dcfb Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 4 Oct 2009 00:36:09 +0100 Subject: [PATCH] debian: Switch to CDBS and support Python 2.6. --- .gitignore | 2 +- debian/.gitignore | 6 +++--- debian/changelog | 11 +++++++++-- debian/control | 6 ++++-- debian/rules | 46 +++++----------------------------------------- 5 files changed, 22 insertions(+), 49 deletions(-) diff --git a/.gitignore b/.gitignore index 6fec8e1..a982f44 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,5 @@ build MANIFEST dist mLib.c - COPYING +python-build-stamp-* diff --git a/debian/.gitignore b/debian/.gitignore index 8cc7db2..7905076 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -3,7 +3,7 @@ tmp substvars *.substvars *.debhelper +*.log +compat +pycompat python-mlib -python2.3-mlib -python2.4-mlib - diff --git a/debian/changelog b/debian/changelog index 9865ad9..1363541 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,12 @@ -python-mlib (1.0.0) experimental; urgency=low +mlib-python (1.0.1) experimental; urgency=low + + * Switch to CDBS and support Python 2.6 + * Support (glorious!) mdup function. + + -- Mark Wooding Sun, 04 Oct 2009 00:32:29 +0100 + +mlib-python (1.0.0) experimental; urgency=low * Debianization! - -- Mark Wooding Mon, 23 Jul 2007 16:02:27 +0100 + -- Mark Wooding Sun, 04 Oct 2009 00:31:21 +0100 diff --git a/debian/control b/debian/control index 397b6ff..92313f0 100644 --- a/debian/control +++ b/debian/control @@ -1,13 +1,15 @@ -Source: python-mlib +Source: mlib-python Section: python Priority: extra +XS-Python-Version: >= 2.4, << 2.7 Build-Depends: mlib-dev, python, python-pyrex Maintainer: Mark Wooding -Standards-Version: 3.1.1 +Standards-Version: 3.8.0 Package: python-mlib Architecture: any Depends: ${shlibs:Depends}, ${python:Depends} +XB-Python-Version: ${python:Versions} Description: A library of miscellaneous stuff The mLib library provides various handy utilities, including * yet another options parser, like GNU getopt but more so; diff --git a/debian/rules b/debian/rules index d6450e1..6ebce3c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,45 +1,9 @@ #! /usr/bin/make -f -export DH_COMPAT = 4 +CDBS = /usr/share/cdbs/1 -build: build-stamp +DEB_PYTHON_SYSTEM = pycentral +include $(CDBS)/rules/debhelper.mk +include $(CDBS)/class/python-distutils.mk -build-stamp: - python setup.py build - touch build-stamp - -clean: - dh_clean - make clean - rm -rf build build-stamp - -install: build - dh_clean - python setup.py build - python setup.py install --root=debian/python-mlib - -binary-arch: install - dh_testdir -a - dh_testroot -a - dh_compress -a - dh_installdocs -a - dh_strip -a - dh_shlibdeps -a - dh_python -a - dh_gencontrol -a - dh_fixperms -a - dh_installdeb -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-arch - -source: - rm -rf dist/*.tar.gz dist/=deb= - python setup.py sdist - mkdir dist/=deb= - cd dist/=deb=; tar xvfz ../*.tar.gz - d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/dist/=deb=/* - rm -rf dist/=deb= - -.PHONY: binary binary-arch binary-indep clean install source build +###----- That's all, folks -------------------------------------------------- -- 2.11.0