3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam TableExtract
8 Summary: HTML::TableExtract - extracting the text contained in HTML tables
9 Summary(pl): HTML::TableExtract - wyci±ganie tekstu zawartego w tabelach HTML
10 Name: perl-HTML-TableExtract
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: db5001e68c3036c1a72138d45f57bd21
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-HTML-Parser
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 HTML::TableExtract is a subclass of HTML::Parser that serves to
28 extract the textual information from tables of interest contained
29 within an HTML document. The text from each extracted table is stored
30 in tabe state objects which hold the information as an array of arrays
31 that represent the rows and cells of that table.
34 HTML::TableExtract to podklasa HTML::Parser, która s³u¿y do wyci±gania
35 informacji tekstowych z tabel w dokumencie HTML. Tekst z ka¿dej tabeli
36 jest zapisywany w obiektach, które przechowuj± informacje jako tablicê
37 tablic, reprezentuj±c± wiersze i komórki tabeli.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/*.pm