3 %bcond_without tests # do not perform "make test"
7 Summary: Pod::POM - POD Object Model
8 Summary(pl.UTF-8): Pod::POM - Obiektowy model POD (POD Object Model)
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a2983236abdcf7842d93f10f9132e46c
17 URL: http://search.cpan.org/dist/Pod-POM/
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-File-Slurper >= 0.004
21 BuildRequires: perl-Test-Differences
22 BuildRequires: perl-Text-Diff
24 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module implements a parser to convert Pod documents into a simple
30 object model form known hereafter as the Pod Object Model. The object
31 model is generated as a hierarchical tree of nodes, each of which
32 represents a different element of the original document. The tree can
33 be walked manually and the nodes examined, printed or otherwise
34 manipulated. In addition, Pod::POM supports and provides view objects
35 which can automatically traverse the tree, or section thereof, and
36 generate an output representation in one form or another.
38 %description -l pl.UTF-8
39 Ten moduł jest implementacją parsera konwertującego dokumenty Pod na
40 prostą postać modelu obiektowego, znaną jako Pod Object Model. Model
41 obiektowy jest generowany jako hierarchiczne drzewo węzłów, z których
42 każdy reprezentuje inny element oryginalnego dokumentu. Po drzewie
43 można się przemieszczać ręcznie, sprawdzając, wypisując lub w inny
44 sposób obrabiając węzły. Oprócz tego, Pod::POM obsługuje obiekty
45 widoku, które mogą automatycznie przemieszczać się po drzewie lub jego
46 części i generować na wyjściu reprezentację w jakiejś formie.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc Changes README.md TODO
70 %attr(755,root,root) %{_bindir}/podlint
71 %attr(755,root,root) %{_bindir}/pom2
72 %attr(755,root,root) %{_bindir}/pomdump
73 %{perl_vendorlib}/Pod/POM.pm
74 %{perl_vendorlib}/Pod/POM
75 %{_mandir}/man1/podlint.1p*
76 %{_mandir}/man1/pom2.1p*
77 %{_mandir}/man1/pomdump.1p*
78 %{_mandir}/man3/Pod::POM*.3pm*