[debian] upgrade to dh_python2 0.7.0 debian/0.7.0-1
authorDavid Douard <david.douard@logilab.fr>
Mon, 08 Jun 2015 10:09:38 +0200
changeset 71 a6511f1222d4
parent 70 20390f78a8da
child 72 e472e97a5116
[debian] upgrade to dh_python2
debian/changelog
debian/compat
debian/control
debian/copyright
debian/rules
--- a/debian/changelog	Mon Jun 08 09:11:49 2015 +0200
+++ b/debian/changelog	Mon Jun 08 10:09:38 2015 +0200
@@ -1,6 +1,7 @@
 cubicweb-fresh (0.7.0-1) unstable; urgency=medium
 
   * new upstream release
+  * update to dh_python2
 
  -- David Douard <david.douard@logilab.fr>  Mon, 08 Jun 2015 09:00:39 +0200
 
--- a/debian/compat	Mon Jun 08 09:11:49 2015 +0200
+++ b/debian/compat	Mon Jun 08 10:09:38 2015 +0200
@@ -1,1 +1,1 @@
-7
+9
--- a/debian/control	Mon Jun 08 09:11:49 2015 +0200
+++ b/debian/control	Mon Jun 08 10:09:38 2015 +0200
@@ -2,16 +2,18 @@
 Section: web
 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 (>= 7), python (>= 2.6), python-support
-Standards-Version: 3.9.3
+Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>, David Douard <david.douard@logilab.fr>
+Build-Depends: 
+  debhelper (>= 9), 
+  python (>= 2.6.5), 
+Standards-Version: 3.9.6
 Homepage: http://www.cubicweb.org/project/cubicweb-fresh
 XS-Python-Version: >= 2.6
 
 Package: cubicweb-fresh
 Architecture: all
 Depends:
- cubicweb-common (>= 3.10.0),
+ cubicweb-common (>= 3.20.0),
  cubicweb-expense (>= 0.4.4),
  cubicweb-workcase,
  ${python:Depends},
--- a/debian/copyright	Mon Jun 08 09:11:49 2015 +0200
+++ b/debian/copyright	Mon Jun 08 10:09:38 2015 +0200
@@ -6,7 +6,7 @@
 
 Copyright:
 
-    Copyright (c) 2008-1013 LOGILAB S.A. (Paris, FRANCE).
+    Copyright (c) 2008-2015 LOGILAB S.A. (Paris, FRANCE).
     http://www.logilab.fr/ -- mailto:contact@logilab.fr
 
 License:
--- a/debian/rules	Mon Jun 08 09:11:49 2015 +0200
+++ b/debian/rules	Mon Jun 08 10:09:38 2015 +0200
@@ -1,57 +1,15 @@
 #!/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
-	NO_SETUPTOOLS=1 python setup.py -q build
-	>$@
+export NO_SETUPTOOLS=1
 
-clean:
-	dh_testdir
-	rm -f build-stamp
-	rm -rf build
-	find . -name "*.pyc" -delete
-	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-fresh/usr/
+override_dh_auto_install:
+	dh_auto_install
 	# remove generated .egg-info file
-	rm -rf debian/cubicweb-fresh/usr/lib/python*
-
+	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_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
+override_dh_python2:
+	dh_python2 -i /usr/share/cubicweb
 
-
-# Build architecture-dependent files here.
-binary-arch:
-
-binary: binary-indep
-.PHONY: build clean binary-arch binary-indep binary