]> git.pld-linux.org Git - packages/perl-HTML-TableExtract.git/blame - perl-HTML-TableExtract.spec
- minor fixes
[packages/perl-HTML-TableExtract.git] / perl-HTML-TableExtract.spec
CommitLineData
17781d47 1#
2# Conditional build:
17ec5df1 3%bcond_with tests # perform "make test"
c62db9b7 4#
17781d47 5%include /usr/lib/rpm/macros.perl
cc893c5f 6%define pdir HTML
7%define pnam TableExtract
e423eaaf 8Summary: HTML::TableExtract - extracting the text contained in HTML tables
411a3dff 9Summary(pl.UTF-8): HTML::TableExtract - wyciąganie tekstu zawartego w tabelach HTML
17781d47 10Name: perl-HTML-TableExtract
2959c098 11Version: 2.10
17ec5df1 12Release: 1
952e60e8 13# same as perl
14License: GPL v1+ or Artistic
17781d47 15Group: Development/Languages/Perl
98d009b9 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
2959c098 17# Source0-md5: e6e355f6049dc57706e719c5ce61ff39
17ec5df1 18URL: http://search.cpan.org/dist/HTML-TableExtract/
e58fb3c2 19BuildRequires: perl-devel >= 1:5.8.0
17ec5df1 20BuildRequires: rpm-perlprov >= 4.1-13
c62db9b7 21%if %{with tests}
17ec5df1 22BuildRequires: perl(HTML::ElementTable) >= 1.16
17781d47 23BuildRequires: perl-HTML-Parser
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
e423eaaf
JB
29HTML::TableExtract is a subclass of HTML::Parser that serves to
30extract the textual information from tables of interest contained
31within an HTML document. The text from each extracted table is stored
32in tabe state objects which hold the information as an array of arrays
33that represent the rows and cells of that table.
34
07faac23
JR
35%description -l pl.UTF-8
36HTML::TableExtract to podklasa HTML::Parser, która służy do wyciągania
37informacji tekstowych z tabel w dokumencie HTML. Tekst z każdej tabeli
38jest zapisywany w obiektach, które przechowują informacje jako tablicę
39tablic, reprezentującą wiersze i komórki tabeli.
17781d47 40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
d4d6348c 45%{__perl} Makefile.PL \
d686cebb 46 INSTALLDIRS=vendor
17781d47 47%{__make}
e423eaaf 48
c62db9b7 49%{?with_tests:%{__make} test}
17781d47 50
51%install
52rm -rf $RPM_BUILD_ROOT
53
02caa94a 54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
17781d47 56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
d4d6348c 62%{perl_vendorlib}/%{pdir}/*.pm
17781d47 63%{_mandir}/man3/*
This page took 0.07292 seconds and 4 git commands to generate.