2007-10-24 02:42:45 +00:00
|
|
|
#
|
2010-10-11 13:12:13 +00:00
|
|
|
# spec file for package perl-XML-Twig (Version 3.36 )
|
2007-10-24 02:42:45 +00:00
|
|
|
#
|
2010-01-27 17:33:16 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-10-24 02:42:45 +00:00
|
|
|
#
|
2009-06-18 15:17:00 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-10-24 02:42:45 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:17:00 +00:00
|
|
|
|
2007-10-24 02:42:45 +00:00
|
|
|
Name: perl-XML-Twig
|
2010-12-16 12:56:10 +00:00
|
|
|
Version: 3.37
|
2010-12-10 16:55:31 +00:00
|
|
|
Release: 3
|
2007-10-24 02:42:45 +00:00
|
|
|
Requires: perl-XML-Parser
|
|
|
|
BuildRequires: perl-XML-Parser
|
2010-12-03 14:56:48 +00:00
|
|
|
BuildRequires: perl-macros
|
2007-10-24 02:42:45 +00:00
|
|
|
AutoReqProv: on
|
|
|
|
Group: Development/Libraries/Perl
|
2010-01-27 17:33:16 +00:00
|
|
|
License: Artistic
|
2007-10-24 02:42:45 +00:00
|
|
|
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
|
2010-12-03 14:56:48 +00:00
|
|
|
%{perl_requires}
|
2007-10-24 02:42:45 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
%{_bindir}/xml_*
|
2009-06-18 15:17:00 +00:00
|
|
|
|
2007-10-24 02:42:45 +00:00
|
|
|
%changelog
|