diff options
author | drebs <drebs@leap.se> | 2016-09-09 09:30:25 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-09-09 10:34:54 -0300 |
commit | d77c3868bd02bbd59965498d6d1a0b59f0512338 (patch) | |
tree | d69676ce581ee0881e804667916411fea59827b3 /debian/rules | |
parent | 6b23b3f3215f2443aa3e790559b63a41b3040072 (diff) |
[pkg] add debian directory for 0.8.1
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 {} \; |