2007-10-24 02:42:45 +00:00
|
|
|
#
|
2011-03-07 14:09:42 +00:00
|
|
|
# spec file for package perl-XML-Twig
|
2007-10-24 02:42:45 +00:00
|
|
|
#
|
2013-04-15 10:44:06 +00:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-XML-Twig
|
2012-11-27 21:36:04 +00:00
|
|
|
Version: 3.42
|
|
|
|
Release: 0
|
2011-02-27 23:57:59 +00:00
|
|
|
Summary: Tree interface to XML documents
|
2012-11-27 21:36:04 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2011-09-27 08:18:11 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-11-27 21:36:04 +00:00
|
|
|
Url: http://search.cpan.org/dist/XML::Twig
|
2013-04-15 10:44:06 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-%{version}.tar.gz
|
2012-11-27 21:36:04 +00:00
|
|
|
BuildRequires: expat
|
|
|
|
BuildRequires: perl-HTML-Tidy
|
|
|
|
BuildRequires: perl-IO-CaptureOutput
|
|
|
|
BuildRequires: perl-Test-Pod
|
|
|
|
BuildRequires: perl-Text-Wrapper
|
|
|
|
BuildRequires: perl-Tie-IxHash
|
|
|
|
BuildRequires: perl-XML-Filter-BufferText
|
|
|
|
BuildRequires: perl-XML-Handler-YAWriter
|
2011-09-27 08:18:11 +00:00
|
|
|
BuildRequires: perl-XML-Parser
|
2012-11-27 21:36:04 +00:00
|
|
|
BuildRequires: perl-XML-SAX-Writer
|
|
|
|
BuildRequires: perl-XML-Simple
|
|
|
|
BuildRequires: perl-XML-XPath
|
|
|
|
BuildRequires: perl-XML-XPathEngine
|
2011-09-27 08:18:11 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-11-27 21:36:04 +00:00
|
|
|
|
|
|
|
Requires: expat
|
|
|
|
Requires: perl-Encode
|
2011-09-27 08:18:11 +00:00
|
|
|
Requires: perl-XML-Parser
|
2012-11-27 21:36:04 +00:00
|
|
|
|
|
|
|
Recommends: perl-HTML-Tidy
|
|
|
|
Recommends: perl-Text-Wrapper
|
|
|
|
Recommends: perl-Tie-IxHash
|
|
|
|
Recommends: perl-XML-XPath
|
|
|
|
Recommends: perl-XML-XPathEngine
|
|
|
|
|
2007-10-24 02:42:45 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n XML-Twig-%{version}
|
|
|
|
|
|
|
|
%build
|
2011-09-27 08:18:11 +00:00
|
|
|
perl Makefile.PL
|
|
|
|
make
|
2007-10-24 02:42:45 +00:00
|
|
|
|
|
|
|
%check
|
2011-09-27 08:18:11 +00:00
|
|
|
make test
|
2007-10-24 02:42:45 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
2011-02-27 23:57:59 +00:00
|
|
|
%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}
|
2009-06-18 15:17:00 +00:00
|
|
|
|
2007-10-24 02:42:45 +00:00
|
|
|
%changelog
|