162e3c
Name:           perl-XML-Parser
162e3c
Version:        2.41
162e3c
Release:        10%{?dist}
162e3c
Summary:        Perl module for parsing XML documents
162e3c
162e3c
Group:          Development/Libraries
162e3c
License:        GPL+ or Artistic
162e3c
Url:            http://search.cpan.org/dist/XML-Parser/
162e3c
Source0:        http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-%{version}.tar.gz
162e3c
162e3c
BuildRequires:  perl(Carp)
162e3c
BuildRequires:  perl(ExtUtils::MakeMaker)
162e3c
BuildRequires:  perl(Exporter)
162e3c
BuildRequires:  perl(File::Spec)
162e3c
BuildRequires:  perl(File::Temp)
162e3c
BuildRequires:  perl(IO::File)
162e3c
BuildRequires:  perl(IO::Handle)
162e3c
BuildRequires:  perl(lib)
162e3c
BuildRequires:  perl(Test)
162e3c
BuildRequires:  perl(Text::ParseWords)
162e3c
BuildRequires:  expat-devel
162e3c
# The script LWPExternEnt.pl is loaded by Parser.pm
162e3c
BuildRequires:  perl(LWP)
162e3c
BuildRequires:  perl(URI)
162e3c
BuildRequires:  perl(URI::file)
162e3c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
162e3c
Requires:       perl(IO::File)
162e3c
Requires:       perl(IO::Handle)
162e3c
162e3c
162e3c
%{?perl_default_filter}
162e3c
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$
162e3c
162e3c
%description
162e3c
This module provides ways to parse XML documents. It is built on top
162e3c
of XML::Parser::Expat, which is a lower level interface to James
162e3c
Clark's expat library. Each call to one of the parsing methods creates
162e3c
a new instance of XML::Parser::Expat which is then used to parse the
162e3c
document. Expat options may be provided when the XML::Parser object is
162e3c
created. These options are then passed on to the Expat object on each
162e3c
parse call. They can also be given as extra arguments to the parse
162e3c
methods, in which case they override options given at XML::Parser
162e3c
creation time.
162e3c
162e3c
%prep
162e3c
%setup -q -n XML-Parser-%{version} 
162e3c
chmod 644 samples/{canonical,xml*}
162e3c
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
162e3c
162e3c
%build
162e3c
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
162e3c
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
162e3c
162e3c
%install
162e3c
make pure_install DESTDIR=$RPM_BUILD_ROOT
162e3c
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
162e3c
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
162e3c
chmod -R u+w $RPM_BUILD_ROOT/*
162e3c
162e3c
for file in samples/REC-xml-19980210.xml; do
162e3c
  iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
162e3c
  mv -f "${file}_" "$file"
162e3c
  sed -i -e "s/encoding='ISO-8859-1'/encoding='UTF-8'/" "$file"
162e3c
done
162e3c
162e3c
%check
162e3c
make test
162e3c
162e3c
%files
162e3c
%doc README Changes samples/
162e3c
%{perl_vendorarch}/XML/
162e3c
%{perl_vendorarch}/auto/XML/
162e3c
%{_mandir}/man3/*.3*
162e3c
162e3c
162e3c
%changelog
162e3c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.41-10
162e3c
- Mass rebuild 2014-01-24
162e3c
162e3c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.41-9
162e3c
- Mass rebuild 2013-12-27
162e3c
162e3c
* Thu Nov 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 2.41-8
162e3c
- Update dependencies and summary
162e3c
- Remove pre-RPM-4.9 filters
162e3c
- Remove deleting empty directories
162e3c
- Update REC-xml-19980210.xml to match new encoding
162e3c
162e3c
* Mon Aug 27 2012 Jitka Plesnikova <jplesnik@redhat.com> - 2.41-7
162e3c
- Specify all dependencies.
162e3c
- Remove perl(LWP) and perl(URI) from Requires. 
162e3c
- Update source link. 
162e3c
162e3c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41-6
162e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
162e3c
162e3c
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 2.41-5
162e3c
- Perl 5.16 rebuild
162e3c
162e3c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41-4
162e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
162e3c
162e3c
* Sun Jul 24 2011 Iain Arnell <iarnell@gmail.com> 2.41-3
162e3c
- update filtering for rpm 4.9
162e3c
162e3c
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 2.41-2
162e3c
- Perl mass rebuild
162e3c
162e3c
* Fri Jun  3 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.41-1
162e3c
- update 2.41
162e3c
- clean spec from rm, clean, deffattr
162e3c
162e3c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.40-3
162e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
162e3c
162e3c
* Wed Sep 29 2010 jkeating - 2.40-2
162e3c
- Rebuilt for gcc bug 634757
162e3c
162e3c
* Tue Sep 21 2010 Marcela Mašláňová <mmaslano@redhat.com> - 2.40-1
162e3c
- update 
162e3c
162e3c
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.36-9
162e3c
- Mass rebuild with perl-5.12.0
162e3c
162e3c
* Tue Feb  9 2010 Marcela Mašláňová <mmaslano@redhat.com> - 2.36-8
162e3c
- rebuild with expat-2.0.1-10 which should fix tests part #549216, #555457
162e3c
162e3c
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 2.36-7
162e3c
- rebuild against perl 5.10.1
162e3c
162e3c
* Mon Aug 24 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-6
162e3c
- rebuild against perl without DEBUGGING defined
162e3c
162e3c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.36-5
162e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
162e3c
162e3c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.36-4
162e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
162e3c
162e3c
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-3
162e3c
- Rebuild for perl 5.10 (again)
162e3c
162e3c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.36-2
162e3c
- Autorebuild for GCC 4.3
162e3c
162e3c
* Sun Jan 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.36-1
162e3c
- bump to 2.36
162e3c
162e3c
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.34-11
162e3c
- rebuild for new perl
162e3c
162e3c
* Thu Oct 25 2007 Robin Norwood <rnorwood@redhat.com> - 2.34-10
162e3c
- Add dist tag to release field
162e3c
- Fix previous changelog
162e3c
162e3c
* Tue Oct 23 2007 Robin Norwood <rnorwood@redhat.com> - 2.34-9
162e3c
- Remove BR: perl
162e3c
- fix utf-8 rpmlint warning
162e3c
162e3c
* Tue Aug 28 2007 Robin Norwood <rnorwood@redhat.com> - 2.34-8
162e3c
- Update license tag
162e3c
- Add README Changes samples/ to %%doc section
162e3c
162e3c
* Thu Aug  9 2007 Joe Orton <jorton@redhat.com> - 2.34-7
162e3c
- BuildRequire perl(ExtUtils::MakeMaker)
162e3c
162e3c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.34-6.1.2.2.1
162e3c
- rebuild
162e3c
162e3c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.34-6.1.2.2
162e3c
- bump again for double-long bug on ppc(64)
162e3c
162e3c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.34-6.1.2.1
162e3c
- rebuilt for new gcc4.1 snapshot and glibc changes
162e3c
162e3c
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 2.34-6-1.2
162e3c
- rebuild for new perl-5.8.8
162e3c
162e3c
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
162e3c
- rebuilt for new gcc
162e3c
162e3c
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
162e3c
- rebuilt for new gcj
162e3c
162e3c
* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.34-6
162e3c
- #155619
162e3c
- Bring up to date with current Fedora.Extras perl spec template.
162e3c
162e3c
* Sun Aug 08 2004 Alan Cox <alan@redhat.com> 2.34-5
162e3c
- runtime requires expat
162e3c
162e3c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
162e3c
- rebuilt
162e3c
162e3c
* Fri Apr 16 2004 Warren Togami <wtogami@redhat.com> 2.34-3
162e3c
- #110597 BR expat-devel
162e3c
162e3c
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
162e3c
- rebuilt
162e3c
162e3c
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 2.34-1
162e3c
- update to 2.34
162e3c
162e3c
* Mon Jan 26 2004 Jeremy Katz <katzj@redhat.com> 2.31-17
162e3c
- more rebuilding
162e3c
162e3c
* Mon Jan 19 2004 Chip Turner <cturner@redhat.com> 2.31-16
162e3c
- rebuild for newer perl
162e3c
162e3c
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
162e3c
- version bump and rebuild
162e3c
162e3c
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
162e3c
- automated release bump and build
162e3c
162e3c
* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
162e3c
- description update
162e3c
162e3c
* Tue Jun  4 2002 Chip Turner <cturner@redhat.com>
162e3c
- properly claim directories owned by package so they are removed when
162e3c
  package is removed
162e3c
162e3c
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
162e3c
- automated rebuild
162e3c
162e3c
* Fri Dec 7 2001 root <root@redhat.com>
162e3c
- Spec file was autogenerated.