diff options
author | drebs <drebs@leap.se> | 2016-09-09 09:30:25 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-09-09 10:16:04 -0300 |
commit | b51196e2d28fde4dd28daad680b541bb206cae2b (patch) | |
tree | 2aa6e80d530eeefb1e22280a6bc66c1f7800b4a7 /debian/rules | |
parent | 6b23b3f3215f2443aa3e790559b63a41b3040072 (diff) |
[pkg] add debian directory for 0.8.1debian/experimental-0.9
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..1ffc91e7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#DH_VERBOSE=1 + +%: + dh $@ --with python2 --namespace=leap.soledad + +override_dh_auto_clean: + cd client && python setup.py clean -a + cd common && python setup.py clean -a + cd server && python setup.py clean -a + +override_dh_auto_install: + cd client && python setup.py install --root=../debian/soledad-client + cd common && python setup.py install --root=../debian/soledad-common + cd server && LEAP_SKIP_INIT=1 python setup.py install --root=../debian/soledad-server + +override_dh_install: + # leap.soledad provides the leap.soledad namespace __init__.py + for pv in $(shell pyversions -vr debian/control); do \ + cp common/src/leap/__init__.py debian/soledad-common/usr/local/lib/python$$pv/*-packages/leap/; \ + cp common/src/leap/__init__.py debian/soledad-common/usr/local/lib/python$$pv/*-packages/leap/soledad/; \ + done + dh_install + +override_dh_auto_clean: + dh_auto_clean + find . -name "*.pyc" -exec rm -rf {} \; + find . -name ".tox" -exec rm -rf {} \; |