%define perl_vendorlib %(eval "`%{_bindir}/perl -V:installvendorlib`"; echo $installvendorlib) Name: perl-Pod-Coverage Version: 0.19 Release: 1 Summary: Checks if the documentation of a module is comprehensive License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Pod-Coverage/ Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/Pod-Coverage-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl(Devel::Symdump) >= 2.01 BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Pod) Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 Requires: perl-Devel-Symdump >= 2.01 %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. This module provides a mechanism for determining if the pod for a given module is comprehensive. %prep %setup -q -n Pod-Coverage-%{version} %build %{_bindir}/perl Makefile.PL INSTALLDIRS=vendor make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';' find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w ${RPM_BUILD_ROOT}/* %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc Changes README examples/ %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Nov 14 2008 Michael Perzl - 0.19-1 - first version for AIX V5.1 and higher