]> git.pld-linux.org Git - packages/perl-HTML-Tree.git/blame - perl-HTML-Tree.spec
- release 2 (by relup.sh)
[packages/perl-HTML-Tree.git] / perl-HTML-Tree.spec
CommitLineData
04fee16b 1#
2# Conditional build:
d4be5226 3%bcond_without tests # do not perform "make test"
b2d888ba 4
0ec92942 5%define pdir HTML
6%define pnam Tree
b2d888ba 7%include /usr/lib/rpm/macros.perl
18771220 8Summary: A suite for making parse trees out of HTML source
e319933c 9Summary(pl.UTF-8): Pakiet do tworzenie przetworzonych drzew źródła w HTML-u
ed50ce5d 10Name: perl-HTML-Tree
9d575dba 11Version: 5.03
19e1642e 12Release: 2
cf405dd9 13# same as perl
14License: GPL v1+ or Artistic
f002d2df 15Group: Development/Languages/Perl
890ed7d0 16Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
9d575dba 17# Source0-md5: d9271d60b872ed6fbe68b2d0fe8c450e
890ed7d0 18URL: http://search.cpan.org/dist/HTML-Tree/
18ce3c6e 19BuildRequires: rpm-perlprov >= 4.1-13
bb2ba37f 20BuildRequires: perl-devel >= 1:5.8.0
330d124b 21BuildRequires: perl-Module-Build >= 0.2808
b2d888ba 22%if %{with tests}
b7047068 23BuildRequires: perl-HTML-Parser >= 3.46
890ed7d0 24BuildRequires: perl-HTML-Tagset >= 3.02
b2d888ba
ER
25BuildRequires: perl-Test-Fatal
26%endif
890ed7d0 27# HTML::FormatText used in HTML::Element by default; don't use as BuildRequires (loop)
fb39f0f1 28Requires: perl-HTML-Format
890ed7d0 29Requires: perl-HTML-Parser >= 3.46
eb334525 30BuildArch: noarch
4e14b340 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f002d2df 32
33%description
34This is a collection of modules that represent, create and extract
35information from HTML syntax trees. Modules included: HTML::Element,
718ede51 36HTML::TreeBuilder, HTML::AsSubs, HTML::Parse.
f002d2df 37
8d872ed4
JR
38%description -l pl.UTF-8
39Kolekcja modułów do operowania na drzewach składni HTML. Pakiet
40zawiera moduły: HTML::Element, HTML::TreeBuilder, HTML::AsSubs,
ed50ce5d 41HTML::Parse.
f002d2df 42
43%prep
76e0289b 44%setup -q -n %{pdir}-%{pnam}-%{version}
f002d2df 45
46%build
b2d888ba
ER
47%{__perl} Build.PL \
48 destdir=$RPM_BUILD_ROOT \
49 installdirs=vendor
50./Build
d4be5226 51
b2d888ba 52%{?with_tests:./Build test}
f002d2df 53
54%install
55rm -rf $RPM_BUILD_ROOT
b2d888ba 56./Build install
f002d2df 57
890ed7d0 58# for external HTML::TreeBuilder subclasses
3cc2849b 59install -d $RPM_BUILD_ROOT%{perl_vendorlib}/HTML/TreeBuilder
60
890ed7d0
JB
61%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/HTML/Tree/*.pod
62
f002d2df 63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
04fee16b 68%doc README Changes
890ed7d0
JB
69%attr(755,root,root) %{_bindir}/htmltree
70%{perl_vendorlib}/HTML/AsSubs.pm
71%{perl_vendorlib}/HTML/Element.pm
72%{perl_vendorlib}/HTML/Parse.pm
73%{perl_vendorlib}/HTML/Tree.pm
74%{perl_vendorlib}/HTML/TreeBuilder.pm
18ce3c6e 75%dir %{perl_vendorlib}/HTML/Element
890ed7d0 76%{perl_vendorlib}/HTML/Element/traverse.pm
3cc2849b 77%dir %{perl_vendorlib}/HTML/TreeBuilder
890ed7d0
JB
78%{_mandir}/man3/HTML::AsSubs.3pm*
79%{_mandir}/man3/HTML::Element*.3pm*
80%{_mandir}/man3/HTML::Parse.3pm*
81%{_mandir}/man3/HTML::Tree*.3pm*
This page took 0.123693 seconds and 4 git commands to generate.