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
|
Mon Apr 15 10:29:16 UTC 2013 - idonmez@suse.com
|
||||||
|
|
||||||
|
@@ -17,13 +17,21 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-XML-Twig
|
Name: perl-XML-Twig
|
||||||
Version: 3.42
|
Version: 3.44
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tree interface to XML documents
|
%define cpan_name XML-Twig
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
Summary: A perl module for processing huge XML documents in tree mode.
|
||||||
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/XML::Twig
|
Url: http://search.cpan.org/dist/XML-Twig/
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
|
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: expat
|
||||||
BuildRequires: perl-HTML-Tidy
|
BuildRequires: perl-HTML-Tidy
|
||||||
BuildRequires: perl-IO-CaptureOutput
|
BuildRequires: perl-IO-CaptureOutput
|
||||||
@@ -37,8 +45,6 @@ BuildRequires: perl-XML-SAX-Writer
|
|||||||
BuildRequires: perl-XML-Simple
|
BuildRequires: perl-XML-Simple
|
||||||
BuildRequires: perl-XML-XPath
|
BuildRequires: perl-XML-XPath
|
||||||
BuildRequires: perl-XML-XPathEngine
|
BuildRequires: perl-XML-XPathEngine
|
||||||
BuildRequires: perl-macros
|
|
||||||
|
|
||||||
Requires: expat
|
Requires: expat
|
||||||
Requires: perl-XML-Parser
|
Requires: perl-XML-Parser
|
||||||
Requires: perl(Encode)
|
Requires: perl(Encode)
|
||||||
@@ -49,53 +55,43 @@ Recommends: perl-Tie-IxHash
|
|||||||
Recommends: perl-XML-XPath
|
Recommends: perl-XML-XPath
|
||||||
Recommends: perl-XML-XPathEngine
|
Recommends: perl-XML-XPathEngine
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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
|
The module offers a tree interface to the document, while allowing you to
|
||||||
being in tree mode; not bound by DOM or SAX, so it is very perlish and
|
output the parts of it that have been completely processed.
|
||||||
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
|
It allows minimal resource (CPU and memory) usage by building the tree only
|
||||||
reads XML), full XPath support (unless you use XML::Twig::XPath), nor
|
for the parts of the documents that need actual processing, through the use
|
||||||
DOM support.
|
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
|
XML::Twig tries to make simple things easy so it tries its best to takes
|
||||||
available it can be a bit overwhelming. A good starting point is the
|
care of a lot of the (usually) annoying (but sometimes necessary) features
|
||||||
tutorial at http://xmltwig.com/xmltwig/tutorial/index.html. In fact the
|
that come with XML and XML::Parser.
|
||||||
whole XML::Twig page at http://xmltwig.com/xmltwig/ has plenty of
|
|
||||||
information to get you started with XML::Twig
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n XML-Twig-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes check_optional_modules filter_for_5.005 README speedup Twig_pm.slow
|
||||||
%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}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user