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