rules 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/make -f
  2. # See debhelper(7) (uncomment to enable)
  3. # output every command that modifies files on the build system.
  4. #export DH_VERBOSE = 1
  5. export PYBUILD_NAME = qubesadmin
  6. # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
  7. DPKG_EXPORT_BUILDFLAGS = 1
  8. include /usr/share/dpkg/default.mk
  9. # see FEATURE AREAS in dpkg-buildflags(1)
  10. #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  11. # see ENVIRONMENT in dpkg-buildflags(1)
  12. # package maintainers to append CFLAGS
  13. #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
  14. # package maintainers to append LDFLAGS
  15. #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
  16. # main packaging script based on dh7 syntax
  17. %:
  18. dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
  19. override_dh_auto_build: export http_proxy=127.0.0.1:9
  20. override_dh_auto_build: export https_proxy=127.0.0.1:9
  21. override_dh_auto_build:
  22. dh_auto_build
  23. PYTHONPATH=. sphinx-build -N -bhtml doc build/html
  24. PYTHONPATH=. sphinx-build -N -bman doc build/man
  25. override_dh_auto_install:
  26. dh_auto_install
  27. mkdir -p debian/qubes-core-admin-client/usr/bin
  28. mv debian/python3-qubesadmin/usr/bin/* debian/qubes-core-admin-client/usr/bin/
  29. install -d debian/qubes-core-admin-client/usr/share/man/man1
  30. install -m 0644 build/man/* \
  31. debian/qubes-core-admin-client/usr/share/man/man1/
  32. # debmake generated override targets
  33. # This is example for Cmake (See http://bugs.debian.org/641051 )
  34. #override_dh_auto_configure:
  35. # dh_auto_configure -- \
  36. # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)