author | Denis Laxalde <denis.laxalde@logilab.fr> |
Wed, 26 Jun 2019 12:35:25 +0200 | |
branch | 3.26 |
changeset 12688 | 8da08cc8640f |
parent 12665 | 112f3c2b6f1e |
child 12697 | 3b48af0ec776 |
permissions | -rwxr-xr-x |
11515
b3267ba817b4
Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
1 |
#!/usr/bin/make -f |
0 | 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. |
|
11832
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
6 |
# export DH_VERBOSE=1 |
0 | 7 |
|
11832
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
8 |
export PYBUILD_NAME=cubicweb |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
9 |
export PYBUILD_DISABLE_python2=test |
12630
1c156d9f224a
[debian] Remove test/doc Build-Depends
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11836
diff
changeset
|
10 |
export PYBUILD_DISABLE_python3=test |
0 | 11 |
|
11832
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
12 |
%: |
12664
2337c8c05657
[debian] Introduce python3-cubicweb and python3-cubicweb-pyramid binary packages
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12631
diff
changeset
|
13 |
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild |
11515
b3267ba817b4
Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
14 |
|
11832
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
15 |
override_dh_auto_build: export http_proxy=127.0.0.1:9 |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
16 |
override_dh_auto_build: export https_proxy=127.0.0.1:9 |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
17 |
override_dh_auto_build: |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
18 |
dh_auto_build |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
19 |
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
20 |
PYTHONPATH=. sphinx-build -N -bhtml doc/ debian/cubicweb-doc/html |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
21 |
endif |
11515
b3267ba817b4
Initial debian packaging
Julien Cristau <julien.cristau@logilab.fr>
parents:
diff
changeset
|
22 |
|
11832
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
23 |
override_dh_installchangelogs: |
e8be49ecb522
[debian] Update debian packaging (closes #16133259)
David Douard <david.douard@logilab.fr>
parents:
11631
diff
changeset
|
24 |
dh_installchangelogs -Xdoc/changes |
0 | 25 |
|
12665
112f3c2b6f1e
[debian] Install cubicweb-ctl from python2 build
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12664
diff
changeset
|
26 |
override_dh_auto_install: |
112f3c2b6f1e
[debian] Install cubicweb-ctl from python2 build
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12664
diff
changeset
|
27 |
dh_auto_install |
112f3c2b6f1e
[debian] Install cubicweb-ctl from python2 build
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12664
diff
changeset
|
28 |
mkdir -p debian/cubicweb-ctl/usr/bin |
112f3c2b6f1e
[debian] Install cubicweb-ctl from python2 build
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12664
diff
changeset
|
29 |
mv debian/python-cubicweb/usr/bin/cubicweb-ctl debian/cubicweb-ctl/usr/bin |
112f3c2b6f1e
[debian] Install cubicweb-ctl from python2 build
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12664
diff
changeset
|
30 |
rm debian/python3-cubicweb/usr/bin/cubicweb-ctl |