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