diff --git a/.cvsignore b/.cvsignore index 2c200cb..d3d57ee 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -XML-Parser-2.30.tar.gz +XML-Parser-2.31.tar.gz diff --git a/perl-XML-Parser.spec b/perl-XML-Parser.spec new file mode 100644 index 0000000..84e39cf --- /dev/null +++ b/perl-XML-Parser.spec @@ -0,0 +1,73 @@ +Summary: A low level Perl module for parsing XML either via trees or streaming. +Name: perl-XML-Parser +Version: 2.31 +Release: 12 +License: distributable +Group: Applications/CPAN +Source0: XML-Parser-%{version}.tar.gz +Url: http://www.cpan.org +BuildRoot: %{_tmppath}/perl-XML-Parser-buildroot/ +BuildRequires: perl >= 2:5.8.0 +BuildRequires: perl-libwww-perl +BuildRequires: perl-URI +Requires: perl >= 2:5.8.0 +Requires: perl-libwww-perl +Requires: 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} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor +make +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%install +rm -rf $RPM_BUILD_ROOT +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | + sed "s@^$RPM_BUILD_ROOT@@g" | + grep -v perllocal.pod | + grep -v "\.packlist" > XML-Parser-%{version}-filelist +if [ "$(cat XML-Parser-%{version}-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%files -f XML-Parser-%{version}-filelist +%defattr(-,root,root) +%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/XML/Parser +%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/auto/XML/Parser + +%changelog +* 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. diff --git a/sources b/sources index 2167ca0..8b9ce2b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1729859ea9db2718c86c23dfc2ab3c6f XML-Parser-2.30.tar.gz +01f136a5f71631845979fd2b797b3ce3 XML-Parser-2.31.tar.gz