From d9fc10199330ee0daa22396ebd25b9f1d6fef952 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 21 Nov 2006 18:00:50 +0000 Subject: [PATCH] debian: Just build for the default version. Debian's Pyrex doesn't work for 2.5 so we can't build for the others anyway. --- debian/control | 31 +------------------------------ debian/rules | 26 ++++---------------------- 2 files changed, 5 insertions(+), 52 deletions(-) diff --git a/debian/control b/debian/control index 6a326d0..2705d94 100644 --- a/debian/control +++ b/debian/control @@ -1,25 +1,11 @@ Source: python-checkpath Section: python Priority: extra -Build-Depends: python, python2.3, python2.3-pyrex, - python2.4, python2.4-pyrex, libcheckpath-dev, mlib-dev +Build-Depends: python, python-pyrex, libcheckpath-dev, mlib-dev Maintainer: Mark Wooding Standards-Version: 3.1.1 Package: python-checkpath -Architecture: all -Depends: ${python:Depends} -Description: Checks paths for security - Walks a pathname, checking every symlink and directory on the way, - and issuing alerts if any element is writable by someone other than - the calling uid or root. Useful if you're paranoid. This package - just contains the shared library. If you want to write programs which - use this library, you need libcheckpath-dev. - . - This is a dummy package to install the correct bindings for the default - Debian verison of Python. - -Package: python2.3-checkpath Architecture: any Depends: ${shlibs:Depends}, ${python:Depends} Description: Checks paths for security @@ -28,19 +14,4 @@ Description: Checks paths for security the calling uid or root. Useful if you're paranoid. This package just contains the shared library. If you want to write programs which use this library, you need libcheckpath-dev. - . - This package contains a Python binding for the library for Python version - 2.3. -Package: python2.4-checkpath -Architecture: any -Depends: ${shlibs:Depends}, ${python:Depends} -Description: Checks paths for security - Walks a pathname, checking every symlink and directory on the way, - and issuing alerts if any element is writable by someone other than - the calling uid or root. Useful if you're paranoid. This package - just contains the shared library. If you want to write programs which - use this library, you need libcheckpath-dev. - . - This package contains a Python binding for the library for Python version - 2.4. diff --git a/debian/rules b/debian/rules index 4eda6a0..b1b7126 100755 --- a/debian/rules +++ b/debian/rules @@ -2,13 +2,10 @@ export DH_COMPAT = 4 -DEFVERSION = 2.3 -VERSIONS = $(DEFVERSION) 2.4 - build: build-stamp build-stamp: - for v in $(VERSIONS); do python$$v setup.py build; done + python setup.py build touch build-stamp clean: @@ -18,23 +15,8 @@ clean: install: build dh_clean - for v in $(VERSIONS); do \ - python$$v setup.py build; \ - python$$v setup.py install --root=debian/python$$v-checkpath; \ - done - mkdir -p debian/python-checkpath - -binary-indep: install - dh_testdir -i - dh_testroot -i - dh_compress -i - dh_installdocs -i - dh_python -i - dh_gencontrol -i - dh_fixperms -i - dh_installdeb -i - dh_md5sums -i - dh_builddeb -i + python setup.py build + python setup.py install --root=debian/python-checkpath binary-arch: install dh_testdir -a @@ -50,7 +32,7 @@ binary-arch: install dh_md5sums -a dh_builddeb -a -binary: binary-indep binary-arch +binary: binary-arch source: rm -rf dist/*.tar.gz dist/=deb= -- 2.11.0