Name libseccomp2
Description high level interface to Linux seccomp filter
Version 2.5.5-1ubuntu3.1
Package Base libseccomp
Homepage https://github.com/seccomp/libseccomp
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Felix Geyer <fgeyer@debian.org>', 'Luca Bruno <lucab@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/libseccomp/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libseccomp/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libseccomp/plain/debian/patches/python_Fix_distutils_DeprecationWarning.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libseccomp/plain/debian/patches/python_single_version_externally_managed.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libseccomp/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libseccomp2/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'linux-libc-dev', 'dh-python <!nopython>', 'python3-all-dev', 'libpython3-all-dev <!nopython>', 'cython3', 'python3-setuptools <!nopython>', 'valgrind [amd64 arm64 armhf i386 mips mips64 powerpc ppc64 ppc64el s390x] <!nocheck>', 'gperf']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 33fc96f1e008d27c042a3db9bcd16f7f4d49e866f7a3141b758a799328dbdc3f
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Enable verbose build details.
export V=1

include /usr/share/dpkg/architecture.mk

%:
ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
	dh $@ --with python3
else
	dh $@
endif

ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),)

override_dh_auto_install:
	dh_auto_install
	for pyver in `py3versions -s`; do \
		set -e; \
		if python3 -c "pyver=tuple(map(int, '$$pyver'[6:].split('.'))); exit(0 if pyver >= (3,8) else 1)"; then \
			export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \
		else \
			export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_m_${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \
		fi; \
		dh_auto_configure -- --enable-python PYTHON=$$pyver; \
		dh_auto_install --sourcedirectory=src/python -- PYTHON=$$pyver; \
	done
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f regression.out