[debian] restore compatibility with old distros

Changeset 347a7f4340d8 switched the packaging to dh_python2, but that only needs to be done for wheezy/oneiric and later. So switch lenny/squeeze/lucid/maverick/natty back to python-support.

authorJulien Cristau <julien.cristau@logilab.fr>
changeset06d89f65d0f2
branchdefault
phasepublic
hiddenno
parent revision#930201469871 [console] fix command line splitting
child revision#1576aa8d7b12 prepare version 1.4.0
files modified by this revision
debian.lenny/control
debian.lucid
debian.maverick
debian.natty
debian.squeeze/control
debian.squeeze/rules
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1317194404 -7200
# Wed Sep 28 09:20:04 2011 +0200
# Node ID 06d89f65d0f2907102310487a195bc2bb4fc4d61
# Parent 93020146987174a9c714b80e23958f0937debfdc
[debian] restore compatibility with old distros

Changeset 347a7f4340d8 switched the packaging to dh_python2, but that
only needs to be done for wheezy/oneiric and later. So switch
lenny/squeeze/lucid/maverick/natty back to python-support.

diff --git a/debian.lenny/control b/debian.lenny/control
@@ -0,0 +1,1 @@
1 +../debian.squeeze/control
2 \ No newline at end of file
diff --git a/debian.lucid b/debian.lucid
@@ -0,0 +1,1 @@
3 +debian.squeeze
4 \ No newline at end of file
diff --git a/debian.maverick b/debian.maverick
@@ -0,0 +1,1 @@
5 +debian.squeeze
6 \ No newline at end of file
diff --git a/debian.natty b/debian.natty
@@ -0,0 +1,1 @@
7 +debian.squeeze
8 \ No newline at end of file
diff --git a/debian.squeeze/control b/debian.squeeze/control
@@ -0,0 +1,21 @@
9 +Source: hgview
10 +Section: vcs
11 +Priority: optional
12 +Maintainer: David Douard <david.douard@logilab.fr>
13 +Uploaders: Alexandre Fayolle <afayolle@debian.org>, Alain Leufroy <alain.leufroy@logilab.fr>
14 +Build-Depends: debhelper (>= 5.0.38), pyqt4-dev-tools, python (>=2.5), xmlto, asciidoc, mercurial
15 +Build-Depends-Indep: python-support
16 +XS-Python-Version: >= 2.5
17 +Standards-Version: 3.9.1
18 +Vcs-Hg: http://www.logilab.org/cgi-bin/hgwebdir.cgi/hgview
19 +Vcs-Browser: http://www.logilab.org/cgi-bin/hgwebdir.cgi/hgview
20 +Homepage: http://www.logilab.org/project/hgview
21 +
22 +Package: hgview
23 +Architecture: all
24 +Depends: ${python:Depends}, ${misc:Depends}, python-qt4, python-qscintilla2, python-egenix-mxdatetime, mercurial (>= 1.1.0), python-docutils
25 +Enhances: mercurial
26 +Description: mercurial interactive history viewer
27 + Its purpose is to easily navigate in a mercurial repository
28 + history. It has been written with efficiency in mind when dealing
29 + with quite big repositories.
diff --git a/debian.squeeze/rules b/debian.squeeze/rules
@@ -0,0 +1,66 @@
30 +#!/usr/bin/make -f
31 +# Sample debian/rules that uses debhelper.
32 +# GNU copyright 1997 to 1999 by Joey Hess.
33 +#
34 +# adapted by Logilab for automatic generation by debianize
35 +# (part of the devtools project, http://www.logilab.org/projects/devtools)
36 +#
37 +# Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
38 +# http://www.logilab.fr/ -- mailto:contact@logilab.fr
39 +
40 +# Uncomment this to turn on verbose mode.
41 +#export DH_VERBOSE=1
42 +
43 +build: build-stamp
44 +build-stamp: 
45 +	dh_testdir
46 +	make -C doc
47 +	python setup.py -q build 
48 +	touch build-stamp
49 +
50 +clean: 
51 +	dh_testdir
52 +	dh_testroot
53 +	rm -f build-stamp configure-stamp
54 +	rm -rf build
55 +	python setup.py clean
56 +	rm -f hgviewlib/qt4/*_ui.py hgviewlib/qt4/hgqv_rc.py
57 +	make -C doc clean
58 +	find . -name "*.pyc" | xargs rm -f
59 +	rm -f changelog.gz
60 +	dh_clean
61 +
62 +install: build
63 +	dh_testdir
64 +	dh_testroot
65 +	dh_clean -k
66 +	dh_installdirs
67 +	python setup.py -q install --no-compile --root=debian/hgview/ --install-layout=deb
68 +	rm -rf debian/hgview/usr/lib/python*/site-packages/hgview/test
69 +	rm -f debian/hgview/usr/lib/python*/site-packages/hgext/__init__.py*
70 +
71 +
72 +# Build architecture-independent files here.
73 +binary-indep: build install
74 +	dh_testdir 
75 +	dh_testroot 
76 +	dh_install -i
77 +	dh_pysupport -i
78 +	dh_installchangelogs -i ChangeLog
79 +	dh_installexamples -i
80 +	dh_installdocs -i 
81 +	dh_installman -i
82 +	dh_link -i
83 +	dh_compress -i -X.py -X.ini -X.xml -Xtest
84 +	dh_fixperms -i
85 +	dh_installdeb -i
86 +	dh_gencontrol -i 
87 +	dh_md5sums -i
88 +	dh_builddeb -i
89 +
90 +
91 +binary: binary-indep
92 +binary-arch:
93 +
94 +.PHONY: build clean binary binary-indep binary-arch
95 +