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