]> git.pld-linux.org Git - packages/perl-HTML-TableExtract.git/blob - perl-HTML-TableExtract.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-TableExtract.git] / perl-HTML-TableExtract.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    TableExtract
7 Summary:        HTML::TableExtract - extracting the text contained in HTML tables
8 Summary(pl.UTF-8):      HTML::TableExtract - wyciąganie tekstu zawartego w tabelach HTML
9 Name:           perl-HTML-TableExtract
10 Version:        2.11
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  ac1b8fa092d53931a9f3fdbba330f5b0
17 URL:            http://search.cpan.org/dist/HTML-TableExtract/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(HTML::ElementTable) >= 1.16
22 BuildRequires:  perl-HTML-Parser
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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
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.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm
62 %{_mandir}/man3/*
This page took 0.081147 seconds and 4 git commands to generate.