commit 2640aca7333ecb98574e804b75c99367b77bca58 Author: Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> Date: Wed Apr 4 23:06:17 2012 +0200 Initial import. .gitignore | 1 + perl-HTML-TreeBuilder-LibXML.spec | 60 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..1bc47c7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/HTML-TreeBuilder-LibXML-0.16.tar.gz diff --git a/perl-HTML-TreeBuilder-LibXML.spec b/perl-HTML-TreeBuilder-LibXML.spec new file mode 100644 index 0000000..b2e95df --- /dev/null +++ b/perl-HTML-TreeBuilder-LibXML.spec @@ -0,0 +1,60 @@ +Name: perl-HTML-TreeBuilder-LibXML +Version: 0.16 +Release: 2%{?dist} +Summary: HTML::TreeBuilder and XPath compatible interface with libxml +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/HTML-TreeBuilder-LibXML/ +Source0: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/HTML-TreeBuilder-LibXML-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(HTML::TreeBuilder::XPath) >= 0.14 +BuildRequires: perl(Test::More) >= 0.98 +BuildRequires: perl(XML::LibXML) >= 1.7 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# not picked up by rpm deptracker +Requires: perl(HTML::TreeBuilder::XPath) >= 0.14 +Requires: perl(XML::LibXML) >= 1.7 + +%{?perl_default_filter} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XML::LibXML\\) + +%description +HTML::TreeBuilder::XPath is a libxml based compatible interface to +HTML::TreeBuilder, which could be slow for a large document. +HTML::TreeBuilder::LibXML is drop-in-replacement for HTML::TreeBuilder::XPath. + +%prep +%setup -q -n HTML-TreeBuilder-LibXML-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Apr 04 2012 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> - 0.16-2 +- Take into account the review (#809633) + +* Tue Apr 03 2012 Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx> - 0.16-1 +- Update to 0.16 diff --git a/sources b/sources index e69de29..6febdc7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1b2d9b3a895db0cb2a78d6f2de963ceb HTML-TreeBuilder-LibXML-0.16.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel