From 80b335a925fce5a3da02732655080dc71b6e442c Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:55:25 +0100 Subject: [PATCH] automatic update by autodist [release 4.3-1mamba;Sat Jul 20 2013] --- README.md | 5 ++++ perl-XML-TreeBuilder.spec | 61 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 perl-XML-TreeBuilder.spec diff --git a/README.md b/README.md index e2aea2d..5a20427 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # perl-XML-TreeBuilder +This module uses XML::Parser to make XML document trees constructed of XML::Element objects (and XML::Element is +a subclass of HTML::Element adapted for XML). XML::TreeBuilder is meant particularly for people who are used to the +HTML::TreeBuilder / HTML::Element interface to document trees, and who don't want to learn some other document +interface like XML::Twig or XML::DOM. + diff --git a/perl-XML-TreeBuilder.spec b/perl-XML-TreeBuilder.spec new file mode 100644 index 0000000..4b46fef --- /dev/null +++ b/perl-XML-TreeBuilder.spec @@ -0,0 +1,61 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-TreeBuilder +Version: 4.3 +Release: 1mamba +Summary: XML::TreeBuilder - Parser that builds a tree of XML::Element objects +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/J/JF/JFEARN/XML-TreeBuilder-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(HTML::Element) +BuildRequires: perl(HTML::Tagset) +BuildRequires: perl(XML::Parser) +BuildRequires: perl-devel +Requires: perl(HTML::Element) +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module uses XML::Parser to make XML document trees constructed of XML::Element objects (and XML::Element is +a subclass of HTML::Element adapted for XML). XML::TreeBuilder is meant particularly for people who are used to the +HTML::TreeBuilder / HTML::Element interface to document trees, and who don't want to learn some other document +interface like XML::Twig or XML::DOM. + +%prep +%setup -q -n XML-TreeBuilder-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/XML/* +%{_mandir}/man3/*.3pm.gz +%doc Changes README + +%changelog +* Sat Jul 20 2013 Automatic Build System 4.3-1mamba +- automatic update by autodist + +* Tue May 03 2011 Automatic Build System 4.1-1mamba +- automatic update by autodist + +* Mon Feb 21 2011 gil 4.0-1mamba +- package created by autospec