# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Pod %define pnam Coverage Summary: Pod::Coverage - checks if the documentation of a module is comprehensive Summary(pl.UTF-8): Pod::Coverage - sprawdzanie kompletności dokumentacji modułu Name: perl-Pod-Coverage Version: 0.23 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: 12229e553ee7887680ee3db11da5ee52 URL: https://metacpan.org/release/Pod-Coverage BuildRequires: perl-Module-Build >= 0.21-2 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 %if %{with tests} BuildRequires: perl-Devel-Symdump >= 2.01 BuildRequires: perl-Pod-Parser >= 1.13 BuildRequires: perl-Test-Pod >= 1.00 BuildRequires: perl-Test-Simple %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module provides a mechanism for determining if the pod for a given module is comprehensive. It expects to find either a =head(n>1) or an =item block documenting a subroutine. %description -l pl.UTF-8 Ten moduł udostępnia mechamizm do określania, czy dokumentacja pod dla danego modułu jest kompletna. Oczekuje bloku =head(n>1) lub =item opisującego funkcję. %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} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/pod_cover %{perl_vendorlib}/Pod/Coverage.pm %{perl_vendorlib}/Pod/Coverage %{_mandir}/man3/Pod::Coverage*.3pm*