[521] | 1 | Summary: Perl interface to the libxml2 library |
---|
| 2 | Name: perl-XML-LibXML |
---|
[1566] | 3 | # NOTE: also update perl-XML-LibXSLT to the same version, see |
---|
| 4 | # https://bugzilla.redhat.com/show_bug.cgi?id=469480 |
---|
[8702] | 5 | Version: 2.0116 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[1566] | 7 | License: GPL+ or Artistic |
---|
[521] | 8 | Group: Development/Libraries |
---|
| 9 | URL: http://search.cpan.org/dist/XML-LibXML/ |
---|
[1566] | 10 | Source0: http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-%{version}.tar.gz |
---|
[521] | 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1566] | 13 | |
---|
| 14 | Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') |
---|
| 15 | Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') |
---|
| 16 | Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') |
---|
| 17 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 18 | BuildRequires: perl >= 2:5.8.0 |
---|
[1566] | 19 | BuildRequires: perl(XML::NamespaceSupport) |
---|
| 20 | BuildRequires: perl(XML::SAX) |
---|
| 21 | BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) |
---|
[521] | 22 | BuildRequires: libxml2-devel |
---|
| 23 | |
---|
[1566] | 24 | Provides: perl-XML-LibXML-Common = %{version} |
---|
| 25 | Obsoletes: perl-XML-LibXML-Common <= 0.13 |
---|
| 26 | |
---|
[521] | 27 | %description |
---|
| 28 | This module implements a Perl interface to the GNOME libxml2 library |
---|
| 29 | which provides interfaces for parsing and manipulating XML files. This |
---|
| 30 | module allows Perl programmers to make use of the highly capable |
---|
| 31 | validating XML parser and the high performance DOM implementation. |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q -n XML-LibXML-%{version} |
---|
| 35 | |
---|
| 36 | %build |
---|
[1566] | 37 | %__perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 38 | %__make %{?_smp_mflags} |
---|
[521] | 39 | |
---|
| 40 | %install |
---|
[1566] | 41 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 42 | %__make install \ |
---|
[521] | 43 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ |
---|
| 44 | INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} |
---|
| 45 | find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ |
---|
[1566] | 46 | -o \( -name '*.bs' -a -empty \) \) -exec %__rm -f {} ';' |
---|
| 47 | find $RPM_BUILD_ROOT -type d -depth -exec %__rmdir {} 2>/dev/null ';' |
---|
| 48 | %__chmod -R u+w $RPM_BUILD_ROOT/* |
---|
[521] | 49 | |
---|
| 50 | for i in Changes; do |
---|
[1566] | 51 | /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && %__mv -f $i.conv $i |
---|
[521] | 52 | done |
---|
| 53 | |
---|
[1566] | 54 | %check |
---|
| 55 | %__make test |
---|
[521] | 56 | |
---|
| 57 | %clean |
---|
[1566] | 58 | %__rm -rf $RPM_BUILD_ROOT |
---|
[521] | 59 | |
---|
| 60 | %triggerin -- perl-XML-SAX |
---|
| 61 | for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do |
---|
[1566] | 62 | perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \ |
---|
| 63 | 2>/dev/null || : |
---|
[521] | 64 | done |
---|
| 65 | |
---|
| 66 | %preun |
---|
| 67 | if [ $1 -eq 0 ] ; then |
---|
| 68 | for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do |
---|
| 69 | perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \ |
---|
| 70 | 2>/dev/null || : |
---|
| 71 | done |
---|
| 72 | fi |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root,-) |
---|
| 76 | %doc Changes LICENSE README |
---|
| 77 | %{perl_vendorarch}/auto/XML |
---|
| 78 | %{perl_vendorarch}/XML |
---|
| 79 | %{_mandir}/man3/*.3* |
---|
| 80 | |
---|
| 81 | %changelog |
---|
[8702] | 82 | * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0116-1 |
---|
| 83 | - new upstream release. |
---|
| 84 | |
---|
[3153] | 85 | * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.70-2 |
---|
| 86 | - rebuild with perl-5.12.3 |
---|
| 87 | |
---|
[1566] | 88 | * Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.70-1 |
---|
| 89 | - new upstream release |
---|
| 90 | |
---|
| 91 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.70-5 |
---|
| 92 | - Mass rebuild with perl-5.12.0 |
---|
| 93 | |
---|
| 94 | * Fri Jan 8 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-4 |
---|
| 95 | - remove BR XML::LibXML::Common |
---|
| 96 | |
---|
| 97 | * Mon Nov 30 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-3 |
---|
| 98 | - corrected version of obsoletes |
---|
| 99 | |
---|
| 100 | * Thu Nov 26 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-2 |
---|
| 101 | - 541605 this package now contains XML::LibXML::Common |
---|
| 102 | |
---|
| 103 | * Fri Nov 20 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.70-1 |
---|
| 104 | - update to fix 539102 |
---|
| 105 | |
---|
| 106 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-3 |
---|
| 107 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 108 | |
---|
| 109 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.69-2 |
---|
| 110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 111 | |
---|
| 112 | * Thu Dec 11 2008 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.69-1 |
---|
| 113 | - update to 1.69 |
---|
| 114 | |
---|
| 115 | * Fri Aug 01 2008 Lubomir Rintel <lkundrak@v3.sk> - 1:1.66-2 |
---|
| 116 | - Supress warning about nonexistent file in perl-XML-SAX install trigger |
---|
| 117 | |
---|
[521] | 118 | * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.66-1 |
---|
| 119 | - new upsteream release |
---|
| 120 | - built with perl-5.10.0-2 |
---|
| 121 | - changed Group to Development/Libraries |
---|
| 122 | |
---|
| 123 | * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.58-2vl2 |
---|
| 124 | - changed Group to Development/Languages |
---|
| 125 | - rebuilt with libxml2-2.6.26 |
---|
| 126 | |
---|
| 127 | * Sun Apr 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.58-2vl1 |
---|
| 128 | - rebuilt for Vine Linux |
---|
| 129 | |
---|
| 130 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.58-2.2.2 |
---|
| 131 | - bump again for double-long bug on ppc(64) |
---|
| 132 | |
---|
| 133 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.58-2.2.1 |
---|
| 134 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 135 | |
---|
| 136 | * Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.58-2.2 |
---|
| 137 | - rebuild for new perl-5.8.8 |
---|
| 138 | |
---|
| 139 | * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 140 | - rebuilt for new gcc |
---|
| 141 | |
---|
| 142 | * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 143 | - rebuilt for new gcj |
---|
| 144 | |
---|
| 145 | * Sat Mar 19 2005 Joe Orton <jorton@redhat.com> 1.58-2 |
---|
| 146 | - rebuild |
---|
| 147 | |
---|
| 148 | * Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 1.58-1 |
---|
| 149 | - #121168 |
---|
| 150 | - Update to 1.58. |
---|
| 151 | - Require perl(:MODULE_COMPAT_*). |
---|
| 152 | - Handle ParserDetails.ini parser registration. |
---|
| 153 | - BuildRequires libxml2-devel. |
---|
| 154 | - Own installed directories. |
---|
| 155 | |
---|
| 156 | * Fri Feb 27 2004 Chip Turner <cturner@redhat.com> - 1.56-1 |
---|
| 157 | - Specfile autogenerated. |
---|