Name tpm2-tss
Description
Version
Package Base
Homepage
Maintainers ['Mathieu Trudel-Lapierre <cyphermox@ubuntu.com>']
Contributors ['Ivan Hu <ivan.hu@ubuntu.com>', 'Mario Limonciello <superm1@gmail.com>', 'Ying-Chun Liu (PaulLiu) <paulliu@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/tpm2-tss/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/0001_disable_fapi_io_test.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/0002-fix-version.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/0003-test-unit-tcti-libtpms-fix-test-failed-at-32-bit-pla.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/0004-tss2-tcti-tcti-libtpms-fix-test-failure-on-big-endia.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/disable-tests-on-big-endian.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/fix-tcti-spi-helper-big-endian.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/tpm2-tss/plain/debian/watch?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['dpkg-dev', 'acl', 'autoconf', 'autoconf-archive', 'debhelper-compat', 'docbook-xml', 'docbook-xsl', 'doxygen', 'libcmocka-dev', 'libcurl4-openssl-dev | libcurl-dev', 'libjson-c-dev', 'libltdl-dev', 'libssl-dev', 'libtool', 'libtpms-dev', 'pkg-config', 'tpm-udev', 'uuid-dev', 'xsltproc']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

%:
	dh $@

override_dh_autoreconf:
	export LIBDL_LDFLAGS="-ldl"
	dh_autoreconf ./bootstrap

ifeq ($(DEB_HOST_ARCH),armhf)
# The tests depend on mocking functions like open, read etc which get renamed
# by the glibc headers when _FILE_BITS==64, see
# https://github.com/tpm2-software/tpm2-tss/issues/2786
override_dh_auto_test-arch:
	true
endif

override_dh_auto_configure:
	dh_auto_configure -- --enable-unit --enable-doxygen-doc

override_dh_autoreconf_clean:
	rm -f compile depcomp ltmain.sh config.sub missing config.guess \
		install-sh m4/ltoptions.m4 m4/ltversion.m4 m4/libtool.m4 \
		m4/ltsugar.m4 m4/lt\~obsolete.m4
	dh_autoreconf_clean

override_dh_auto_build: resourcemgr.1 tpmclient.1 tpmtest.1
	dh_auto_build

override_dh_install:
	find debian/tmp \( -name '*.la' -o -name '*.a' \) -delete
	dh_install

resourcemgr.1: debian/resourcemgr.xml
	$(XP) $(DB2MAN) $<

tpmclient.1: debian/tpmclient.xml
	$(XP) $(DB2MAN) $<

tpmtest.1: debian/tpmtest.xml
	$(XP) $(DB2MAN) $<