]> git.pld-linux.org Git - packages/perl-HTML-TableExtract.git/blob - perl-HTML-TableExtract.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/perl-HTML-TableExtract.git] / perl-HTML-TableExtract.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 %include        /usr/lib/rpm/macros.perl
5 %define pdir    HTML
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
10 Version:        1.08
11 Release:        3
12 License:        GPL/Artistic
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
18 %endif
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
29
30 %description -l pl
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.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor 
42 %{__make}
43
44 %{!?_without_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %{perl_vendorlib}/%{pdir}/*.pm
57 %{_mandir}/man3/*
This page took 0.035414 seconds and 3 git commands to generate.