[skel] update newcube skeleton (closes #2312509)
authorDavid Douard <david.douard@logilab.fr>
Wed, 11 Apr 2012 14:16:27 +0200
changeset 8365 51c390500c63
parent 8364 b360112424d2
child 8366 6599f69bb846
[skel] update newcube skeleton (closes #2312509)
skeleton/debian/DISTNAME.prerm.tmpl
skeleton/debian/compat
skeleton/debian/control.tmpl
skeleton/debian/copyright.tmpl
skeleton/debian/rules.tmpl
--- a/skeleton/debian/DISTNAME.prerm.tmpl	Wed Apr 11 15:48:12 2012 +0200
+++ /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/%(cubename)s -name "*.pyc" | xargs rm -f
-  find /usr/share/cubicweb/cubes/%(cubename)s -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/skeleton/debian/compat	Wed Apr 11 15:48:12 2012 +0200
+++ b/skeleton/debian/compat	Wed Apr 11 14:16:27 2012 +0200
@@ -1,1 +1,1 @@
-5
+7
--- a/skeleton/debian/control.tmpl	Wed Apr 11 15:48:12 2012 +0200
+++ b/skeleton/debian/control.tmpl	Wed Apr 11 14:16:27 2012 +0200
@@ -2,13 +2,13 @@
 Section: web
 Priority: optional
 Maintainer: %(author)s <%(author-email)s>
-Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-support
-Standards-Version: 3.8.0
-
+Build-Depends: debhelper (>= 7), python (>=2.5), python-support
+Standards-Version: 3.9.3
+XS-Python-Version: >= 2.5
 
 Package: %(distname)s
 Architecture: all
-Depends: cubicweb-common (>= %(version)s)
+Depends: cubicweb-common (>= %(version)s), ${python:Depends}
 Description: %(shortdesc)s
  CubicWeb is a semantic web application framework.
  .
--- a/skeleton/debian/copyright.tmpl	Wed Apr 11 15:48:12 2012 +0200
+++ b/skeleton/debian/copyright.tmpl	Wed Apr 11 14:16:27 2012 +0200
@@ -1,4 +1,4 @@
-Upstream Author: 
+Upstream Author:
 
   %(author)s <%(author-email)s>
 
--- a/skeleton/debian/rules.tmpl	Wed Apr 11 15:48:12 2012 +0200
+++ b/skeleton/debian/rules.tmpl	Wed Apr 11 14:16:27 2012 +0200
@@ -4,7 +4,10 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-build: build-stamp
+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