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