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
|
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_INTERPRETERS=python3
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
dh_install
sed "s/\(__version__\).*/\1 = '$(DEB_VERSION)'/" -i "$(CURDIR)"/debian/epoptes/usr/lib/python*/dist-packages/epoptes/__init__.py
sed "s/\(VERSION=\).*/\1'$(DEB_VERSION)'/" -i "$(CURDIR)"/debian/epoptes-client/usr/sbin/epoptes-client
sed '/^
override_dh_python3:
dh_python3 --no-guessing-deps
override_dh_auto_clean:
dh_auto_clean
rm -rvf epoptes.egg-info po/epoptes.pot
|