diff --git a/.cvsignore b/.cvsignore index e69de29..02dfaf5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-TableExtract-2.07.tar.gz diff --git a/perl-HTML-TableExtract.spec b/perl-HTML-TableExtract.spec new file mode 100644 index 0000000..aaba3bb --- /dev/null +++ b/perl-HTML-TableExtract.spec @@ -0,0 +1,56 @@ +Name: perl-HTML-TableExtract +Version: 2.07 +Release: 2 +Summary: A Perl module for extracting content in HTML tables +Group: Development/Libraries +License: Artistic or GPL +URL: http://www.mojotoad.com/sisk/projects/HTML-TableExtract/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-TableExtract-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(HTML::TreeBuilder) perl(Test::Pod) perl(Test::Pod::Coverage) + +%description +HTML::TableExtract is a module that simplifies the extraction of +information contained in tables within HTML documents. + +Tables of note may be specified using Headers, Depth, Count, +Attributes, or some combination of the three. See the module +documentation for details. + +%prep +%setup -q -n HTML-TableExtract-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/HTML/ +%{_mandir}/man3/*.3* + + +%changelog +* Mon Apr 10 2006 Bill Nottingham - 2.07-2 +- add some buildprereqs for testing + +* Fri Apr 7 2006 Bill Nottingham - 2.07-1 +- initial packaging + diff --git a/sources b/sources index e69de29..fdededb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ad3ddfb3e25826071d1e52e336862438 HTML-TableExtract-2.07.tar.gz