[debian] use dh_python2

authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
changeset36f41662a57f
branchdefault
phasedraft
hiddenyes
parent revision#37c58cc0d694 add dependency to lxml (closes #287976)
child revision<not specified>
files modified by this revision
debian/compat
debian/control
debian/rules
# HG changeset patch
# User Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
# Date 1437401462 -7200
# Mon Jul 20 16:11:02 2015 +0200
# Node ID 36f41662a57f2ecc06261a5cb75d1bd757195fa7
# Parent 37c58cc0d694b90058074dc505042d83cbb4830e
[debian] use dh_python2

diff --git a/debian/compat b/debian/compat
@@ -1,1 +1,1 @@
1 -7
2 +9
diff --git a/debian/control b/debian/control
@@ -1,19 +1,23 @@
3  Source: nazca
4  Section: web
5  Priority: optional
6  Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
7 -Build-Depends: debhelper (>= 7), python (>=2.5), python-support
8 -Standards-Version: 3.9.3
9 -XS-Python-Version: >= 2.5
10 +Build-Depends:
11 +  debhelper (>= 9),
12 +  python (>=2.6.5),
13 +Standards-Version: 3.9.6
14 +X-Python-Version: >= 2.6
15 
16  Package: python-nazca
17  Architecture: all
18 -Depends: ${python:Depends},
19 +Depends:
20 +  ${misc:Depends},
21 +  ${python:Depends},
22    python-scipy,
23    python-sklearn,
24 -  python-lxml
25 +  python-lxml,
26  Recommends:
27    python-nltk (>= 3.0),
28    python-sparqlwrapper,
29    python-dateutil
30  Description: Python library for data alignment.
diff --git a/debian/rules b/debian/rules
@@ -1,55 +1,11 @@
31  #!/usr/bin/make -f
32 -# Sample debian/rules that uses debhelper.
33 -# GNU copyright 1997 to 1999 by Joey Hess.
34 
35 -# Uncomment this to turn on verbose mode.
36 -#export DH_VERBOSE=1
37 -build: build-arch build-indep
38 -build-arch:
39 -	# Nothing to do
40 -build-indep: build-stamp
41 -build-stamp:
42 -	dh_testdir
43 -	NO_SETUPTOOLS=1 python setup.py -q build
44 -	touch build-stamp
45 -
46 -clean:
47 -	dh_testdir
48 -	dh_testroot
49 -	rm -f build-stamp configure-stamp
50 -	rm -rf build
51 -	find . -name "*.pyc" | xargs rm -f
52 -	dh_clean
53 +export NO_SETUPTOOLS=1
54 
55 -install: build
56 -	dh_testdir
57 -	dh_testroot
58 -	dh_clean -k
59 -	dh_installdirs -i
60 -	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/nazca/usr/
61 -
62 +%:
63 +	dh $@ --with python2
64 
65 -# Build architecture-independent files here.
66 -binary-indep: build install
67 -	dh_testdir
68 -	dh_testroot
69 -	dh_install -i
70 -	dh_installchangelogs -i
71 -	dh_installexamples -i
72 -	dh_installdocs -i
73 -	dh_installman -i
74 -	dh_pysupport -i
75 -	dh_link -i
76 -	dh_compress -i -X.py -X.ini -X.xml -Xtest
77 -	dh_fixperms -i
78 -	dh_installdeb -i
79 -	dh_gencontrol -i
80 -	dh_md5sums -i
81 -	dh_builddeb -i
82 -
83 -
84 -# Build architecture-dependent files here.
85 -binary-arch:
86 -
87 -binary: binary-indep
88 -.PHONY: build clean binary-arch binary-indep binary
89 +override_dh_auto_install:
90 +	dh_auto_install
91 +	# remove generated .egg-info file
92 +	rm -rf debian/*/usr/lib/python*