# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Pod %define pnam POM Summary: Pod::POM - POD Object Model Summary(pl.UTF-8): Pod::POM - Obiektowy model POD (POD Object Model) Name: perl-Pod-POM Version: 2.01 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a2983236abdcf7842d93f10f9132e46c URL: http://search.cpan.org/dist/Pod-POM/ BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-File-Slurper >= 0.004 BuildRequires: perl-Test-Differences BuildRequires: perl-Text-Diff %endif BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module implements a parser to convert Pod documents into a simple object model form known hereafter as the Pod Object Model. The object model is generated as a hierarchical tree of nodes, each of which represents a different element of the original document. The tree can be walked manually and the nodes examined, printed or otherwise manipulated. In addition, Pod::POM supports and provides view objects which can automatically traverse the tree, or section thereof, and generate an output representation in one form or another. %description -l pl.UTF-8 Ten moduł jest implementacją parsera konwertującego dokumenty Pod na prostą postać modelu obiektowego, znaną jako Pod Object Model. Model obiektowy jest generowany jako hierarchiczne drzewo węzłów, z których każdy reprezentuje inny element oryginalnego dokumentu. Po drzewie można się przemieszczać ręcznie, sprawdzając, wypisując lub w inny sposób obrabiając węzły. Oprócz tego, Pod::POM obsługuje obiekty widoku, które mogą automatycznie przemieszczać się po drzewie lub jego części i generować na wyjściu reprezentację w jakiejś formie. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README.md TODO %attr(755,root,root) %{_bindir}/podlint %attr(755,root,root) %{_bindir}/pom2 %attr(755,root,root) %{_bindir}/pomdump %{perl_vendorlib}/Pod/POM.pm %{perl_vendorlib}/Pod/POM %{_mandir}/man1/podlint.1p* %{_mandir}/man1/pom2.1p* %{_mandir}/man1/pomdump.1p* %{_mandir}/man3/Pod::POM*.3pm*