diff options
author | drebs <drebs@leap.se> | 2016-09-09 09:30:25 -0300 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2017-03-21 12:15:51 +0100 |
commit | 0911ecddfffe38a81b769c0ffc91795b88a303b6 (patch) | |
tree | 095d56876962278e7c5acf2a731503993978ef26 /debian/rules | |
parent | d2aa9e923c59a85bb709bf9fd45c4e5c3f8762ce (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 {} \; |