debian: Just build for the default version.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Nov 2006 18:00:36 +0000 (18:00 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Nov 2006 18:00:36 +0000 (18:00 +0000)
Debian's Pyrex doesn't work for 2.5 so we can't build for the others
 anyway.

debian/control
debian/rules

index 6489aac..9928972 100644 (file)
@@ -1,28 +1,12 @@
 Source: python-getdate
 Section: python
 Priority: extra
-Build-Depends: python, python2.3, python2.4
+Build-Depends: python
 Maintainer: Mark Wooding <mdw@distorted.org.uk>
 Standards-Version: 3.1.1
 
 Package: python-getdate
-Architecture: all
-Depends: ${python:Depends}
-Description: Python binding for date parser
- This is a dummy package for making sure you have the right package for the
- default Debian Python installation.
-
-Package: python2.3-getdate
-Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}
-Description: Python binding for date parser
- This is a dummy package for making sure you have the right package for the
- default Debian Python installation.
-
-Package: python2.4-getdate
 Architecture: any
 Depends: ${shlibs:Depends}, ${python:Depends}
 Description: Python binding for date parser
- This is a dummy package for making sure you have the right package for the
- default Debian Python installation.
 
index c03e3e6..05e0fc0 100755 (executable)
@@ -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:
@@ -17,23 +14,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-getdate; \
-       done
-       mkdir -p debian/python-getdate
-
-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-getdate
 
 binary-arch: install
        dh_testdir -a
@@ -49,7 +31,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=