Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | # See debhelper(7) (uncomment to enable) |
| 3 | # output every command that modifies files on the build system. |
| 4 | DH_VERBOSE = 1 |
| 5 | |
| 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 | |
| 10 | # see FEATURE AREAS in dpkg-buildflags(1) |
| 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 12 | |
| 13 | # see ENVIRONMENT in dpkg-buildflags(1) |
| 14 | # package maintainers to append CFLAGS |
| 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 16 | # package maintainers to append LDFLAGS |
| 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed |
| 18 | |
Ole Troan | afaa85f | 2017-03-20 21:38:37 +0100 | [diff] [blame] | 19 | export PYBUILD_NAME = vpp-api-python |
| 20 | export PYBUILD_DIR = ../../src/vpp-api/python |
| 21 | export PYBUILD_DESTDIR_python2=debian/vpp-api-python/ |
| 22 | export PYBUILD_DISABLE_python2=test |
| 23 | export PYBUILD_SYSTEM=distutils |
| 24 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 25 | # main packaging script based on dh7 syntax |
| 26 | %: |
Ole Troan | afaa85f | 2017-03-20 21:38:37 +0100 | [diff] [blame] | 27 | dh $@ --with systemd,python2 --buildsystem=pybuild |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 28 | |
| 29 | override_dh_install: |
| 30 | dh_install --exclude .git |
Damjan Marion | a1bd023 | 2016-12-19 19:08:11 +0100 | [diff] [blame] | 31 | ../scripts/remove-rpath . |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 32 | |
Damjan Marion | cb58b23 | 2017-01-03 11:39:51 +0100 | [diff] [blame] | 33 | override_dh_shlibdeps: |
| 34 | @dh_shlibdeps 2>&1 \ |
Gabriel Ganne | addb55b | 2017-11-06 14:09:06 +0100 | [diff] [blame] | 35 | | { grep -v -e "probably a plugin" -e "similar warnings have been skipped" || true; } |
Damjan Marion | cb58b23 | 2017-01-03 11:39:51 +0100 | [diff] [blame] | 36 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 37 | override_dh_strip: |
| 38 | dh_strip --dbg-package=vpp-dbg |