3 %bcond_without tests # do not perform "make test"
7 Summary: Pod::Tree - create a static syntax tree for a POD
8 Summary(pl.UTF-8): Pod::Tree - tworzenie statycznych drzew składniowych dla POD
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Pod/SWMCD/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 7ab2dc16736ce37d1bf82e6065107cf5
17 Patch0: %{name}-carriage_return.patch
18 Patch1: %{name}-item_warning.patch
19 URL: http://search.cpan.org/dist/Pod-Tree/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-HTML-Stream >= 1.49
24 BuildRequires: perl-IO >= 1.23
25 BuildRequires: perl-Pod-Escapes >= 1.02
26 BuildRequires: perl-Text-Template >= 1
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Pod::Tree parses a POD into a static syntax tree. Applications walk
33 the tree to recover the structure and content of the POD. See
34 Pod::Tree::Node manual for a description of the tree.
36 %description -l pl.UTF-8
37 Pod::Tree przekształca POD na statyczne drzewo składniowe. Aplikacje
38 wędrują po drzewie w celu uzyskania struktury i zawartości z POD. Opis
39 drzewa można znaleźć w manualu do Pod::Tree::Node.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 cp -a skeleton $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc Changes README ToDo ToDo.Not
68 %attr(755,root,root) %{_bindir}/mod2html
69 %attr(755,root,root) %{_bindir}/perl2html
70 %attr(755,root,root) %{_bindir}/pods2html
71 %attr(755,root,root) %{_bindir}/podtree2html
72 %{perl_vendorlib}/Pod/Tree.pm
73 %{perl_vendorlib}/Pod/Tree
74 %{_mandir}/man1/mod2html.1p*
75 %{_mandir}/man1/perl2html.1p*
76 %{_mandir}/man1/pods2html.1p*
77 %{_mandir}/man1/podtree2html.1p*
78 %{_mandir}/man3/Pod::Tree*.3pm*
79 %{_examplesdir}/%{name}-%{version}