From d8b5cfe317617165c01f787cc021dbca404bc8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=BE=B0=E9=82=A6=E7=9A=84?= <14839777+shen-chenbangs@user.noreply.gitee.com> Date: Thu, 29 Aug 2024 01:32:44 +0000 Subject: [PATCH 1/3] add 0001-modify-perl-libxml-mm.c.patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 沈辰邦的 <14839777+shen-chenbangs@user.noreply.gitee.com> --- 0001-modify-perl-libxml-mm.c.patch | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 0001-modify-perl-libxml-mm.c.patch diff --git a/0001-modify-perl-libxml-mm.c.patch b/0001-modify-perl-libxml-mm.c.patch new file mode 100644 index 0000000..1750a45 --- /dev/null +++ b/0001-modify-perl-libxml-mm.c.patch @@ -0,0 +1,43 @@ +From 1ea163faf5c1c8f46fbdd0a1052128cbd06a3a3d Mon Sep 17 00:00:00 2001 +From: "Shencb@123" <1944340417@qq.com> +Date: Mon, 26 Aug 2024 19:56:30 +0800 +Subject: [PATCH] modify perl-libxml-mm.c + +--- + perl-libxml-mm.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/perl-libxml-mm.c b/perl-libxml-mm.c +index a3e78a2..f4215c4 100644 +--- a/perl-libxml-mm.c ++++ b/perl-libxml-mm.c +@@ -121,7 +121,7 @@ PmmFreeHashTable(xmlHashTablePtr table) + extern SV* PROXY_NODE_REGISTRY_MUTEX; + + /* Utility method used by PmmDumpRegistry */ +-void PmmRegistryDumpHashScanner(void * payload, void * data, xmlChar * name) ++void PmmRegistryDumpHashScanner(void * payload, void * data,const xmlChar * name) + { + LocalProxyNodePtr lp = (LocalProxyNodePtr) payload; + ProxyNodePtr node = (ProxyNodePtr) lp->proxy; +@@ -215,7 +215,7 @@ PmmRegisterProxyNode(ProxyNodePtr proxy) + /* PP: originally this was static inline void, but on AIX the compiler + did not chew it, so I'm removing the inline */ + static void +-PmmRegistryHashDeallocator(void *payload, xmlChar *name) ++PmmRegistryHashDeallocator(void *payload,const xmlChar *name) + { + Safefree((LocalProxyNodePtr) payload); + } +@@ -279,7 +279,7 @@ PmmRegistryREFCNT_dec(ProxyNodePtr proxy) + * internal, used by PmmCloneProxyNodes + */ + void * +-PmmRegistryHashCopier(void *payload, xmlChar *name) ++PmmRegistryHashCopier(void *payload,const xmlChar *name) + { + ProxyNodePtr proxy = ((LocalProxyNodePtr) payload)->proxy; + LocalProxyNodePtr lp; +-- +2.45.2.windows.1 + -- Gitee From a6f434955ce7faf7c1d9035927967d799e759ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=BE=B0=E9=82=A6=E7=9A=84?= <14839777+shen-chenbangs@user.noreply.gitee.com> Date: Thu, 29 Aug 2024 01:33:21 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20perl?= =?UTF-8?q?-XML-LibXML.spec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perl-XML-LibXML.spec | 104 ------------------------------------------- 1 file changed, 104 deletions(-) delete mode 100644 perl-XML-LibXML.spec diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec deleted file mode 100644 index 7207974..0000000 --- a/perl-XML-LibXML.spec +++ /dev/null @@ -1,104 +0,0 @@ -Name: perl-XML-LibXML -Version: 2.0209 -Release: 1 -Epoch: 1 -Summary: Perl Binding for libxml2 -License: (GPL+ or Artistic) and MIT -URL: https://metacpan.org/release/XML-LibXML -Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz - -BuildRequires: coreutils, findutils, glibc-common, libxml2-devel -BuildRequires: perl-interpreter, perl-devel, perl-generators, sed -BuildRequires: perl(Config), perl(Cwd), perl(Devel::CheckLib), perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Spec), perl(lib), perl(strict), perl(Symbol), perl(vars), perl(warnings) -BuildRequires: perl(base), perl(Carp), perl(constant), perl(Data::Dumper), perl(DynaLoader) -BuildRequires: perl(Encode), perl(Exporter), perl(IO::File), perl(IO::Handle), perl(overload) -BuildRequires: perl(parent), perl(Scalar::Util), perl(Tie::Hash), perl(XML::NamespaceSupport) -BuildRequires: perl(XML::SAX::Base), perl(XML::SAX::DocumentLocator), perl(XML::SAX::Exception) -BuildRequires: perl(Errno), perl(locale), perl(POSIX), perl(Test::More), perl(XML::SAX) -BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8), perl(Alien::Base::Wrapper) -BuildRequires: perl(Alien::Libxml2) - -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl-interpreter -Requires(preun): perl-interpreter -Provides: perl-XML-LibXML-Common = %{version} -Obsoletes: perl-XML-LibXML-Common <= 0.13 - -%description -This module is Perl Binding for libxml2, which implements a Perl interface to -the GNOME libxml2 library. This module provides interfaces for parsing and -manipulating XML files and allows Perl programmers to use the highly capable -validating XML parser and the high performance DOM implementation. - -%package help -Summary: man files for perl-XML-LibXML -Requires: man - -%description help -This package includes man files for perl-XML-LibXML. - -%prep -%autosetup -n XML-LibXML-%{version} -p1 -chmod -x *.c -for i in Changes; do - /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i -done - -sed -i -e '/^inc\// d' MANIFEST - -%build -perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -%make_build - -%install -make pure_install DESTDIR=$RPM_BUILD_ROOT NO_PACKLIST=1 -find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete -chmod -R u+w $RPM_BUILD_ROOT/* - -%check -THREAD_TEST=0 make test - -%triggerin -- perl-XML-SAX -for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do - /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \ - 2>/dev/null || : -done - -%preun -if [ $1 -eq 0 ] ; then - for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do - /usr/bin/perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \ - 2>/dev/null || : - done -fi - -%files -%license LICENSE -%doc HACKING.txt README -%{perl_vendorarch}/auto/XML -%{perl_vendorarch}/XML - -%files help -%{_mandir}/man*/* - -%changelog -* Thu Aug 10 2023 liyanan - 1:2.0209-1 -- Update to 2.0209 - -* Thu Jan 19 2023 yangbo - 1:2.0207-4 -- Correct some broken grammar / spelling / syntax / etc - -* Wed Jan 18 2023 yangbo - 1:2.0207-3 -- Add sniffing warning - -* Fri Nov 19 2021 yuanxin - 1:2.0207-2 -- delete the old tar package - -* Thu Nov 18 2021 yuanxin - 1:2.0207-1 -- bump to version 2.0207 - -* Wed Jul 22 2020 dingyue - 1:2.0205-1 -- bump to version 2.0205 - -* Tue Nov 26 2019 openEuler Buildteam - 1:2.0132-5 -- Package init -- Gitee From 454bea2c8dab6fbb7f38dfb255434364d9e8b234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=BE=B0=E9=82=A6=E7=9A=84?= <14839777+shen-chenbangs@user.noreply.gitee.com> Date: Thu, 29 Aug 2024 01:33:57 +0000 Subject: [PATCH 3/3] add perl-XML-LibXML.spec. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 沈辰邦的 <14839777+shen-chenbangs@user.noreply.gitee.com> --- perl-XML-LibXML.spec | 109 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 perl-XML-LibXML.spec diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec new file mode 100644 index 0000000..38db786 --- /dev/null +++ b/perl-XML-LibXML.spec @@ -0,0 +1,109 @@ +Name: perl-XML-LibXML +Version: 2.0209 +Release: 2 +Epoch: 1 +Summary: Perl Binding for libxml2 +License: (GPL+ or Artistic) and MIT +URL: https://metacpan.org/release/XML-LibXML +Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz + +Patch1: 0001-modify-perl-libxml-mm.c.patch + +BuildRequires: coreutils, findutils, glibc-common, libxml2-devel +BuildRequires: perl-interpreter, perl-devel, perl-generators, sed +BuildRequires: perl(Config), perl(Cwd), perl(Devel::CheckLib), perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec), perl(lib), perl(strict), perl(Symbol), perl(vars), perl(warnings) +BuildRequires: perl(base), perl(Carp), perl(constant), perl(Data::Dumper), perl(DynaLoader) +BuildRequires: perl(Encode), perl(Exporter), perl(IO::File), perl(IO::Handle), perl(overload) +BuildRequires: perl(parent), perl(Scalar::Util), perl(Tie::Hash), perl(XML::NamespaceSupport) +BuildRequires: perl(XML::SAX::Base), perl(XML::SAX::DocumentLocator), perl(XML::SAX::Exception) +BuildRequires: perl(Errno), perl(locale), perl(POSIX), perl(Test::More), perl(XML::SAX) +BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8), perl(Alien::Base::Wrapper) +BuildRequires: perl(Alien::Libxml2) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl-interpreter +Requires(preun): perl-interpreter +Provides: perl-XML-LibXML-Common = %{version} +Obsoletes: perl-XML-LibXML-Common <= 0.13 + +%description +This module is Perl Binding for libxml2, which implements a Perl interface to +the GNOME libxml2 library. This module provides interfaces for parsing and +manipulating XML files and allows Perl programmers to use the highly capable +validating XML parser and the high performance DOM implementation. + +%package help +Summary: man files for perl-XML-LibXML +Requires: man + +%description help +This package includes man files for perl-XML-LibXML. + +%prep +%autosetup -n XML-LibXML-%{version} -p1 +chmod -x *.c +for i in Changes; do + /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i +done + +sed -i -e '/^inc\// d' MANIFEST + +%build +perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT NO_PACKLIST=1 +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +THREAD_TEST=0 make test + +%triggerin -- perl-XML-SAX +for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do + /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \ + 2>/dev/null || : +done + +%preun +if [ $1 -eq 0 ] ; then + for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do + /usr/bin/perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \ + 2>/dev/null || : + done +fi + +%files +%license LICENSE +%doc HACKING.txt README +%{perl_vendorarch}/auto/XML +%{perl_vendorarch}/XML + +%files help +%{_mandir}/man*/* + +%changelog +* Tue Aug 27 2024 shenchenbangs <1944340417@qq.com> - 1:2.0209-2 +- Update to 2.0209 + +* Thu Aug 10 2023 liyanan - 1:2.0209-1 +- Update to 2.0209 + +* Thu Jan 19 2023 yangbo - 1:2.0207-4 +- Correct some broken grammar / spelling / syntax / etc + +* Wed Jan 18 2023 yangbo - 1:2.0207-3 +- Add sniffing warning + +* Fri Nov 19 2021 yuanxin - 1:2.0207-2 +- delete the old tar package + +* Thu Nov 18 2021 yuanxin - 1:2.0207-1 +- bump to version 2.0207 + +* Wed Jul 22 2020 dingyue - 1:2.0205-1 +- bump to version 2.0205 + +* Tue Nov 26 2019 openEuler Buildteam - 1:2.0132-5 +- Package init -- Gitee