1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
#!/usr/bin/make -f
%:
dh $@ --with python2
override_dh_auto_build:
rm -f cpyamf/*.c
cython cpyamf/*.pyx
dh_auto_build
# the documentation is not built due to a missing dependency
# cd doc && sphinx-build -b html . ../build/html
override_dh_auto_clean:
find pyamf/tests -type f -name '*.pyc' -delete
dh_auto_clean
rm -rf PyAMF.egg-info cpyamf/*.so cpyamf/*.c
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# the test suite does not 100% pass at present.
# See http://dev.pyamf.org/ticket/821
set -e; \
for python in $(shell pyversions -r); do \
$$python setup.py test; \
$$python-dbg setup.py test; \
done || true
endif
override_dh_link:
# # remove redundant copies of swfobject.js
# set -e; \
# for js in $(shell find debian/python-pyamf-doc -name swfobject.js); do \
# [ "$$(dirname $$js)" != "debian/python-pyamf-doc/usr/share/doc/python-pyamf-doc/assets" ] && \
# dh_link -p python-pyamf-doc \
# usr/share/doc/python-pyamf-doc/assets/swfobject.js \
# `echo $$js | sed 's_^debian/python-pyamf-doc/__'` ; \
# done
# remove bundled copies of mootools javascript library
set -e; \
for js in $(shell find debian/python-pyamf-doc -name mootools.js); do \
dh_link -p python-pyamf-doc \
usr/share/javascript/mootools/mootools.js \
`echo $$js | sed 's_^debian/python-pyamf-doc/__'` ; \
done
override_dh_compress:
dh_compress -X.py -X.js
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
# Stripped symbols go into python-pyamf-dbg
dh_strip --dbg-package=python-pyamf-dbg
endif
get-orig-source:
cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
uscan --rename --force-download --watchfile debian/watch --destdir $(CURDIR)
|