Name libseccomp2
Description high level interface to Linux seccomp filter
Version 2.6.0-2
Package Base libseccomp
Homepage https://github.com/seccomp/libseccomp
Maintainers ['Kees Cook <kees@debian.org>']
Contributors ['Felix Geyer <fgeyer@debian.org>', 'Luca Bruno <lucab@debian.org>']
Distro-repo https://salsa.debian.org/debian/libseccomp
Sources ['https://sources.debian.org/data/main/libs/libseccomp/2.6.0-2/debian/watch', 'https://sources.debian.org/src/libseccomp/2.6.0-2/debian/patches/api_fix_seccomp_export_bpf_mem_out-of-bounds_read.patch', 'https://sources.debian.org/src/libseccomp/2.6.0-2/debian/patches/hash_fix_strict_aliasing_UB_in_MurMur_hash_implementation.patch', 'https://sources.debian.org/src/libseccomp/2.6.0-2/debian/patches/python_single_version_externally_managed.patch', 'https://sources.debian.org/src/libseccomp/2.6.0-2/debian/patches/series', 'https://sources.debian.org/src/libseccomp/2.6.0-2/debian/patches/tests_remove_the_fuzzer_from_test_62-sim-arch_transactions.patch']
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>', 'gperf']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 89d5138e05fb6a86b9afd8b54dc0fb4b14f4c27c05e6c5f767c2132bdf808531
#!/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
include /usr/share/dpkg/buildopts.mk

export LIBSECCOMP_TSTCFG_JOBS=$(DEB_BUILD_OPTION_PARALLEL)

%:
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