author | Katia Saurfelt <katia.saurfelt@logilab.fr> |
Thu, 09 Feb 2012 09:52:02 +0100 | |
branch | stable |
changeset 8209 | 67660d5f1916 |
parent 8098 | e80edd022901 |
child 8365 | 51c390500c63 |
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 |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
8 |
build-stamp: |
0 | 9 |
dh_testdir |
5334
7da1a6ca8f65
[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1667
diff
changeset
|
10 |
NO_SETUPTOOLS=1 python setup.py -q build |
0 | 11 |
touch build-stamp |
12 |
||
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
13 |
clean: |
0 | 14 |
dh_testdir |
15 |
dh_testroot |
|
16 |
rm -f build-stamp configure-stamp |
|
17 |
rm -rf build |
|
18 |
find . -name "*.pyc" | xargs rm -f |
|
19 |
dh_clean |
|
20 |
||
21 |
install: build |
|
22 |
dh_testdir |
|
23 |
dh_testroot |
|
24 |
dh_clean -k |
|
25 |
dh_installdirs -i |
|
5334
7da1a6ca8f65
[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1667
diff
changeset
|
26 |
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/%(distname)s/usr/ |
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
27 |
# remove generated .egg-info file |
1667 | 28 |
rm -rf debian/%(distname)s/usr/lib/python* |
0 | 29 |
|
30 |
||
31 |
# Build architecture-independent files here. |
|
32 |
binary-indep: build install |
|
33 |
dh_testdir |
|
34 |
dh_testroot |
|
35 |
dh_install -i |
|
36 |
dh_installchangelogs -i |
|
37 |
dh_installexamples -i |
|
38 |
dh_installdocs -i |
|
39 |
dh_installman -i |
|
8098
e80edd022901
[skel] default debian/rules use pysupport to compile python files
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5334
diff
changeset
|
40 |
dh_pysupport -i /usr/share/cubicweb |
0 | 41 |
dh_link -i |
42 |
dh_compress -i -X.py -X.ini -X.xml -Xtest |
|
43 |
dh_fixperms -i |
|
44 |
dh_installdeb -i |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
45 |
dh_gencontrol -i |
0 | 46 |
dh_md5sums -i |
47 |
dh_builddeb -i |
|
48 |
||
49 |
||
50 |
# Build architecture-dependent files here. |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
51 |
binary-arch: |
0 | 52 |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
53 |
binary: binary-indep |
0 | 54 |
.PHONY: build clean binary-arch binary-indep binary |