forked from pool/perl-XML-Twig
Accepting request 177553 from home:coolo:update-perl
- updated to 3.44 # minor maintenance release added: XML::Twig::Elt new method now acccepts literal content, eg my $e= XML::Twig::Elt->new( '<div><p>foo</p><p>bar</p></div>'); fixed: merge had some problems dealing with embedded comments improved: more tests improved: docs for parse, see RT #78877 https://rt.cpan.org/Ticket/Display.html?id=78877 fixed: xml_pp -i now preserves the permissions of the original file, see RT #81165 https://rt.cpan.org/Ticket/Display.html?id=81165 reported by Alberto Simoes fixed: RT #80503 Newlines in attribute values https://rt.cpan.org/Ticket/Display.html?id=80503 reported (and explained) by Ambrus Zsban: \r, \n and \n explicitely set in attribute values should be escaped (with &#x<nb>;) when output OBS-URL: https://build.opensuse.org/request/show/177553 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Twig?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
d2114a3410
commit
b586c713ef
BIN
XML-Twig-3.42.tar.gz
(Stored with Git LFS)
BIN
XML-Twig-3.42.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
XML-Twig-3.44.tar.gz
(Stored with Git LFS)
Normal file
BIN
XML-Twig-3.44.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 4 17:10:56 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 3.44
|
||||
# minor maintenance release
|
||||
added: XML::Twig::Elt new method now acccepts literal content, eg
|
||||
my $e= XML::Twig::Elt->new( '<div><p>foo</p><p>bar</p></div>');
|
||||
fixed: merge had some problems dealing with embedded comments
|
||||
improved: more tests
|
||||
|
||||
improved: docs for parse, see RT #78877
|
||||
https://rt.cpan.org/Ticket/Display.html?id=78877
|
||||
fixed: xml_pp -i now preserves the permissions of the
|
||||
original file, see RT #81165
|
||||
https://rt.cpan.org/Ticket/Display.html?id=81165
|
||||
reported by Alberto Simoes
|
||||
fixed: RT #80503 Newlines in attribute values
|
||||
https://rt.cpan.org/Ticket/Display.html?id=80503
|
||||
reported (and explained) by Ambrus Zsban: \r, \n
|
||||
and \n explicitely set in attribute values should
|
||||
be escaped (with &#x<nb>;) when output
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 15 10:29:16 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
@@ -17,13 +17,21 @@
|
||||
|
||||
|
||||
Name: perl-XML-Twig
|
||||
Version: 3.42
|
||||
Version: 3.44
|
||||
Release: 0
|
||||
Summary: Tree interface to XML documents
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
%define cpan_name XML-Twig
|
||||
Summary: A perl module for processing huge XML documents in tree mode.
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/XML::Twig
|
||||
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/XML-Twig/
|
||||
Source: http://www.cpan.org/authors/id/M/MI/MIROD/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(XML::Parser) >= 2.23
|
||||
#BuildRequires: perl(xmlxpath_tools)
|
||||
Requires: perl(XML::Parser) >= 2.23
|
||||
BuildRequires: expat
|
||||
BuildRequires: perl-HTML-Tidy
|
||||
BuildRequires: perl-IO-CaptureOutput
|
||||
@@ -37,8 +45,6 @@ BuildRequires: perl-XML-SAX-Writer
|
||||
BuildRequires: perl-XML-Simple
|
||||
BuildRequires: perl-XML-XPath
|
||||
BuildRequires: perl-XML-XPathEngine
|
||||
BuildRequires: perl-macros
|
||||
|
||||
Requires: expat
|
||||
Requires: perl-XML-Parser
|
||||
Requires: perl(Encode)
|
||||
@@ -49,53 +55,43 @@ Recommends: perl-Tie-IxHash
|
||||
Recommends: perl-XML-XPath
|
||||
Recommends: perl-XML-XPathEngine
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
XML::Twig is (yet another!) XML transformation module.
|
||||
This module provides a way to process XML documents. It is build on top of
|
||||
'XML::Parser'.
|
||||
|
||||
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
|
||||
The module offers a tree interface to the document, while allowing you to
|
||||
output the parts of it that have been completely processed.
|
||||
|
||||
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.
|
||||
It allows minimal resource (CPU and memory) usage by building the tree only
|
||||
for the parts of the documents that need actual processing, through the use
|
||||
of the 'the twig_roots manpage ' and 'the twig_print_outside_roots manpage
|
||||
' options. The 'the finish manpage ' and 'the finish_print manpage '
|
||||
methods also help to increase performances.
|
||||
|
||||
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
|
||||
XML::Twig tries to make simple things easy so it tries its best to takes
|
||||
care of a lot of the (usually) annoying (but sometimes necessary) features
|
||||
that come with XML and XML::Parser.
|
||||
|
||||
%prep
|
||||
%setup -q -n XML-Twig-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/XML
|
||||
%{perl_vendorlib}/XML/Twig.pm
|
||||
%{perl_vendorlib}/XML/Twig
|
||||
%{_bindir}/xml_grep
|
||||
%{_bindir}/xml_merge
|
||||
%{_bindir}/xml_pp
|
||||
%{_bindir}/xml_spellcheck
|
||||
%{_bindir}/xml_split
|
||||
%doc %{_mandir}/man1/xml_*.1%{ext_man}
|
||||
%doc %{_mandir}/man3/XML::Twig.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes check_optional_modules filter_for_5.005 README speedup Twig_pm.slow
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user