Name: perl-XML-Parser Version: 2.34 Release: 6.1.2 Summary: A low level Perl module for parsing XML either via trees or streaming Group: Development/Libraries License: GPL or Artistic Url: http://search.cpan.org/dist/XML-Parser/ Source0: http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 2:5.8.0 BuildRequires: expat-devel # The script LWPExternEnt.pl is loaded by Parser.pm BuildRequires: perl(LWP), perl(URI) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(LWP), perl(URI) %description This module provides ways to parse XML documents. It is built on top of XML::Parser::Expat, which is a lower level interface to James Clark's expat library. Each call to one of the parsing methods creates a new instance of XML::Parser::Expat which is then used to parse the document. Expat options may be provided when the XML::Parser object is created. These options are then passed on to the Expat object on each parse call. They can also be given as extra arguments to the parse methods, in which case they override options given at XML::Parser creation time. %prep %setup -q -n XML-Parser-%{version} chmod 644 samples/{canonical,xml*} %{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*} %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check || : make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_vendorarch}/XML/ %{perl_vendorarch}/auto/XML/ %{_mandir}/man3/*.3* %changelog * Fri Feb 03 2006 Jason Vas Dias - 2.34-6-1.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 * Thu Apr 21 2005 Jose Pedro Oliveira - 2.34-6 - #155619 - Bring up to date with current Fedora.Extras perl spec template. * Sun Aug 08 2004 Alan Cox 2.34-5 - runtime requires expat * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Apr 16 2004 Warren Togami 2.34-3 - #110597 BR expat-devel * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Chip Turner 2.34-1 - update to 2.34 * Mon Jan 26 2004 Jeremy Katz 2.31-17 - more rebuilding * Mon Jan 19 2004 Chip Turner 2.31-16 - rebuild for newer perl * Mon Jan 27 2003 Chip Turner - version bump and rebuild * Tue Aug 6 2002 Chip Turner - automated release bump and build * Thu Jun 27 2002 Chip Turner - description update * Tue Jun 4 2002 Chip Turner - properly claim directories owned by package so they are removed when package is removed * Wed Jan 09 2002 Tim Powers - automated rebuild * Fri Dec 7 2001 root - Spec file was autogenerated.