X-Git-Url: https://git.distorted.org.uk/~mdw/getdate-python/blobdiff_plain/343596807cc29ea712bdc95d735bc9b41f14b7f0..e58b9b2f42717fd3da2a5f2000e81686e72f5ea6:/debian/rules diff --git a/debian/rules b/debian/rules index c03e3e6..6ebce3c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,62 +1,9 @@ #! /usr/bin/make -f -export DH_COMPAT = 4 +CDBS = /usr/share/cdbs/1 -DEFVERSION = 2.3 -VERSIONS = $(DEFVERSION) 2.4 +DEB_PYTHON_SYSTEM = pycentral +include $(CDBS)/rules/debhelper.mk +include $(CDBS)/class/python-distutils.mk -build: build-stamp - -build-stamp: - for v in $(VERSIONS); do python$$v setup.py build; done - touch build-stamp - -clean: - dh_clean - rm -rf build build-stamp - -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 - -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-indep binary-arch - -source: - rm -rf dist/*.tar.gz dist/=deb= - python$(DEFVERSION) 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 --------------------------------------------------