[debian] use dh_python2
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 20 Jul 2015 16:11:02 +0200
changeset 504 20db1f91ed2e
parent 503 2d44472e5d20
child 505 e249da26a074
[debian] use dh_python2
debian/compat
debian/control
debian/rules
--- a/debian/compat	Mon Mar 02 18:37:36 2015 +0100
+++ b/debian/compat	Mon Jul 20 16:11:02 2015 +0200
@@ -1,1 +1,1 @@
-7
+9
--- a/debian/control	Mon Mar 02 18:37:36 2015 +0100
+++ b/debian/control	Mon Jul 20 16:11:02 2015 +0200
@@ -2,16 +2,20 @@
 Section: web
 Priority: optional
 Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
-Build-Depends: debhelper (>= 7), python (>=2.5), python-support
-Standards-Version: 3.9.3
-XS-Python-Version: >= 2.5
+Build-Depends:
+  debhelper (>= 9),
+  python (>=2.6.5),
+Standards-Version: 3.9.6
+X-Python-Version: >= 2.6
 
 Package: python-nazca
 Architecture: all
-Depends: ${python:Depends},
+Depends:
+  ${misc:Depends},
+  ${python:Depends},
   python-scipy,
   python-sklearn,
-  python-lxml
+  python-lxml,
 Recommends:
   python-nltk (>= 3.0),
   python-sparqlwrapper,
--- a/debian/rules	Mon Mar 02 18:37:36 2015 +0100
+++ b/debian/rules	Mon Jul 20 16:11:02 2015 +0200
@@ -1,55 +1,9 @@
 #!/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
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-	rm -rf build
-	find . -name "*.pyc" | xargs rm -f
-	dh_clean
+export NO_SETUPTOOLS=1
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs -i
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/nazca/usr/
-
+%:
+	dh $@ --with python2
 
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_install -i
-	dh_installchangelogs -i
-	dh_installexamples -i
-	dh_installdocs -i
-	dh_installman -i
-	dh_pysupport -i
-	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
-
-
-# Build architecture-dependent files here.
-binary-arch:
-
-binary: binary-indep
-.PHONY: build clean binary-arch binary-indep binary
+override_dh_auto_install:
+	dh_auto_install