[debian] use dh_python2

authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
changeset528276612d79
branchdefault
phasedraft
hiddenyes
parent revision#37c58cc0d694 add dependency to lxml (closes #287976)
child revision<not specified>
files modified by this revision
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 528276612d79d4dc1182c671e03e192753828511
# Parent 37c58cc0d694b90058074dc505042d83cbb4830e
[debian] use dh_python2

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