[skel] update newcube skeleton (closes #2312509)

authorDavid Douard <david.douard@logilab.fr>
changeset51c390500c63
branchdefault
phasepublic
hiddenno
parent revision#b360112424d2 [doc] improved 3.15 blog using developpers'contributions
child revision#6599f69bb846 fix ``call_service`` API and add test service API
files modified by this revision
skeleton/debian/DISTNAME.prerm.tmpl
skeleton/debian/compat
skeleton/debian/control.tmpl
skeleton/debian/copyright.tmpl
skeleton/debian/rules.tmpl
# HG changeset patch
# User David Douard <david.douard@logilab.fr>
# Date 1334146587 -7200
# Wed Apr 11 14:16:27 2012 +0200
# Node ID 51c390500c6344a76b13ffd7946fe2eae99bcf53
# Parent b360112424d296a045aef15a84c413c33bc49dbc
[skel] update newcube skeleton (closes #2312509)

diff --git a/skeleton/debian/DISTNAME.prerm.tmpl b/skeleton/debian/DISTNAME.prerm.tmpl
@@ -1,27 +0,0 @@
1 -#!/bin/sh -e
2 -
3 -delete_pyo_pyc () {
4 -  find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyc" | xargs rm -f
5 -  find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyo" | xargs rm -f
6 -}
7 -
8 -
9 -case "$1" in
10 -    failed-upgrade|abort-install|abort-upgrade|disappear)
11 -    ;;
12 -    upgrade)
13 -    delete_pyo_pyc
14 -    ;;
15 -    remove)
16 -    delete_pyo_pyc
17 -    ;;
18 -    purge)
19 -    ;;
20 -
21 -    *)
22 -        echo "postrm called with unknown argument \`$1'" >&2
23 -        exit 1
24 -
25 -esac
26 -
27 -#DEBHELPER#
diff --git a/skeleton/debian/compat b/skeleton/debian/compat
@@ -1,1 +1,1 @@
28 -5
29 +7
diff --git a/skeleton/debian/control.tmpl b/skeleton/debian/control.tmpl
@@ -1,16 +1,16 @@
30  Source: %(distname)s
31  Section: web
32  Priority: optional
33  Maintainer: %(author)s <%(author-email)s>
34 -Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-support
35 -Standards-Version: 3.8.0
36 -
37 +Build-Depends: debhelper (>= 7), python (>=2.5), python-support
38 +Standards-Version: 3.9.3
39 +XS-Python-Version: >= 2.5
40 
41  Package: %(distname)s
42  Architecture: all
43 -Depends: cubicweb-common (>= %(version)s)
44 +Depends: cubicweb-common (>= %(version)s), ${python:Depends}
45  Description: %(shortdesc)s
46   CubicWeb is a semantic web application framework.
47   .
48   %(longdesc)s
49   .
diff --git a/skeleton/debian/copyright.tmpl b/skeleton/debian/copyright.tmpl
@@ -1,6 +1,6 @@
50 -Upstream Author: 
51 +Upstream Author:
52 
53    %(author)s <%(author-email)s>
54 
55  Copyright:
56 
diff --git a/skeleton/debian/rules.tmpl b/skeleton/debian/rules.tmpl
@@ -2,11 +2,14 @@
57  # Sample debian/rules that uses debhelper.
58  # GNU copyright 1997 to 1999 by Joey Hess.
59 
60  # Uncomment this to turn on verbose mode.
61  #export DH_VERBOSE=1
62 -build: build-stamp
63 +build: build-arch build-indep
64 +build-arch:
65 +	# Nothing to do
66 +build-indep: build-stamp
67  build-stamp:
68  	dh_testdir
69  	NO_SETUPTOOLS=1 python setup.py -q build
70  	touch build-stamp
71