#!/usr/bin/make -f # DH_VERBOSE := 1 export LC_ALL=C.UTF-8 include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS=hardening=+all %: dh $@ --buildsystem pybuild --with python3 execute_before_dh_auto_build: # FIXME: we pull the zran files from indexed-gzip source package, which # does not expose this file in its binary package, so this is vendored # for the moment. Upstream originally vendored these files straight in # src/, but stopped for whatever reason, possibly introduction of a # library somewhere at some point. See #1038995 to track packaging. cp --no-clobber debian/zran/* src/ execute_after_dh_installdocs: # Deduplicate changelog entries flagged by lintian. rm debian/pyfastx/usr/share/doc/pyfastx/docs/changelog.rst* cd debian/pyfastx/usr/share/doc/pyfastx/docs \ && ln -s ../changelog.gz changelog.rst.gz execute_after_dh_installexamples: # Remove duplicate uncompressed files caused by the nature of the test; # we can get them back during the CLI test. rm debian/pyfastx/usr/share/doc/pyfastx/examples/test.fa rm debian/pyfastx/usr/share/doc/pyfastx/examples/test.fq