]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir HTML | |
7 | %define pnam TableExtract | |
8 | Summary: HTML::TableExtract - extracting the text contained in HTML tables | |
9 | Summary(pl.UTF-8): HTML::TableExtract - wyciąganie tekstu zawartego w tabelach HTML | |
10 | Name: perl-HTML-TableExtract | |
11 | Version: 2.10 | |
12 | Release: 1 | |
13 | # same as perl | |
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: e6e355f6049dc57706e719c5ce61ff39 | |
18 | URL: http://search.cpan.org/dist/HTML-TableExtract/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(HTML::ElementTable) >= 1.16 | |
23 | BuildRequires: perl-HTML-Parser | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | HTML::TableExtract is a subclass of HTML::Parser that serves to | |
30 | extract the textual information from tables of interest contained | |
31 | within an HTML document. The text from each extracted table is stored | |
32 | in tabe state objects which hold the information as an array of arrays | |
33 | that represent the rows and cells of that table. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | HTML::TableExtract to podklasa HTML::Parser, która służy do wyciągania | |
37 | informacji tekstowych z tabel w dokumencie HTML. Tekst z każdej tabeli | |
38 | jest zapisywany w obiektach, które przechowują informacje jako tablicę | |
39 | tablic, reprezentującą wiersze i komórki tabeli. | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %{perl_vendorlib}/%{pdir}/*.pm | |
63 | %{_mandir}/man3/* |