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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DESTDIR=$(CURDIR)/debian/python3-pypdf2/
PYPDF3DIR=$(CURDIR)/debian/python3-pypdf2/
export PYBUILD_NAME=pypdf2
export PYBUILD_DISABLE=2.7
PYTHON3=$(shell py3versions -vr)
override_dh_clean:
dh_clean
rm -rf $(CURDIR)/build/
build-python%:
python$* setup.py build
override_dh_auto_build: $(PYTHON3:%=build-python%)
dh_auto_build
install-python%:
python$* setup.py install --root=$(DESTDIR) --install-layout=deb
override_dh_auto_install: $(PYTHON3:%=install-python%)
rm -rf $(DESTDIR)/usr/lib/python3/dist-packages/PyPDF2/__pycache__/
dh_auto_install
override_dh_fixperms:
chmod a-x $(PYPDF3DIR)/usr/share/doc/python3-pypdf2/examples/*
dh_fixperms
%:
dh $@ --with python3 --buildsystem=pybuild
.PHONY: override_dh_auto_build override_dh_auto_install override_dh_fixperms
|