diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..13bce19 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,8 @@ +libxml-libxml-perl for Debian + +Please edit this to provide information specific to +this libxml-libxml-perl Debian package. + + (Automatically generated by debmake Version 4.3.1) + + -- sufang Wed, 07 Sep 2022 15:30:14 +0800 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c77aada --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libxml-libxml-perl (2.0207-ok1) yangtze; urgency=medium + + * Build for openkylin. + + -- sufang Wed, 07 Sep 2022 15:30:14 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..47f1358 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: libxml-libxml-perl +Section: perl +Priority: optional +Maintainer: OpenKylin Developers +Build-Depends: debhelper-compat (= 13), + libdevel-checklib-perl, + libxml-namespacesupport-perl , + libxml-sax-perl , + libxml2-dev, + perl-xs-dev, + perl:native, + pkg-config, + zlib1g-dev +Standards-Version: 4.6.0 +Vcs-Browser: https://gitee.com/openkylin/libxml-libxml-perl +Vcs-Git: https://gitee.com/openkylin/libxml-libxml-perl.git +Homepage: https://metacpan.org/release/XML-LibXML +Testsuite: autopkgtest-pkg-perl +Rules-Requires-Root: no + +Package: libxml-libxml-perl +Architecture: any +Depends: ${misc:Depends}, + ${perl:Depends}, + ${shlibs:Depends}, + libxml-namespacesupport-perl, + libxml-sax-perl +Description: Perl interface to the libxml2 library + XML::LibXML is a Perl interface to the GNOME libxml2 library, which provides + interfaces for parsing and manipulating XML files. This module allows Perl + programmers to make use of the highly capable validating XML parser and the + high performance Document Object Model (DOM) implementation. Additionally, it + supports using the XML Path Language (XPath) to find and extract information. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..52845e3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,370 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libxml-libxml-perl +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: Av_CharPtrPtr.c + Av_CharPtrPtr.h + Changes + HACKING.txt + LibXML.pod + MANIFEST + META.json + META.yml + README + TODO + example/cb_example.pl + example/utf-16-1.html + example/utf-16-2.html + example/utf-16-2.xml + example/xpath.pl + lib/XML/LibXML/AttributeHash.pm + perl-libxml-mm.h + perl-libxml-sax.h + scripts/bump-version-number.pl + scripts/fast-eumm.pl + scripts/prints-to-comments.pl + scripts/tag-release.pl + scripts/total-build-and-test.bash + scripts/update-HACKING-file.bash + t/00-report-prereqs.t + t/01basic.t + t/02parse.t + t/03doc.t + t/04node.t + t/05text.t + t/06elements.t + t/07dtd.t + t/08findnodes.t + t/09xpath.t + t/10ns.t + t/11memory.t + t/12html.t + t/13dtd.t + t/14sax.t + t/15nodelist.t + t/16docnodes.t + t/17callbacks.t + t/18docfree.t + t/19encoding.t + t/20extras.t + t/21catalog.t + t/23rawfunctions.t + t/24c14n.t + t/25relaxng.t + t/26schema.t + t/27new_callbacks_simple.t + t/28new_callbacks_multiple.t + t/29id.t + t/30keep_blanks.t + t/30xpathcontext.t + t/31xpc_functions.t + t/32xpc_variables.t + t/35huge_mode.t + t/40reader.t + t/40reader_mem_error.t + t/41xinclude.t + t/42common.t + t/43options.t + t/44extent.t + t/45regex.t + t/46err_column.t + t/47load_xml_callbacks.t + t/48_RH5_double_free_rt83779.t + t/48_SAX_Builder_rt_91433.t + t/48_gh_pr63_detect_undef_values.t + t/48_memleak_rt_83744.t + t/48_removeChild_crashes_rt_80395.t + t/48_replaceNode_DTD_nodes_rT_80521.t + t/48_rt123379_setNamespace.t + t/48_rt55000.t + t/48_rt93429_recover_2_in_html_parsing.t + t/48importing_nodes_IDs_rt_69520.t + t/49callbacks_returning_undef.t + t/49global_extent.t + t/50devel.t + t/51_parse_html_string_rt87089.t + t/60struct_error.t + t/61error.t + t/62overload.t + t/71overloads.t + t/72destruction.t + t/80registryleak.t + t/90shared_clone_failed_rt_91800.t + t/90stack.t + t/90threads.t + t/91unique_key.t + t/cpan-changes.t + t/lib/Collector.pm + t/lib/Counter.pm + t/lib/Stacker.pm + t/lib/TestHelpers.pm + t/pod-files-presence.t + t/pod.t + t/release-kwalitee.t + t/style-trailing-space.t + test/xinclude/entity.txt + typemap + xpath.h + xpathcontext.h +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +Files: lib/XML/LibXML/Attr.pod + lib/XML/LibXML/CDATASection.pod + lib/XML/LibXML/Comment.pod + lib/XML/LibXML/Common.pod + lib/XML/LibXML/DOM.pod + lib/XML/LibXML/Document.pod + lib/XML/LibXML/DocumentFragment.pod + lib/XML/LibXML/Dtd.pod + lib/XML/LibXML/Element.pod + lib/XML/LibXML/ErrNo.pod + lib/XML/LibXML/Error.pod + lib/XML/LibXML/InputCallback.pod + lib/XML/LibXML/Namespace.pod + lib/XML/LibXML/Node.pod + lib/XML/LibXML/PI.pod + lib/XML/LibXML/Parser.pod + lib/XML/LibXML/Pattern.pod + lib/XML/LibXML/Reader.pod + lib/XML/LibXML/RegExp.pod + lib/XML/LibXML/RelaxNG.pod + lib/XML/LibXML/SAX.pod + lib/XML/LibXML/SAX/Builder.pod + lib/XML/LibXML/Schema.pod + lib/XML/LibXML/Text.pod + lib/XML/LibXML/XPathContext.pod + lib/XML/LibXML/XPathExpression.pod + ppport.h +Copyright: __NO_COPYRIGHT__ in: lib/XML/LibXML/Attr.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/CDATASection.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Comment.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Common.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/DOM.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Document.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/DocumentFragment.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Dtd.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Element.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/ErrNo.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Error.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/InputCallback.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Namespace.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Node.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/PI.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Parser.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Pattern.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Reader.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/RegExp.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/RelaxNG.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/SAX.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/SAX/Builder.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Schema.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/Text.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/XPathContext.pod + __NO_COPYRIGHT__ in: lib/XML/LibXML/XPathExpression.pod + __NO_COPYRIGHT__ in: ppport.h +License: Perl + This program is free software; you can redistribute it and/or + modify it under the same terms as Perl itself. + +Files: LibXML.pm + LibXML.xs + Makefile.PL + dom.c + example/xmllibxmldocs.pl + lib/XML/LibXML/Boolean.pm + lib/XML/LibXML/Common.pm + lib/XML/LibXML/Devel.pm + lib/XML/LibXML/ErrNo.pm + lib/XML/LibXML/Error.pm + lib/XML/LibXML/Literal.pm + lib/XML/LibXML/NodeList.pm + lib/XML/LibXML/Number.pm + lib/XML/LibXML/Reader.pm + lib/XML/LibXML/SAX.pm + lib/XML/LibXML/SAX/Builder.pm + lib/XML/LibXML/SAX/Generator.pm + lib/XML/LibXML/SAX/Parser.pm + lib/XML/LibXML/XPathContext.pm + perl-libxml-sax.c + xpath.c +Copyright: 2001-2003 AxKit.com Ltd., 2002-2006 Christian Glahn, 2006-2009 Petr Pajas + 2003 christian p. glahn + 2011 Joachim Zobel +License: __NO_LICENSE__ + +Files: example/create-sample-html-document.pl + scripts/Test.pm-to-Test-More.pl + t/19die_on_invalid_utf8_rt_58848.t + t/49_load_html.t + t/60error_prev_chain.t +Copyright: 2011-2016 Shlomi Fish +License: Expat + This program is distributed under the MIT (X11) License: + L + . + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +Files: t/48_reader_undef_warning_on_empty_str_rt106830.t +Copyright: 2015 Shlomi Fish +License: Expat + This program is distributed under the MIT (Expat) License: + L + . + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + +Files: dom.h +Copyright: __NO_COPYRIGHT__ in: dom.h +License: __HEADER___ + This header file provides some definitions for wrapper functions. + These functions hide most of libxml2 code, and should make the + code in the XS file more readable . + . + The Functions are sorted in four parts: + part 0 ..... general wrapper functions which do not belong + to any of the other parts and not specified in DOM. + part A ..... wrapper functions for general nodeaccess + part B ..... document wrapper + part C ..... element wrapper + . + I did not implement any Text, CDATASection or comment wrapper functions, + since it is pretty straightforeward to access these nodes. + +Files: perl-libxml-mm.c +Copyright: 2001-2003 AxKit.com Ltd., 2002-2006 Christian Glahn, 2006-2009 Petr Pajas +License: __UNKNOWN__ + Basic concept: + perl varies in the implementation of UTF8 handling. this header (together + with the c source) implements a few functions, that can be used from within + the core module inorder to avoid cascades of c pragmas + +Files: Devel.xs +Copyright: 2011 Joachim Zobel +License: __UNKNOWN__ + This module gives external access to the functions needed to create + and use XML::LibXML::Nodes from C functions. These functions are made + accessible from Perl to have cleaner dependencies. + The idea is to pass xmlNode * pointers (as typemapped void *) to and + from Perl and call the functions that turns them to and from + XML::LibXML::Nodes there. + . + Be aware that using this module gives you the ability to easily create + segfaults and memory leaks. + +#---------------------------------------------------------------------------- +# xml and html files (skipped): +# docs/libxml.dbk +# t/data/callbacks_returning_undef.xml +# t/data/chinese.xml +# test/textReader/countries.xml +# test/xinclude/xinclude.xml +# test/xinclude/test.xml +# test/schema/demo.xml +# test/schema/invaliddemo.xml +# test/schema/schema.xsd +# test/schema/net.xsd +# test/schema/badschema.xsd +# test/relaxng/demo.xml +# test/relaxng/demo4.rng +# test/relaxng/invaliddemo.xml +# test/relaxng/net.rng +# test/relaxng/demo.rng +# test/relaxng/badschema.rng +# test/relaxng/demo2.rng +# test/relaxng/schema.rng +# test/relaxng/demo3.rng +# example/dtd.xml +# example/enc_latin2.html +# example/test.dtd +# example/enc2_latin2.html +# example/article_internal_bad.xml +# example/bad.dtd +# example/article.xml +# example/article_internal.xml +# example/article_bad.xml +# example/bad.xml +# example/yahoo-finance-html-with-errors.html +# example/test.xhtml +# example/ns.xml +# example/test2.xml +# example/article_external_bad.xml +# example/JBR-ALLENtrees.htm +# example/test3.xml +# example/test4.xml +# example/catalog.xml +# example/ext_ent.dtd +# example/test.html +# example/test.xml +# example/dromeds.xml +# example/thedieline.rss +# example/xmlns/badguy.xml +# example/xmlns/goodguy.xml +# example/complex/complex.xml +# example/complex/complex2.xml +# example/complex/complex.dtd +# example/complex/dtd/f.dtd +# example/complex/dtd/g.dtd + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. + +#---------------------------------------------------------------------------- +# License file: LICENSE + LICENSE + ======= + . + This is free software, you may use it and distribute it under the same terms as + Perl itself. + . + Copyright 2001-2003 AxKit.com Ltd., 2002-2006 Christian Glahn, 2006-2009 Petr + Pajas + . + . + DISCLAIMER + ========== + . + THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY + WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A + PARTICULAR PURPOSE. + . diff --git a/debian/libxml-libxml-perl.examples b/debian/libxml-libxml-perl.examples new file mode 100644 index 0000000..0bbe99e --- /dev/null +++ b/debian/libxml-libxml-perl.examples @@ -0,0 +1 @@ +example/* diff --git a/debian/libxml-libxml-perl.postinst b/debian/libxml-libxml-perl.postinst new file mode 100644 index 0000000..46f3c50 --- /dev/null +++ b/debian/libxml-libxml-perl.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + update-perl-sax-parsers --add XML::LibXML::SAX::Parser + update-perl-sax-parsers --add XML::LibXML::SAX + update-perl-sax-parsers --update +fi + +#DEBHELPER# diff --git a/debian/libxml-libxml-perl.prerm b/debian/libxml-libxml-perl.prerm new file mode 100644 index 0000000..0e75bb8 --- /dev/null +++ b/debian/libxml-libxml-perl.prerm @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +if [ "$1" = "remove" -o "$1" = "upgrade" ]; then + update-perl-sax-parsers --remove XML::LibXML::SAX::Parser + update-perl-sax-parsers --remove XML::LibXML::SAX + update-perl-sax-parsers --update +fi + +#DEBHELPER# diff --git a/debian/lintian-overrides b/debian/lintian-overrides new file mode 100644 index 0000000..6a326f5 --- /dev/null +++ b/debian/lintian-overrides @@ -0,0 +1,2 @@ +national-encoding usr/share/doc/libxml-libxml-perl/examples/enc2_latin2.html +national-encoding usr/share/doc/libxml-libxml-perl/examples/enc_latin2.html diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f10c36b --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/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) + +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)" diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/pkg-perl/smoke-files b/debian/tests/pkg-perl/smoke-files new file mode 100644 index 0000000..e61b3b6 --- /dev/null +++ b/debian/tests/pkg-perl/smoke-files @@ -0,0 +1,3 @@ +t +test +example diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip new file mode 100644 index 0000000..d860eb9 --- /dev/null +++ b/debian/tests/pkg-perl/smoke-skip @@ -0,0 +1,7 @@ +# need files we remove during repackaging +t/01basic.t +t/49_load_html.t +t/19die_on_invalid_utf8_rt_58848.t +t/60error_prev_chain.t +# author test, needs POD files not preset during autopkgtest +t/pod-files-presence.t diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..7ee94b1 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +--- +Archive: CPAN +Bug-Database: https://github.com/shlomif/perl-XML-LibXML/issues +Bug-Submit: https://github.com/shlomif/perl-XML-LibXML/issues/new +Repository: https://github.com/shlomif/perl-XML-LibXML.git +Repository-Browse: https://github.com/shlomif/perl-XML-LibXML diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..8a741b8 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +options=dversionmangle=s/\+dfsg//,repacksuffix=+dfsg \ +https://metacpan.org/release/XML-LibXML .*/XML-LibXML-v?@ANY_VERSION@@ARCHIVE_EXT@$