author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Wed, 14 Jan 2009 11:23:14 +0100 | |
changeset 403 | ffc7dc7d2218 |
parent 275 | 7c47bc8550d4 |
child 858 | e6ae125d5903 |
permissions | -rwxr-xr-x |
0 | 1 |
#!/usr/bin/make -f |
2 |
# Sample debian/rules that uses debhelper. |
|
3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
|
4 |
||
5 |
# Uncomment this to turn on verbose mode. |
|
6 |
#export DH_VERBOSE=1 |
|
7 |
build: build-stamp |
|
8 |
build-stamp: |
|
9 |
dh_testdir |
|
10 |
# XXX doesn't work if logilab-doctools, logilab-xml are not in build depends |
|
11 |
# and I can't get pbuilder find them in its chroot :( |
|
12 |
#cd doc && make |
|
65
ef636f74bd22
[packaging] fix and update packaging
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
0
diff
changeset
|
13 |
python setup.py build |
0 | 14 |
touch build-stamp |
15 |
||
16 |
clean: |
|
17 |
dh_testdir |
|
18 |
dh_testroot |
|
19 |
rm -f build-stamp configure-stamp |
|
20 |
rm -rf build |
|
21 |
rm -rf debian/cubicweb-*/ |
|
22 |
find . -name "*.pyc" | xargs rm -f |
|
23 |
dh_clean |
|
24 |
||
25 |
install: build |
|
26 |
dh_testdir |
|
27 |
dh_testroot |
|
28 |
dh_clean -k |
|
29 |
dh_installdirs |
|
30 |
########## core package ############################################# |
|
31 |
# put : |
|
32 |
# * all the python library and data in cubicweb-core |
|
33 |
# * scripts in cubicweb-server |
|
34 |
# |
|
35 |
# pick from each latter to construct each package |
|
36 |
python setup.py -q install_lib --no-compile --install-dir=debian/cubicweb-core/usr/lib/python2.4/site-packages/ |
|
37 |
python setup.py -q install_data --install-dir=debian/cubicweb-core/usr/ |
|
38 |
python setup.py -q install_scripts --install-dir=debian/cubicweb-server/usr/bin/ |
|
39 |
########## common package ############################################# |
|
40 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/common/ debian/cubicweb-common/usr/lib/python2.4/site-packages/cubicweb |
|
41 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/entities/ debian/cubicweb-common/usr/lib/python2.4/site-packages/cubicweb |
|
42 |
# data |
|
43 |
mv debian/cubicweb-core/usr/share/cubicweb/cubes/shared/i18n debian/cubicweb-common/usr/share/cubicweb/cubes/shared/ |
|
44 |
touch debian/cubicweb-common/usr/share/cubicweb/cubes/__init__.py |
|
45 |
########## server package ############################################# |
|
46 |
# library |
|
47 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/server/ debian/cubicweb-server/usr/lib/python2.4/site-packages/cubicweb |
|
48 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/sobjects/ debian/cubicweb-server/usr/lib/python2.4/site-packages/cubicweb |
|
49 |
# data |
|
50 |
mv debian/cubicweb-core/usr/share/cubicweb/schemas/ debian/cubicweb-server/usr/share/cubicweb/ |
|
51 |
mv debian/cubicweb-core/usr/share/cubicweb/migration/ debian/cubicweb-server/usr/share/cubicweb/ |
|
52 |
########## twisted package ############################################ |
|
53 |
# library |
|
54 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/etwist/ debian/cubicweb-twisted/usr/lib/python2.4/site-packages/cubicweb/ |
|
55 |
########## web package ################################################ |
|
56 |
# library |
|
57 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/web/ debian/cubicweb-web/usr/lib/python2.4/site-packages/cubicweb/ |
|
58 |
# data / web documentation |
|
59 |
mv debian/cubicweb-core/usr/share/cubicweb/cubes/shared/data debian/cubicweb-web/usr/share/cubicweb/cubes/shared/ |
|
60 |
mv debian/cubicweb-core/usr/share/cubicweb/cubes/shared/wdoc debian/cubicweb-web/usr/share/cubicweb/cubes/shared/ |
|
61 |
########## ctl package ################################################ |
|
62 |
# scripts |
|
63 |
mv debian/cubicweb-server/usr/bin/cubicweb-ctl debian/cubicweb-ctl/usr/bin/ |
|
64 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/cwctl.py debian/cubicweb-ctl/usr/lib/python2.4/site-packages/cubicweb |
|
65 |
mv debian/cubicweb-ctl.bash_completion debian/cubicweb-ctl/etc/bash_completion.d/cubicweb-ctl |
|
66 |
########## client package ############################################# |
|
67 |
# library |
|
68 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/hercule.py debian/cubicweb-client/usr/lib/python2.4/site-packages/cubicweb |
|
69 |
########## dev package ################################################ |
|
70 |
# devtools package |
|
71 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/devtools/ debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/ |
|
264
6eb0725d509d
packaging fix: distribute skeleton
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
65
diff
changeset
|
72 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/skeleton/ debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/ |
0 | 73 |
# tests directories |
74 |
mv debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/ |
|
75 |
mv debian/cubicweb-common/usr/lib/python2.4/site-packages/cubicweb/common/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/common/ |
|
76 |
mv debian/cubicweb-server/usr/lib/python2.4/site-packages/cubicweb/server/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/server/ |
|
77 |
mv debian/cubicweb-server/usr/lib/python2.4/site-packages/cubicweb/sobjects/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/sobjects/ |
|
78 |
mv debian/cubicweb-web/usr/lib/python2.4/site-packages/cubicweb/web/test debian/cubicweb-dev/usr/lib/python2.4/site-packages/cubicweb/web/ |
|
79 |
########## documentation package ###################################### |
|
65
ef636f74bd22
[packaging] fix and update packaging
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
0
diff
changeset
|
80 |
cp -r doc/book debian/cubicweb-documentation/usr/share/doc/cubicweb-documentation/ |
0 | 81 |
########## core package ############################################### |
82 |
# small cleanup |
|
83 |
rm -rf debian/cubicweb-core/usr/share/cubicweb/ |
|
84 |
# undistributed for now |
|
85 |
rm -rf debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/goa |
|
86 |
rm -rf debian/cubicweb-core/usr/lib/python2.4/site-packages/cubicweb/wsgi |
|
87 |
||
88 |
# Build architecture-independent files here. |
|
89 |
binary-indep: build install |
|
90 |
dh_testdir |
|
91 |
dh_testroot -i |
|
92 |
dh_install -i |
|
93 |
dh_pycentral -i |
|
94 |
dh_installinit -i -n --name cubicweb -u"defaults 99" |
|
95 |
dh_installlogrotate -i |
|
96 |
dh_installdocs -i -A README |
|
97 |
dh_installman -i |
|
98 |
dh_installchangelogs -i |
|
99 |
dh_link -i |
|
100 |
dh_compress -i -X.py -X.ini -X.xml |
|
101 |
dh_fixperms -i |
|
102 |
dh_installdeb -i |
|
103 |
dh_gencontrol -i |
|
104 |
dh_md5sums -i |
|
105 |
dh_builddeb -i |
|
106 |
||
107 |
binary-arch: |
|
108 |
||
109 |
binary: binary-indep |
|
110 |
.PHONY: build clean binary binary-indep binary-arch |
|
111 |