perl-XML-LibXML-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. Summary: Perl interface to the libxml2 library
  2. Summary(ja): libxml2 ライブラリへの Perl インターフェイス
  3. Name: perl-XML-LibXML
  4. # NOTE: also update perl-XML-LibXSLT to a compatible version, see
  5. # https://bugzilla.redhat.com/show_bug.cgi?id=469480
  6. # it might not be needed anymore
  7. # this module is maintained, the other is notVersion: 2.0207
  8. Version: 2.0210
  9. Release: 1%{?_dist_release}
  10. Group: programming
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. License: GPL+ or Artistic
  14. URL: https://metacpan.org/pod/XML::LibXML
  15. Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz
  16. # Fix parsing ampersand entities in SAX interface, CPAN RT#131498,
  17. # posted to the upstream.
  18. Patch0: XML-LibXML-2.0202-Parse-an-ampersand-entity-in-SAX-interface.patch
  19. # To reduce dependencies replace Alien::Libxml2 with pkg-config
  20. Patch1: XML-LibXML-2.0208-Use-pkgconfig-instead-of-Alien-Libxml2.patch
  21. # for tests with libxml2 >= 2.13
  22. # https://github.com/shlomif/perl-XML-LibXML/pull/87
  23. Patch2: pr87.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. BuildRequires: libxcrypt-devel
  26. BuildRequires: libxml2-devel
  27. BuildRequires: perl(XML::NamespaceSupport)
  28. BuildRequires: perl(XML::SAX)
  29. BuildRequires: perl(ExtUtils::MakeMaker)
  30. BuildRequires: perl(Test::More)
  31. Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
  32. Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
  33. Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
  34. Requires: perl(:MODULE_COMPAT_%perl_abi_version)
  35. Provides: perl-XML-LibXML-Common = %{version}
  36. Obsoletes: perl-XML-LibXML-Common <= 0.13
  37. %{?perl_default_filter}
  38. # Filter modules bundled for tests
  39. %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
  40. %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Collector\\)\s*$
  41. %global __requires_exclude %{__requires_exclude}|^perl\\(Counter)\s*$
  42. %global __requires_exclude %{__requires_exclude}|^perl\\(Stacker)\s*$
  43. %global __requires_exclude %{__requires_exclude}|^perl\\(TestHelpers)\s*$
  44. %description
  45. This module implements a Perl interface to the GNOME libxml2 library
  46. which provides interfaces for parsing and manipulating XML files. This
  47. module allows Perl programmers to make use of the highly capable
  48. validating XML parser and the high performance DOM implementation.
  49. %debug_package
  50. %prep
  51. %autosetup -p1 -n XML-LibXML-%{version}
  52. chmod -x *.c
  53. for i in Changes; do
  54. /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i
  55. done
  56. perl -i -pe 's/\r\n/\n/' t/91unique_key.t
  57. # Help file to recognise the Perl scripts
  58. for F in t/*.t; do
  59. perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
  60. chmod +x "$F"
  61. done
  62. %build
  63. perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor \
  64. OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
  65. %{make_build}
  66. %install
  67. %__rm -rf $RPM_BUILD_ROOT
  68. %{make_install}
  69. find %{buildroot} -type f -name '*.bs' -empty -delete
  70. %{_fixperms} %{buildroot}/*
  71. %check
  72. unset AUTHOR_TESTING RELEASE_TESTING
  73. export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
  74. THREAD_TEST=0 make test
  75. %triggerin -- perl-XML-SAX
  76. for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
  77. perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \
  78. 2>/dev/null || :
  79. done
  80. %preun
  81. if [ $1 -eq 0 ] ; then
  82. for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
  83. perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \
  84. 2>/dev/null || :
  85. done
  86. fi
  87. %files
  88. %defattr(-,root,root,-)
  89. %doc Changes LICENSE README
  90. %{perl_vendorarch}/auto/XML
  91. %{perl_vendorarch}/XML
  92. %{_mandir}/man3/*.3*
  93. %changelog
  94. * Sat Jun 14 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0210-1
  95. - new upstream release.
  96. - built with perl-5.40.
  97. * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0207-1
  98. - new upstream release.
  99. - built with perl-5.34.0.
  100. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0200-2
  101. - rebuilt with perl-5.26.
  102. * Tue May 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0200-1
  103. - new upstream release.
  104. - added BR:libxcrypt-devel.
  105. * Sun Nov 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.0117-1
  106. - new upstream release.
  107. - built with libxml2 2.9.2
  108. - added Japanese summary
  109. * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0116-1
  110. - new upstream release.
  111. * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.70-2
  112. - rebuild with perl-5.12.3
  113. * Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.70-1
  114. - new upstream release
  115. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.70-5
  116. - Mass rebuild with perl-5.12.0
  117. * Fri Jan 8 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-4
  118. - remove BR XML::LibXML::Common
  119. * Mon Nov 30 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-3
  120. - corrected version of obsoletes
  121. * Thu Nov 26 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-2
  122. - 541605 this package now contains XML::LibXML::Common
  123. * Fri Nov 20 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-1
  124. - update to fix 539102
  125. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-3
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  127. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-2
  128. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  129. * Thu Dec 11 2008 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.69-1
  130. - update to 1.69
  131. * Fri Aug 01 2008 Lubomir Rintel <lkundrak@v3.sk> - 1:1.66-2
  132. - Supress warning about nonexistent file in perl-XML-SAX install trigger
  133. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.66-1
  134. - new upsteream release
  135. - built with perl-5.10.0-2
  136. - changed Group to Development/Libraries
  137. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.58-2vl2
  138. - changed Group to Development/Languages
  139. - rebuilt with libxml2-2.6.26
  140. * Sun Apr 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.58-2vl1
  141. - rebuilt for Vine Linux
  142. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.58-2.2.2
  143. - bump again for double-long bug on ppc(64)
  144. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.58-2.2.1
  145. - rebuilt for new gcc4.1 snapshot and glibc changes
  146. * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.58-2.2
  147. - rebuild for new perl-5.8.8
  148. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  149. - rebuilt for new gcc
  150. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  151. - rebuilt for new gcj
  152. * Sat Mar 19 2005 Joe Orton <jorton@redhat.com> 1.58-2
  153. - rebuild
  154. * Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 1.58-1
  155. - #121168
  156. - Update to 1.58.
  157. - Require perl(:MODULE_COMPAT_*).
  158. - Handle ParserDetails.ini parser registration.
  159. - BuildRequires libxml2-devel.
  160. - Own installed directories.
  161. * Fri Feb 27 2004 Chip Turner <cturner@redhat.com> - 1.56-1
  162. - Specfile autogenerated.