]> git.pld-linux.org Git - packages/perl-HTML-TableExtract.git/blob - perl-HTML-TableExtract.spec
- formatting
[packages/perl-HTML-TableExtract.git] / perl-HTML-TableExtract.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not 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):    HTML::TableExtract - wyci±ganie tekstu zawartego w tabelach HTML
10 Name:           perl-HTML-TableExtract
11 Version:        1.08
12 Release:        4
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:  db5001e68c3036c1a72138d45f57bd21
18 BuildRequires:  perl-devel >= 1:5.8.0
19 %if %{with tests}
20 BuildRequires:  perl-HTML-Parser
21 %endif
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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
33 %description -l pl
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.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/%{pdir}/*.pm
61 %{_mandir}/man3/*
This page took 0.177555 seconds and 3 git commands to generate.