Accepting request 38547 from devel:languages:perl

Copy from devel:languages:perl/perl-Pod-Coverage based on submit request 38547 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/38547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Pod-Coverage?expand=0&rev=8
This commit is contained in:
OBS User autobuild 2010-04-22 23:26:53 +00:00 committed by Git OBS Bridge
parent 9aa8773f74
commit 807218bc81
4 changed files with 43 additions and 20 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a214b4a39a0167aece4d7a6634b89b0b17b3e337eb0cfaeb82f16dbc88f8b69
size 11812

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7e184b32c9dfc1b3c73b37eb7c4e4632773bae29a1ccf66316989190d5d0892
size 13224

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Apr 22 20:44:14 UTC 2010 - chris@computersalat.de
- cleanup spec
o bzipped Source
o fix perl-macros deps
o updated description
o Makefile.PL > Build.PL
o removed .packlist, perllocal.pod file > noarch pkg
o examples to doc
-------------------------------------------------------------------
Sat Jul 25 19:41:27 CEST 2009 - chris@computersalat.de

View File

@ -22,54 +22,66 @@ Name: perl-Pod-Coverage
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Check if the documentation of a module is comprehensive
Version: 0.20
Release: 1
Release: 2
License: Artistic ; GPLv2+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/~rclamp/Pod-Coverage
Source: %{cpan_name}-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
#BuildRequires: perl(Module::Build)
%endif
BuildRequires: perl(Module::Build)
BuildRequires: perl(Pod::Find) >= 0.21
BuildRequires: perl(Test::More) >= 0
BuildRequires: perl(Test::Pod) >= 1.0
# other not perl || perl-base
BuildRequires: perl(Devel::Symdump) >= 2.01
BuildRequires: perl(Pod::Find) >= 0.21
BuildRequires: perl(Pod::Parser) >= 1.13
#
Requires: perl = %{perl_version}
Requires: perl(Pod::Find) >= 0.21
# other not perl || perl-base
Requires: perl(Devel::Symdump) >= 2.01
Requires: perl(Pod::Find) >= 0.21
Requires: perl(Pod::Parser) >= 1.13
%description
%{cpan_name} module for perl
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.
This module provides a mechanism for determining if the pod for a given
module is comprehensive.
_head(n>1) or an _
subroutine.
Authors: Richard Clamp <richardc@unixbeard.net>
Michael Stevens <mstevens@etla.org>
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>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
./Build
%check
%{__make} test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
@ -78,6 +90,6 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc Changes
%doc Changes examples
%changelog