Skip to content
Commits on Source (3)
......@@ -3,7 +3,18 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
# that's an ugly hack - no idea why the excutable is not created without this setting and the files need to be moved around later
export PYBUILD_NAME=umis
#PYBUILD_DESTDIR_python3=debian/umis
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
dh_install
mkdir -p debian/$(PYBUILD_NAME)
mv debian/python3-$(PYBUILD_NAME)/usr debian/$(PYBUILD_NAME)
rmdir debian/python3-$(PYBUILD_NAME)
find debian -type d -name __pycache__ | xargs rm -rf
......@@ -11,10 +11,12 @@ if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/test* "${AUTOPKGTEST_TMP}"
cp -a /usr/share/doc/${pkg}/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
gunzip -r *
for gz in $(find . -type f -name "*.gz") ; do
if [ ! -e $(echo $gz | sed 's/\.gz$//') ] ; then gunzip $gz ; fi
done
sh test.sh