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 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
# Don't build nvdimm binary packages on those architectures.
# We do it this way since we can't set excluded Architectures
# for binary packages in debian/control but it's easier to keep track
# of the architectures we don't want than all the arches we do want
# The arch list comes from https://buildd.debian.org/status/package.php?p=ndctl
ifneq (,$(filter hppa ia64 powerpc powerpcspe x32,$(DEB_HOST_ARCH)))
CONF_FLAGS += --without-nvdimm
BUILD_PACKAGES = -Nlibblockdev-nvdimm-dev -Nlibblockdev-nvdimm2
endif
%:
dh $@ --with python3,gir $(BUILD_PACKAGES)
override_dh_auto_configure:
dh_auto_configure -- \
--disable-tests \
--without-s390 \
--without-python2 \
$(CONF_FLAGS)
$(NULL)
override_dh_install:
find debian -name '*.la' -print -delete
dh_install
override_dh_missing:
dh_missing --fail-missing
override_dh_makeshlibs:
dh_makeshlibs -- -c4
|