Name: perl-XML-Parser Version: 2.41 Release: 10%{?dist} Summary: Perl module for parsing XML documents Group: Development/Libraries License: GPL+ or Artistic Url: http://search.cpan.org/dist/XML-Parser/ Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-%{version}.tar.gz BuildRequires: perl(Carp) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Exporter) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(IO::File) BuildRequires: perl(IO::Handle) BuildRequires: perl(lib) BuildRequires: perl(Test) BuildRequires: perl(Text::ParseWords) BuildRequires: expat-devel # The script LWPExternEnt.pl is loaded by Parser.pm BuildRequires: perl(LWP) BuildRequires: perl(URI) BuildRequires: perl(URI::file) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(IO::File) Requires: perl(IO::Handle) %{?perl_default_filter} %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$ %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 make pure_install DESTDIR=$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 {} ';' chmod -R u+w $RPM_BUILD_ROOT/* for file in samples/REC-xml-19980210.xml; do iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_" mv -f "${file}_" "$file" sed -i -e "s/encoding='ISO-8859-1'/encoding='UTF-8'/" "$file" done %check make test %files %doc README Changes samples/ %{perl_vendorarch}/XML/ %{perl_vendorarch}/auto/XML/ %{_mandir}/man3/*.3* %changelog * Fri Jan 24 2014 Daniel Mach - 2.41-10 - Mass rebuild 2014-01-24 * Fri Dec 27 2013 Daniel Mach - 2.41-9 - Mass rebuild 2013-12-27 * Thu Nov 22 2012 Jitka Plesnikova - 2.41-8 - Update dependencies and summary - Remove pre-RPM-4.9 filters - Remove deleting empty directories - Update REC-xml-19980210.xml to match new encoding * Mon Aug 27 2012 Jitka Plesnikova - 2.41-7 - Specify all dependencies. - Remove perl(LWP) and perl(URI) from Requires. - Update source link. * Fri Jul 20 2012 Fedora Release Engineering - 2.41-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 15 2012 Petr Pisar - 2.41-5 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 2.41-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jul 24 2011 Iain Arnell 2.41-3 - update filtering for rpm 4.9 * Wed Jul 20 2011 Petr Sabata - 2.41-2 - Perl mass rebuild * Fri Jun 3 2011 Marcela Mašláňová - 2.41-1 - update 2.41 - clean spec from rm, clean, deffattr * Wed Feb 09 2011 Fedora Release Engineering - 2.40-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Sep 29 2010 jkeating - 2.40-2 - Rebuilt for gcc bug 634757 * Tue Sep 21 2010 Marcela Mašláňová - 2.40-1 - update * Fri May 07 2010 Marcela Maslanova - 2.36-9 - Mass rebuild with perl-5.12.0 * Tue Feb 9 2010 Marcela Mašláňová - 2.36-8 - rebuild with expat-2.0.1-10 which should fix tests part #549216, #555457 * Fri Dec 4 2009 Stepan Kasal - 2.36-7 - rebuild against perl 5.10.1 * Mon Aug 24 2009 Tom "spot" Callaway - 2.36-6 - rebuild against perl without DEBUGGING defined * Sun Jul 26 2009 Fedora Release Engineering - 2.36-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 2.36-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 27 2008 Tom "spot" Callaway - 2.36-3 - Rebuild for perl 5.10 (again) * Tue Feb 19 2008 Fedora Release Engineering - 2.36-2 - Autorebuild for GCC 4.3 * Sun Jan 27 2008 Tom "spot" Callaway - 2.36-1 - bump to 2.36 * Thu Jan 24 2008 Tom "spot" Callaway - 2.34-11 - rebuild for new perl * Thu Oct 25 2007 Robin Norwood - 2.34-10 - Add dist tag to release field - Fix previous changelog * Tue Oct 23 2007 Robin Norwood - 2.34-9 - Remove BR: perl - fix utf-8 rpmlint warning * Tue Aug 28 2007 Robin Norwood - 2.34-8 - Update license tag - Add README Changes samples/ to %%doc section * Thu Aug 9 2007 Joe Orton - 2.34-7 - BuildRequire perl(ExtUtils::MakeMaker) * Wed Jul 12 2006 Jesse Keating - 2.34-6.1.2.2.1 - rebuild * Fri Feb 10 2006 Jesse Keating - 2.34-6.1.2.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 2.34-6.1.2.1 - rebuilt for new gcc4.1 snapshot and glibc changes * 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.