8
0
forked from pool/perl-XML-Twig
Files
perl-XML-Twig/perl-XML-Twig.spec

86 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-XML-Twig (Version 3.36 )
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-XML-Twig
Version: 3.37
Release: 3
Requires: perl-XML-Parser
BuildRequires: perl-XML-Parser
BuildRequires: perl-macros
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic
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
%{perl_requires}
%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_*
%changelog