perl-Pod-Coverage/perl-Pod-Coverage.spec

78 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Pod-Coverage
Version: 0.23
Release: 1mamba
Summary: Pod::Coverage - Checks if the documentation of a module is comprehensive
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.cpan.org
Source: http://www.cpan.org/modules/by-module/Pod/Pod-Coverage-%{version}.tar.gz
License: Artistic License
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Devel-Symdump
BuildRequires: perl-Test-Pod
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed May 08 2013 Automatic Build System <autodist@mambasoft.it> 0.23-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22-2mamba
- perl 5.16 mass rebuild
* Mon Feb 13 2012 Automatic Build System <autodist@mambasoft.it> 0.22-1mamba
- automatic version update by autodist
* Thu Mar 17 2011 Automatic Build System <autodist@mambasoft.it> 0.21-1mamba
- automatic update by autodist
* Fri Feb 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19-2mamba
- automatic rebuild by autodist
* Wed Nov 07 2007 Aleph0 <aleph0@openmamba.org> 0.19-1mamba
- update to 0.19
* Mon Jan 24 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.17-1qilnx
- package created by autospec