diff options
author | Varac <varac@leap.se> | 2017-06-22 11:52:58 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-06-26 12:20:21 +0200 |
commit | bd9f7ecc1e22bce1b35e28ce948b87bd411bcbfd (patch) | |
tree | db31cf9055a98270f482e5c325d97ce5ecc56c84 /debian/rules | |
parent | c632bf5f97ffda038a208faa5a31dccb88700deb (diff) |
[pkg] Add debian folder from debian/experimental-0.9 branch
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 {} \; |