%global pkg_name XML-Parser %global pkg_version 2.36 %global rpm_pkg_version 2.36 %global rpm_pkg_release 1.n0i.14 Summary: Flexible XML parser with plug-in styles Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/M/MS/MSERGEANT/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: expat-devel BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(LWP) BuildRequires: 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 %{pkg_name}-%{pkg_version} %{fix_perl_path samples/} %{fix_encoding -f iso-8859-1 samples/REC-xml-19980210.xml} %build %{perl_build} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README samples/ %changelog * Wed Nov 21 2007 Marius Feraru - 2.36-1.n0i.14 - version 2.36 - drop global var workaround (fixed upstream) * Sun Nov 18 2007 Marius Feraru - 2.35-1.n0i.13 - version 2.35 - spec update (new reb00t build tools) - fix global var glitch (@extras) * Wed Aug 29 2007 Marius Feraru - 2.34-11.n0i.12 - automatic rebuild (perl 5.8.8) * Fri Jun 15 2007 Marius Feraru - 2.34-10.n0i.11 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 * Sat Mar 04 2006 Marius Feraru - 2.34-9.n0i.10 - automatic rebuild (perl 5.8.8) * Thu Jul 21 2005 Marius Feraru 2.34-8.n0i.9 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:2.34-7.n0i.8 - automatic rebuild (perl 5.8.6) * Mon Nov 29 2004 Marius FERARU 0:2.34-7.n0i.7 - rebuild (perl 5.8.6) - no dependencies are to be computed based on files in %%docdir * Tue Jun 22 2004 Marius FERARU 0:2.34-3.n0i.6 - override FC 2 official version * Fri Apr 30 2004 Marius Feraru 0:2.34-1.n0i.5 - automatic rebuild * Thu Apr 22 2004 Marius Feraru 0:2.34-1.n0i.4 - spec file (re?)created using N0i::CPAN::RPMizer/2004032101 - rebuild (perl 5.8.4) * Thu Jan 22 2004 Marius FERARU 0:2.34-0.n0i.3 - automatic rebuild (perl v.5.8.3) * Tue Dec 30 2003 Marius FERARU 0:2.34-0.n0i.2 - rebuilt on perl 5.8.2 / Fedora 1 Devel (tobe FC2) * Mon Nov 03 2003 Marius FERARU 0:2.34-0.n0i.1 - version 2.34 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001 * Sun Jul 27 2003 Marius FERARU 2.31-0.n0i - some spec cleanups - custom rebuild * Thu Jun 05 2003 Elliot Lee - rebuilt * 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 i s removed * Wed Jan 09 2002 Tim Powers - automated rebuild * Fri Dec 7 2001 root - Spec file was autogenerated.