]>
Commit | Line | Data |
---|---|---|
17781d47 | 1 | # |
2 | # Conditional build: | |
17ec5df1 | 3 | %bcond_with tests # perform "make test" |
c62db9b7 | 4 | # |
cc893c5f | 5 | %define pdir HTML |
6 | %define pnam TableExtract | |
e423eaaf | 7 | Summary: HTML::TableExtract - extracting the text contained in HTML tables |
411a3dff | 8 | Summary(pl.UTF-8): HTML::TableExtract - wyciąganie tekstu zawartego w tabelach HTML |
17781d47 | 9 | Name: perl-HTML-TableExtract |
46c51664 | 10 | Version: 2.11 |
17ec5df1 | 11 | Release: 1 |
952e60e8 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
17781d47 | 14 | Group: Development/Languages/Perl |
98d009b9 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
46c51664 | 16 | # Source0-md5: ac1b8fa092d53931a9f3fdbba330f5b0 |
17ec5df1 | 17 | URL: http://search.cpan.org/dist/HTML-TableExtract/ |
e58fb3c2 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
17ec5df1 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
c62db9b7 | 20 | %if %{with tests} |
17ec5df1 | 21 | BuildRequires: perl(HTML::ElementTable) >= 1.16 |
17781d47 | 22 | BuildRequires: perl-HTML-Parser |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
e423eaaf JB |
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. | |
33 | ||
07faac23 JR |
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. | |
17781d47 | 39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
d4d6348c | 44 | %{__perl} Makefile.PL \ |
d686cebb | 45 | INSTALLDIRS=vendor |
17781d47 | 46 | %{__make} |
e423eaaf | 47 | |
c62db9b7 | 48 | %{?with_tests:%{__make} test} |
17781d47 | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
02caa94a | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
17781d47 | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
d4d6348c | 61 | %{perl_vendorlib}/%{pdir}/*.pm |
17781d47 | 62 | %{_mandir}/man3/* |