From 47190ec12a06d69002c0769bdc887433708608fd Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Nov 26 2008 14:19:18 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..9b6342b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-TokeParser-Simple-3.15.tar.gz diff --git a/perl-HTML-TokeParser-Simple.spec b/perl-HTML-TokeParser-Simple.spec new file mode 100644 index 0000000..c0519ca --- /dev/null +++ b/perl-HTML-TokeParser-Simple.spec @@ -0,0 +1,59 @@ +Name: perl-HTML-TokeParser-Simple +Version: 3.15 +Release: 1%{?dist} +Summary: Easy to use HTML::TokeParser interface +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/HTML-TokeParser-Simple/ +Source0: http://www.cpan.org/authors/id/O/OV/OVID/HTML-TokeParser-Simple-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(HTML::Parser) >= 3.25 +BuildRequires: perl(HTML::TokeParser) >= 2.24 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Sub::Override) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(HTML::Parser) >= 3.25 +Requires: perl(HTML::TokeParser) >= 2.24 +Requires: perl(Sub::Override) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +HTML::TokeParser is an excellent module that's often used for parsing HTML. +However, the tokens returned are not exactly intuitive to parse. To simplify +this, HTML::TokeParser::Simple allows the user ask more intuitive (read: more +self-documenting) questions about the tokens returned. + +%prep +%setup -q -n HTML-TokeParser-Simple-%{version} +sed -i -e 's/\r//' Changes README + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Nov 18 2008 Iain Arnell 3.15-1 +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..fe6ee53 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2867824be9cbe3e86e94ca677d042ffe HTML-TokeParser-Simple-3.15.tar.gz