[debian] update to dh_python2
authorDavid Douard <david.douard@logilab.fr>
Fri, 24 Jul 2015 15:59:15 +0200
changeset 1833 f35b5bf8bdb3
parent 1828 4dde56c26e53
child 1834 df4787c337ee
[debian] update to dh_python2
debian/control
debian/rules
--- a/debian/control	Fri Jul 24 15:58:49 2015 +0200
+++ b/debian/control	Fri Jul 24 15:59:15 2015 +0200
@@ -4,8 +4,12 @@
 Maintainer: Logilab Packaging Team <contact@logilab.fr>
 Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>,
            David Douard <david.douard@logilab.fr>
-Build-Depends: debhelper (>= 7), python (>= 2.6.5),
-Standards-Version: 3.9.1
+Build-Depends: 
+  debhelper (>= 9),
+  python-all (>= 2.6.5),
+  dh-python,
+  python-setuptools, 
+Standards-Version: 3.9.6
 X-Python-Version: >= 2.6
 Homepage: http://www.cubicweb.org/project/cubicweb-apycot
 
--- a/debian/rules	Fri Jul 24 15:58:49 2015 +0200
+++ b/debian/rules	Fri Jul 24 15:59:15 2015 +0200
@@ -1,55 +1,11 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-build: build-arch build-indep
-build-arch:
-	# Nothing to do
 
-build-indep: build-stamp
-build-stamp:
-	dh_testdir
-	NO_SETUPTOOLS=1 python setup.py -q build
-	>$@
-
-clean:
-	dh_testdir
-	rm -f build-stamp
-	rm -rf build
-	find . -name "*.pyc" -delete
-	dh_clean
+#export DH_VERBOSE=1
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs -i
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/tmp/usr/
+%:
+	dh $@ --with python2 --buildsystem=pybuild
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot -i
-	dh_install -i 
-	dh_installchangelogs -i
-	dh_installexamples -i
-	dh_installdocs -i -A README
-	dh_installman -i
-	dh_python2 -i /usr/share/cubicweb /usr/share/narval
-	dh_python2
-	dh_link -i
-	dh_compress -i -X.py -X.ini -X.xml -Xtest
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
+override_dh_python2:
+	dh_python2 
+	dh_python2 -i /usr/share/cubicweb
 
-
-# Build architecture-dependent files here.
-binary-arch:
-
-binary: binary-indep
-.PHONY: build clean binary-arch binary-indep binary