2007-01-15 23:31:36 +00:00
|
|
|
#
|
2010-01-11 14:58:29 +00:00
|
|
|
# spec file for package perl-Pod-Coverage (Version 0.20)
|
2007-01-15 23:31:36 +00:00
|
|
|
#
|
2010-01-11 14:58:29 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:36 +00:00
|
|
|
#
|
2009-06-18 15:11:04 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:31:36 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:11:04 +00:00
|
|
|
|
2007-01-15 23:31:36 +00:00
|
|
|
Name: perl-Pod-Coverage
|
2010-01-11 14:58:29 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2007-11-20 13:59:21 +00:00
|
|
|
Summary: Check if the documentation of a module is comprehensive
|
2010-01-11 14:58:29 +00:00
|
|
|
Version: 0.20
|
2010-04-22 23:26:53 +00:00
|
|
|
Release: 2
|
2010-01-11 14:58:29 +00:00
|
|
|
License: Artistic ; GPLv2+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/~rclamp/Pod-Coverage
|
2010-04-22 23:26:53 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
2007-01-15 23:31:36 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-11 14:58:29 +00:00
|
|
|
BuildRequires: perl
|
2010-04-22 23:26:53 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
2010-01-11 14:58:29 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-04-22 23:26:53 +00:00
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Pod::Find) >= 0.21
|
2010-01-11 14:58:29 +00:00
|
|
|
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::Parser) >= 1.13
|
2010-04-22 23:26:53 +00:00
|
|
|
#
|
2010-01-11 14:58:29 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2010-04-22 23:26:53 +00:00
|
|
|
Requires: perl(Pod::Find) >= 0.21
|
2010-01-11 14:58:29 +00:00
|
|
|
# other not perl || perl-base
|
|
|
|
Requires: perl(Devel::Symdump) >= 2.01
|
|
|
|
Requires: perl(Pod::Parser) >= 1.13
|
2007-01-15 23:31:36 +00:00
|
|
|
|
|
|
|
%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.
|
2010-04-22 23:26:53 +00:00
|
|
|
|
2007-01-15 23:31:36 +00:00
|
|
|
This module provides a mechanism for determining if the pod for a given
|
|
|
|
module is comprehensive.
|
2010-04-22 23:26:53 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
|
2007-01-15 23:31:36 +00:00
|
|
|
|
|
|
|
%prep
|
2010-01-11 14:58:29 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:31:36 +00:00
|
|
|
|
|
|
|
%build
|
2010-04-22 23:26:53 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
|
|
|
./Build
|
2007-11-20 13:59:21 +00:00
|
|
|
|
|
|
|
%check
|
2010-04-22 23:26:53 +00:00
|
|
|
./Build test
|
2007-01-15 23:31:36 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-22 23:26:53 +00:00
|
|
|
./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
|
2010-01-11 14:58:29 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:36 +00:00
|
|
|
|
2010-01-11 14:58:29 +00:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-15 23:31:36 +00:00
|
|
|
|
2010-01-11 14:58:29 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
2007-01-15 23:31:36 +00:00
|
|
|
%defattr(-,root,root)
|
2010-04-22 23:26:53 +00:00
|
|
|
%doc Changes examples
|
2009-06-18 15:11:04 +00:00
|
|
|
|
2007-11-20 13:59:21 +00:00
|
|
|
%changelog
|