Name libxml-libxml-perl
Description Perl interface to the libxml2 library
Version 2.0207+dfsg+really+2.0134-5
Package Base libxml-libxml-perl
Homepage https://metacpan.org/release/XML-LibXML
Maintainers ['Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>']
Contributors ['Nick Morrott <knowledgejunkie@gmail.com>', 'gregor herrmann <gregoa@debian.org>']
Distro-repo https://salsa.debian.org/perl-team/modules/packages/libxml-libxml-perl
Sources ['https://sources.debian.org/data/main/libx/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/watch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/0001-initialize-xmlValidCtxt.patch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/0001-libxml-mm-Fix-function-prototypes-in-function-pointe.patch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/0001-t-35huge_mode.t-fix-test-with-libxml2-2.11.patch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/disable_runtime-version_warning.patch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/fail-build-no-libxml2.patch', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/series', 'https://sources.debian.org/src/libxml-libxml-perl/2.0207+dfsg+really+2.0134-5/debian/patches/test_against_runtime-version.patch']
Dependencies ['libc6', 'libxml-namespacesupport-perl', 'libxml-sax-perl', 'libxml2', 'perl', 'perlapi-5.40.0']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'libdevel-checklib-perl', 'libxml-namespacesupport-perl <!nocheck>', 'libxml-sax-perl <!nocheck>', 'libxml2-dev', 'perl-xs-dev', 'perl', 'pkgconf', 'zlib1g-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 2b75eb594b4fcddffece91e0e25d4ecbcef5f8abc4044f0b022809822cf84f44
#!/usr/bin/make -f

include /usr/share/dpkg/buildtools.mk

# skip tests that need files we remove in the +dfsg version
SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))

XML_LIBS := $(shell $(PKG_CONFIG) --libs   libxml-2.0)
XML_INC  := $(shell $(PKG_CONFIG) --cflags libxml-2.0)

XML_VER           := $(shell $(PKG_CONFIG) --modversion libxml-2.0)
XML_VER_MAJOR      = $(shell echo $(XML_VER) | cut -f 1 -d .)
XML_VER_MINOR      = $(shell echo $(XML_VER) | cut -f 2 -d .)
XML_VER_CUR        = $(XML_VER_MAJOR).$(XML_VER_MINOR)
XML_VER_NEXT       = $(XML_VER_MAJOR).$(shell expr $(XML_VER_MINOR) + 1)
XML_VER_DEBIAN     = $(shell dpkg-query -Wf '$${source:Version}' libxml2-dev)
ifeq (,$(findstring +really,$(XML_VER_DEBIAN)))
XML_VER_SUBST      = -Vlibxml:Depends="libxml2 (>= $(XML_VER_CUR)), libxml2 (<< $(XML_VER_NEXT)~)"
else
XML_VER_SUBST      = -Vlibxml:Depends="libxml2 (>= $(XML_VER_DEBIAN))"
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

# we want to use the system version of included modules, so
# we move the inc away and move it back afterwards
override_dh_auto_clean:
	dh_auto_clean
	[ ! -d $(CURDIR)/inc.save ] || mv $(CURDIR)/inc.save $(CURDIR)/inc

override_dh_auto_configure:
	[ ! -d $(CURDIR)/inc ] || mv $(CURDIR)/inc $(CURDIR)/inc.save
	SKIP_SAX_INSTALL=1 dh_auto_configure -- LIBS="$(XML_LIBS)" INC="$(XML_INC)"

override_dh_auto_test:
	dh_auto_test -- TEST_FILES="$(TEST_FILES)"

override_dh_gencontrol:
	dh_gencontrol -- $(XML_VER_SUBST)