[pkg] Use debhelper 8
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 11 Jun 2015 14:54:06 +0200
changeset 339 1cb45c63412f
parent 338 1af467baf4d6
child 340 034a95d9a669
[pkg] Use debhelper 8
debian/compat
debian/control
debian/rules
--- a/debian/compat	Tue Jun 09 14:14:08 2015 +0200
+++ b/debian/compat	Thu Jun 11 14:54:06 2015 +0200
@@ -1,1 +1,1 @@
-5
+8
--- a/debian/control	Tue Jun 09 14:14:08 2015 +0200
+++ b/debian/control	Thu Jun 11 14:54:06 2015 +0200
@@ -3,14 +3,25 @@
 Priority: optional
 Maintainer: Logilab Packaging Team <contact@logilab.fr>
 Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>, Nicolas Chauvat <nicolas.chauvat@logilab.fr>
-Build-Depends: debhelper (>= 5.0.37.1), python (>= 2.4), python-dev (>= 2.4)
-Standards-Version: 3.8.0
+Build-Depends:
+ debhelper (>= 8),
+ python (>= 2.6.5),
+X-Python-Version: >= 2.6
+Standards-Version: 3.9.3
 Homepage: http://www.cubicweb.org/project/cubicweb-blog
 
 Package: cubicweb-blog
 Architecture: all
-Depends: cubicweb-common (>= 3.19.0)
-Suggests: cubicweb-comment (>= 1.6.3), cubicweb-tag, cubicweb-sioc, python-feedparser, python-rdflib
+Depends:
+ cubicweb-common (>= 3.19.0),
+ ${python:Depends},
+ ${misc:Depends},
+Suggests:
+ cubicweb-comment (>= 1.6.3),
+ cubicweb-tag,
+ cubicweb-sioc,
+ python-feedparser,
+ python-rdflib
 Recommends: cubicweb-preview, cubicweb-seo
 Description: blog component for the CubicWeb framework
  This CubicWeb component provides blogging functionnalities.
--- a/debian/rules	Tue Jun 09 14:14:08 2015 +0200
+++ b/debian/rules	Thu Jun 11 14:54:06 2015 +0200
@@ -1,53 +1,14 @@
 #!/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-stamp
-build-stamp:
-	dh_testdir
-	NO_SETUPTOOLS=1 python setup.py -q build
-	touch build-stamp
+export NO_SETUPTOOLS=1
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-	rm -rf build
-	find . -name "*.pyc" | xargs rm -f
-	rm -f changelog.gz
-	dh_clean
+%:
+	dh $@ --with python2
 
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs -i
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-blog/usr/
-	rm -rf debian/cubicweb-blog/usr/lib/python*
-
+override_dh_auto_install:
+	dh_auto_install
+	# remove generated .egg-info file
+	rm -rf debian/*/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_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_python2:
+	dh_python2 -i /usr/share/cubicweb