File perl-XML-Twig.spec of Package perl-XML-Twig
#
# spec file for package perl-XML-Twig (Version 3.32 )
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-XML-Twig
Version: 3.32
Release: 1
Requires: perl = %{perl_version}
Requires: perl-XML-Parser
BuildRequires: perl-XML-Parser
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License
Url: http://cpan.org/modules/by-module/XML/
Summary: Tree interface to XML documents allowing processing chunk by chunk of huge documents
Source: XML-Twig-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
XML::Twig is (yet another!) XML transformation module.
Its strong points: can be used to process huge documents while still
being in tree mode; not bound by DOM or SAX, so it is very perlish and
offers a very comprehensive set of methods; simple to use; DWIMs as
much as possible
What it doesn't offer: full SAX support (it can export SAX, but only
reads XML), full XPath support (unless you use XML::Twig::XPath), nor
DOM support.
Other drawbacks: it is a big module, and with over 500 methods
available it can be a bit overwhelming. A good starting point is the
tutorial at http://xmltwig.com/xmltwig/tutorial/index.html. In fact the
whole XML::Twig page at http://xmltwig.com/xmltwig/ has plenty of
information to get you started with XML::Twig
Authors:
--------
Michel Rodriguez <mirod@cpan.org>
%prep
%setup -q -n XML-Twig-%{version}
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/XML
%{perl_vendorarch}/auto/XML
/var/adm/perl-modules/%{name}
%{_bindir}/xml_*
%changelog
* Wed Nov 21 2007 - anicka@suse.cz
- update to 3.32
* bugfixes, test fixes
* fixed a couple of bugs in namespace handling
* added the XML::Twig::Elt fields method which returns a list of
fields
* added the normalize method in XML::Twig and XML::Twig::Elt
* added the indented_a / cvs format for pretty_print,
* Added the XML::Twig method finish_now that terminates parsing
immediately, without checking the rest of the XML.
* HTML parsing improved: XML::Twig now tries to find the proper
encoding for the document
* Thu Oct 18 2007 - anicka@suse.cz
- package created (version 3.29) [#297511]