3 %bcond_with tests # perform "make test"
6 %define pnam TableExtract
7 Summary: HTML::TableExtract - extracting the text contained in HTML tables
8 Summary(pl.UTF-8): HTML::TableExtract - wyciąganie tekstu zawartego w tabelach HTML
9 Name: perl-HTML-TableExtract
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: ac1b8fa092d53931a9f3fdbba330f5b0
17 URL: http://search.cpan.org/dist/HTML-TableExtract/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(HTML::ElementTable) >= 1.16
22 BuildRequires: perl-HTML-Parser
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 HTML::TableExtract is a subclass of HTML::Parser that serves to
29 extract the textual information from tables of interest contained
30 within an HTML document. The text from each extracted table is stored
31 in tabe state objects which hold the information as an array of arrays
32 that represent the rows and cells of that table.
34 %description -l pl.UTF-8
35 HTML::TableExtract to podklasa HTML::Parser, która służy do wyciągania
36 informacji tekstowych z tabel w dokumencie HTML. Tekst z każdej tabeli
37 jest zapisywany w obiektach, które przechowują informacje jako tablicę
38 tablic, reprezentującą wiersze i komórki tabeli.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm