]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: A suite for making parse trees out of HTML source |
e319933c | 9 | Summary(pl.UTF-8): Pakiet do tworzenie przetworzonych drzew źródła w HTML-u |
ed50ce5d | 10 | Name: perl-HTML-Tree |
9d575dba | 11 | Version: 5.03 |
19e1642e | 12 | Release: 2 |
cf405dd9 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
f002d2df | 15 | Group: Development/Languages/Perl |
890ed7d0 | 16 | Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz |
9d575dba | 17 | # Source0-md5: d9271d60b872ed6fbe68b2d0fe8c450e |
890ed7d0 | 18 | URL: http://search.cpan.org/dist/HTML-Tree/ |
18ce3c6e | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
bb2ba37f | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
330d124b | 21 | BuildRequires: perl-Module-Build >= 0.2808 |
b2d888ba | 22 | %if %{with tests} |
b7047068 | 23 | BuildRequires: perl-HTML-Parser >= 3.46 |
890ed7d0 | 24 | BuildRequires: perl-HTML-Tagset >= 3.02 |
b2d888ba ER |
25 | BuildRequires: perl-Test-Fatal |
26 | %endif | |
890ed7d0 | 27 | # HTML::FormatText used in HTML::Element by default; don't use as BuildRequires (loop) |
fb39f0f1 | 28 | Requires: perl-HTML-Format |
890ed7d0 | 29 | Requires: perl-HTML-Parser >= 3.46 |
eb334525 | 30 | BuildArch: noarch |
4e14b340 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f002d2df | 32 | |
33 | %description | |
34 | This is a collection of modules that represent, create and extract | |
35 | information from HTML syntax trees. Modules included: HTML::Element, | |
718ede51 | 36 | HTML::TreeBuilder, HTML::AsSubs, HTML::Parse. |
f002d2df | 37 | |
8d872ed4 JR |
38 | %description -l pl.UTF-8 |
39 | Kolekcja modułów do operowania na drzewach składni HTML. Pakiet | |
40 | zawiera moduły: HTML::Element, HTML::TreeBuilder, HTML::AsSubs, | |
ed50ce5d | 41 | HTML::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 | |
55 | rm -rf $RPM_BUILD_ROOT | |
b2d888ba | 56 | ./Build install |
f002d2df | 57 | |
890ed7d0 | 58 | # for external HTML::TreeBuilder subclasses |
3cc2849b | 59 | install -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 |
64 | rm -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* |