Summary: Perl interface to the libxml2 library Summary(ja): libxml2 ライブラリへの Perl インターフェイス Name: perl-XML-LibXML # NOTE: also update perl-XML-LibXSLT to a compatible version, see # https://bugzilla.redhat.com/show_bug.cgi?id=469480 # it might not be needed anymore # this module is maintained, the other is notVersion: 2.0207 Version: 2.0210 Release: 1%{?_dist_release} Group: programming Vendor: Project Vine Distribution: Vine Linux License: GPL+ or Artistic URL: https://metacpan.org/pod/XML::LibXML Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz # Fix parsing ampersand entities in SAX interface, CPAN RT#131498, # posted to the upstream. Patch0: XML-LibXML-2.0202-Parse-an-ampersand-entity-in-SAX-interface.patch # To reduce dependencies replace Alien::Libxml2 with pkg-config Patch1: XML-LibXML-2.0208-Use-pkgconfig-instead-of-Alien-Libxml2.patch # for tests with libxml2 >= 2.13 # https://github.com/shlomif/perl-XML-LibXML/pull/87 Patch2: pr87.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libxcrypt-devel BuildRequires: libxml2-devel BuildRequires: perl(XML::NamespaceSupport) BuildRequires: perl(XML::SAX) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') Requires: perl(:MODULE_COMPAT_%perl_abi_version) Provides: perl-XML-LibXML-Common = %{version} Obsoletes: perl-XML-LibXML-Common <= 0.13 %{?perl_default_filter} # Filter modules bundled for tests %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Collector\\)\s*$ %global __requires_exclude %{__requires_exclude}|^perl\\(Counter)\s*$ %global __requires_exclude %{__requires_exclude}|^perl\\(Stacker)\s*$ %global __requires_exclude %{__requires_exclude}|^perl\\(TestHelpers)\s*$ %description This module implements 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 DOM implementation. %debug_package %prep %autosetup -p1 -n XML-LibXML-%{version} 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 perl -i -pe 's/\r\n/\n/' t/91unique_key.t # Help file to recognise the Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor \ OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %__rm -rf $RPM_BUILD_ROOT %{make_install} find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot}/* %check unset AUTHOR_TESTING RELEASE_TESTING export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') THREAD_TEST=0 make test %triggerin -- perl-XML-SAX for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do 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 perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \ 2>/dev/null || : done fi %files %defattr(-,root,root,-) %doc Changes LICENSE README %{perl_vendorarch}/auto/XML %{perl_vendorarch}/XML %{_mandir}/man3/*.3* %changelog * Sat Jun 14 2025 Tomohiro "Tomo-p" KATO 2.0210-1 - new upstream release. - built with perl-5.40. * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO 2.0207-1 - new upstream release. - built with perl-5.34.0. * Sat May 18 2019 Tomohiro "Tomo-p" KATO 2.0200-2 - rebuilt with perl-5.26. * Tue May 14 2019 Tomohiro "Tomo-p" KATO 2.0200-1 - new upstream release. - added BR:libxcrypt-devel. * Sun Nov 30 2014 Ryoichi INAGAKI 2.0117-1 - new upstream release. - built with libxml2 2.9.2 - added Japanese summary * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO 2.0116-1 - new upstream release. * Sun Mar 27 2011 Yoji TOYODA - 1.70-2 - rebuild with perl-5.12.3 * Thu Aug 12 2010 Munehiro Yamamoto - 1.70-1 - new upstream release * Fri May 07 2010 Marcela Maslanova - 1:1.70-5 - Mass rebuild with perl-5.12.0 * Fri Jan 8 2010 Marcela Mašláňová - 1:1.70-4 - remove BR XML::LibXML::Common * Mon Nov 30 2009 Marcela Mašláňová - 1:1.70-3 - corrected version of obsoletes * Thu Nov 26 2009 Marcela Mašláňová - 1:1.70-2 - 541605 this package now contains XML::LibXML::Common * Fri Nov 20 2009 Marcela Mašláňová - 1:1.70-1 - update to fix 539102 * Sun Jul 26 2009 Fedora Release Engineering - 1:1.69-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1:1.69-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Dec 11 2008 Marcela Mašláňová - 1:1.69-1 - update to 1.69 * Fri Aug 01 2008 Lubomir Rintel - 1:1.66-2 - Supress warning about nonexistent file in perl-XML-SAX install trigger * Sat May 31 2008 Ryoichi INAGAKI - 1.66-1 - new upsteream release - built with perl-5.10.0-2 - changed Group to Development/Libraries * Sun Jul 16 2006 Ryoichi INAGAKI - 1.58-2vl2 - changed Group to Development/Languages - rebuilt with libxml2-2.6.26 * Sun Apr 2 2006 Ryoichi INAGAKI - 1.58-2vl1 - rebuilt for Vine Linux * Fri Feb 10 2006 Jesse Keating - 1.58-2.2.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.58-2.2.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Feb 03 2006 Jason Vas Dias - 1.58-2.2 - rebuild for new perl-5.8.8 * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcc * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcj * Sat Mar 19 2005 Joe Orton 1.58-2 - rebuild * Sun Apr 18 2004 Ville Skyttä - 1.58-1 - #121168 - Update to 1.58. - Require perl(:MODULE_COMPAT_*). - Handle ParserDetails.ini parser registration. - BuildRequires libxml2-devel. - Own installed directories. * Fri Feb 27 2004 Chip Turner - 1.56-1 - Specfile autogenerated.