new style: update debian files stable
authorSamuel Trégouët <samuel.tregouet@logilab.fr>
Fri, 01 Sep 2017 15:48:50 +0200
branchstable
changeset 182 ec23c9b9c563
parent 181 d49d242230ff
child 183 0063e9afbd0a
new style: update debian files
debian/compat
debian/control
debian/rules
--- a/debian/compat	Fri Sep 01 15:46:52 2017 +0200
+++ b/debian/compat	Fri Sep 01 15:48:50 2017 +0200
@@ -1,1 +1,1 @@
-7
+9
--- a/debian/control	Fri Sep 01 15:46:52 2017 +0200
+++ b/debian/control	Fri Sep 01 15:48:50 2017 +0200
@@ -3,17 +3,22 @@
 Priority: optional
 Maintainer: Logilab Packaging Team <contact@logilab.fr>
 Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>
-Build-Depends: debhelper (>= 7), python (>= 2.6), python-support
+Homepage: http://www.cubicweb.org/project/cubicweb-keyword
+Build-Depends:
+ debhelper (>= 7),
+ dh-python,
+ python (>= 2.6.5),
+ python-setuptools,
 Standards-Version: 3.9.3
-Homepage: http://www.cubicweb.org/project/cubicweb-keyword
-XS-Python-Version: >= 2.6
+X-Python-Version: >= 2.6
 
 Package: cubicweb-keyword
 Conflicts: cubicweb-keywords
 Replaces: cubicweb-keywords
 Architecture: all
 Depends:
- cubicweb-common (>= 3.16.0),
+ python-cubicweb (>= 3.24.0),
+ python-six (>= 1.4.0),
  ${python:Depends},
  ${misc:Depends},
 Description: keyword component for the Cubicweb framework
--- a/debian/rules	Fri Sep 01 15:46:52 2017 +0200
+++ b/debian/rules	Fri Sep 01 15:48:50 2017 +0200
@@ -1,56 +1,4 @@
 #!/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
-	python setup.py -q build
-	>$@
-
-clean:
-	dh_testdir
-	rm -f build-stamp
-	rm -rf build
-	find . -name "*.pyc" -delete
-	dh_clean
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs -i
-	python setup.py -q install --no-compile --prefix=debian/cubicweb-keyword/usr/
-	# remove generated .egg-info file
-	rm -rf debian/cubicweb-keyword/usr/lib/python*
-
-# 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 /usr/share/cubicweb
-	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
+%:
+	dh $@ --with python2