[pkg] update debian packaging
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 14 Mar 2016 16:46:10 +0100
changeset 357 6da9ea880340
parent 356 34736f0f1d75
child 359 9d56a56cffc5
[pkg] update debian packaging
debian/changelog
debian/compat
debian/control
debian/cubicweb-blog.dirs
debian/cubicweb-blog.prerm
debian/rules
debian/watch
--- a/debian/changelog	Tue Dec 22 18:09:43 2015 +0100
+++ b/debian/changelog	Mon Mar 14 16:46:10 2016 +0100
@@ -2,7 +2,7 @@
 
   * New upstream release.
 
- -- Jérôme Roy <jerome.roy@logilab.fr>  Tue, 22 Dec 2015 18:08:53 +0100
+ -- Julien Cristau <jcristau@debian.org>  Mon, 14 Mar 2016 16:51:50 +0100
 
 cubicweb-blog (1.11.1-1) unstable; urgency=medium
 
--- a/debian/compat	Tue Dec 22 18:09:43 2015 +0100
+++ b/debian/compat	Mon Mar 14 16:46:10 2016 +0100
@@ -1,1 +1,1 @@
-8
+9
--- a/debian/control	Tue Dec 22 18:09:43 2015 +0100
+++ b/debian/control	Mon Mar 14 16:46:10 2016 +0100
@@ -4,11 +4,12 @@
 Maintainer: Logilab Packaging Team <contact@logilab.fr>
 Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>, Nicolas Chauvat <nicolas.chauvat@logilab.fr>
 Build-Depends:
- debhelper (>= 8),
+ debhelper (>= 9),
  python (>= 2.6.5),
+ dh-python,
 X-Python-Version: >= 2.6
-Standards-Version: 3.9.3
-Homepage: http://www.cubicweb.org/project/cubicweb-blog
+Standards-Version: 3.9.6
+Homepage: https://www.cubicweb.org/project/cubicweb-blog
 
 Package: cubicweb-blog
 Architecture: all
--- a/debian/cubicweb-blog.dirs	Tue Dec 22 18:09:43 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/share/cubicweb/cubes/blog
--- a/debian/cubicweb-blog.prerm	Tue Dec 22 18:09:43 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-#!/bin/sh -e
-
-delete_pyo_pyc () {
-  find /usr/share/cubicweb/cubes/blog -name "*.pyc" | xargs rm -f
-  find /usr/share/cubicweb/cubes/blog -name "*.pyo" | xargs rm -f
-}
-
-
-case "$1" in
-    failed-upgrade|abort-install|abort-upgrade|disappear)
-    ;;
-    upgrade)
-    delete_pyo_pyc
-    ;;
-    remove)
-    delete_pyo_pyc
-    ;;
-    purge)
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-
-esac
-
-#DEBHELPER#
--- a/debian/rules	Tue Dec 22 18:09:43 2015 +0100
+++ b/debian/rules	Mon Mar 14 16:46:10 2016 +0100
@@ -3,12 +3,7 @@
 export NO_SETUPTOOLS=1
 
 %:
-	dh $@ --with python2
-
-override_dh_auto_install:
-	dh_auto_install
-	# remove generated .egg-info file
-	rm -rf debian/*/usr/lib/python*
+	dh $@ --with python2 --buildsystem=pybuild
 
 override_dh_python2:
-	dh_python2 -i /usr/share/cubicweb
+	dh_python2 /usr/share/cubicweb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/watch	Mon Mar 14 16:46:10 2016 +0100
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/cubicweb-blog/cubicweb-blog-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))