author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 22 Jan 2014 10:19:30 +0100 | |
changeset 9452 | 5308b3fe03c9 |
parent 9271 | 05aaa94c04f2 |
child 10103 | 1d648d7f072e |
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 |
|
8365
51c390500c63
[skel] update newcube skeleton (closes #2312509)
David Douard <david.douard@logilab.fr>
parents:
8098
diff
changeset
|
7 |
build: build-arch build-indep |
51c390500c63
[skel] update newcube skeleton (closes #2312509)
David Douard <david.douard@logilab.fr>
parents:
8098
diff
changeset
|
8 |
build-arch: |
51c390500c63
[skel] update newcube skeleton (closes #2312509)
David Douard <david.douard@logilab.fr>
parents:
8098
diff
changeset
|
9 |
# Nothing to do |
51c390500c63
[skel] update newcube skeleton (closes #2312509)
David Douard <david.douard@logilab.fr>
parents:
8098
diff
changeset
|
10 |
build-indep: build-stamp |
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
11 |
build-stamp: |
0 | 12 |
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
|
13 |
NO_SETUPTOOLS=1 python setup.py -q build |
0 | 14 |
touch build-stamp |
15 |
||
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
16 |
clean: |
0 | 17 |
dh_testdir |
18 |
rm -f build-stamp configure-stamp |
|
19 |
rm -rf build |
|
9238
08812a274425
[debian] replace find | xargs rm with find -delete in cube skeleton. Closes #3161797
Julien Cristau <julien.cristau@logilab.fr>
parents:
9237
diff
changeset
|
20 |
find . -name "*.pyc" -delete |
0 | 21 |
dh_clean |
22 |
||
23 |
install: build |
|
24 |
dh_testdir |
|
25 |
dh_testroot |
|
26 |
dh_clean -k |
|
27 |
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
|
28 |
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
|
29 |
# remove generated .egg-info file |
1667 | 30 |
rm -rf debian/%(distname)s/usr/lib/python* |
0 | 31 |
|
32 |
||
33 |
# Build architecture-independent files here. |
|
34 |
binary-indep: build install |
|
35 |
dh_testdir |
|
36 |
dh_testroot |
|
37 |
dh_install -i |
|
38 |
dh_installchangelogs -i |
|
39 |
dh_installexamples -i |
|
9271
05aaa94c04f2
[skeleton] Install cubes README in Debian packages (Closes #3171971)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
9238
diff
changeset
|
40 |
dh_installdocs -i README |
0 | 41 |
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
|
42 |
dh_pysupport -i /usr/share/cubicweb |
0 | 43 |
dh_link -i |
44 |
dh_compress -i -X.py -X.ini -X.xml -Xtest |
|
45 |
dh_fixperms -i |
|
46 |
dh_installdeb -i |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
47 |
dh_gencontrol -i |
0 | 48 |
dh_md5sums -i |
49 |
dh_builddeb -i |
|
50 |
||
51 |
||
52 |
# 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
|
53 |
binary-arch: |
0 | 54 |
|
1449
7751785c0815
remove .egg-info file in cube's debian/rule template
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
55 |
binary: binary-indep |
0 | 56 |
.PHONY: build clean binary-arch binary-indep binary |