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
|
#!/usr/bin/make -f
DEB_PYTHON_SYSTEM=pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
SHARE=$(CURDIR)/debian/python-simpleparse/usr/share
binary-install/python-simpleparse::
# Remove binary-dependant files. They are in a separate package.
rm -rf $(CURDIR)/debian/python-simpleparse/usr/lib
rm -rf $(CURDIR)/debian/python-simpleparse/usr/share/python-support/python-simpleparse/simpleparse/stt/TextTools/mxTextTools/
binary-predeb/python-simpleparse::
# Some cleaning
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/examples
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/doc
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/Doc
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/TextTools/LICENSE
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/TextTools/README
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/TextTools/COPYRIGHT
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/LICENSE
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/COPYRIGHT
rm -rf $(SHARE)/python-support/python-simpleparse/simpleparse/stt/mxLicense.html
binary-predeb/python-simpleparse-doc::
chmod 0644 $(CURDIR)/debian/python-simpleparse-doc/usr/share/doc/python-simpleparse-doc/examples/*
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
binary-post-install/python-simpleparse::
ln -s ../test_printers_garbage.py tests/.
PYTHONPATH=$$(python -c 'import sys ; print "debian/tmp/usr/lib/python%d.%d/site-packages" % sys.version_info[:2]') \
python tests/test.py
rm -f tests/test_printers_garbage.py*
endif
clean::
rm -rf build
rm -f tests/test_printers_garbage.py
|