]> git.pld-linux.org Git - packages/perl-Pod-Coverage.git/blame - perl-Pod-Coverage.spec
- macros for perl autodeps
[packages/perl-Pod-Coverage.git] / perl-Pod-Coverage.spec
CommitLineData
431ce0a1 1#
9be25b23 2# Conditional build:
f8cc0a5f 3%bcond_without tests # do not perform "make test"
431ce0a1 4#
61052511 5%define pdir Pod
6%define pnam Coverage
b2ff1564 7Summary: Pod::Coverage - checks if the documentation of a module is comprehensive
8dd22bee 8Summary(pl.UTF-8): Pod::Coverage - sprawdzanie kompletności dokumentacji modułu
9be25b23 9Name: perl-Pod-Coverage
f53a0982 10Version: 0.23
14651a1f 11Release: 1
3e1cba89 12# same as perl
ea621a1c 13License: GPL v1+ or Artistic
9be25b23 14Group: Development/Languages/Perl
3bfa0555 15Source0: http://www.cpan.org/modules/by-module/Pod/%{pdir}-%{pnam}-%{version}.tar.gz
f53a0982 16# Source0-md5: 12229e553ee7887680ee3db11da5ee52
fd2ce192 17URL: https://metacpan.org/release/Pod-Coverage
431ce0a1 18BuildRequires: perl-Module-Build >= 0.21-2
11125a6d
JB
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
fd2ce192 21BuildRequires: rpmbuild(macros) >= 1.745
f8cc0a5f 22%if %{with tests}
9be25b23 23BuildRequires: perl-Devel-Symdump >= 2.01
a037a356
AG
24BuildRequires: perl-Pod-Parser >= 1.13
25BuildRequires: perl-Test-Pod >= 1.00
9be25b23 26BuildRequires: perl-Test-Simple
27%endif
14651a1f 28BuildArch: noarch
9be25b23 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
7041dff7
JB
32This module provides a mechanism for determining if the pod for a
33given module is comprehensive. It expects to find either a =head(n>1)
34or an =item block documenting a subroutine.
9be25b23 35
193c07ff
JR
36%description -l pl.UTF-8
37Ten moduł udostępnia mechamizm do określania, czy dokumentacja pod dla
38danego modułu jest kompletna. Oczekuje bloku =head(n>1) lub =item
39opisującego funkcję.
9be25b23 40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
3bfa0555 45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make}
9be25b23 48
3bfa0555 49%{?with_tests:%{__make} test}
9be25b23 50
51%install
52rm -rf $RPM_BUILD_ROOT
53
3bfa0555 54%{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
9be25b23 56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
e2231801
JB
62%attr(755,root,root) %{_bindir}/pod_cover
63%{perl_vendorlib}/Pod/Coverage.pm
14651a1f 64%{perl_vendorlib}/Pod/Coverage
e2231801 65%{_mandir}/man3/Pod::Coverage*.3pm*
This page took 0.083164 seconds and 4 git commands to generate.