forked from pool/perl-Pod-Coverage
- recreate with cpanspec to fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Pod-Coverage?expand=0&rev=27
This commit is contained in:
committed by
Git OBS Bridge
parent
0f7841f585
commit
a3a6a1fd88
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 21 09:12:16 UTC 2012 - coolo@suse.com
|
||||
|
||||
- recreate with cpanspec to fix build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 12:30:23 CET 2012 - pth@suse.de
|
||||
|
||||
|
||||
@@ -16,70 +16,71 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with pod
|
||||
|
||||
Name: perl-Pod-Coverage
|
||||
Version: 0.22
|
||||
Release: 0
|
||||
%define cpan_name Pod-Coverage
|
||||
Summary: Checks if the documentation of a module is comprehensive
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
Version: 0.22
|
||||
Release: 0
|
||||
Url: http://search.cpan.org/dist/Pod-Coverage/
|
||||
#Source: http://www.cpan.org/modules/by-module/Pod/Pod-Coverage-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
#BuildArch: noarch
|
||||
Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build)
|
||||
%if %{with pod}
|
||||
BuildRequires: perl(Test::Pod) >= 1.0
|
||||
%endif
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Devel::Symdump) >= 2.01
|
||||
#
|
||||
#BuildRequires: perl(GrandParent)
|
||||
#BuildRequires: perl(Parent)
|
||||
#BuildRequires: perl(Pod::Coverage)
|
||||
Requires: perl(Devel::Symdump) >= 2.01
|
||||
Requires: perl(Pod::Find) >= 0.21
|
||||
Requires: perl(Pod::Parser) >= 1.13
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Developers hate writing documentation. They'd hate it even more if their
|
||||
computer tattled on them, but maybe they'll be even more thankful in the
|
||||
long run. Even if not, perlmodstyle tells you to, so you must obey.
|
||||
long run. Even if not, _perlmodstyle_ tells you to, so you must obey.
|
||||
|
||||
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
|
||||
It expects to find either a '=head(n>1)' or an '=item' block documenting a
|
||||
subroutine.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Richard Clamp <richardc@unixbeard.net>
|
||||
Michael Stevens <mstevens@etla.org>
|
||||
Consider: # an imaginary Foo.pm package Foo;
|
||||
|
||||
=item foo
|
||||
|
||||
The foo sub
|
||||
|
||||
= cut
|
||||
|
||||
sub foo {}
|
||||
sub bar {}
|
||||
|
||||
1;
|
||||
__END__
|
||||
|
||||
In this example 'Foo::foo' is covered, but 'Foo::bar' is not, so the 'Foo'
|
||||
package is only 50% (0.5) covered
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL installdirs=vendor
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%makeinstall create_packlist=0
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
find %{buildroot}/usr/lib/perl5 -name perllocal.pod -exec rm -f {} \;
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user