|
|
e635a7a |
Name: perl-ExtUtils-MakeMaker-Coverage
|
|
|
e635a7a |
Version: 0.05
|
|
|
502ceeb |
Release: 6%{?dist}
|
|
|
e635a7a |
Summary: Allows perl modules to check test coverage with Devel::Cover
|
|
|
e635a7a |
|
|
|
e635a7a |
Group: Development/Libraries
|
|
|
e635a7a |
License: GPL+ or Artistic
|
|
|
e635a7a |
URL: http://search.cpan.org/dist/ExtUtils-MakeMaker-Coverage/
|
|
|
e635a7a |
Source0: http://search.cpan.org/CPAN/authors/id/S/SM/SMPETERS/ExtUtils-MakeMaker-Coverage-%{version}.tar.gz
|
|
|
e635a7a |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
e635a7a |
|
|
|
e635a7a |
BuildArch: noarch
|
|
|
e635a7a |
|
|
|
e635a7a |
BuildRequires: perl(ExtUtils::MakeMaker), perl(Object::Accessor)
|
|
|
e635a7a |
BuildRequires: perl(Test::More), perl(Test::Pod), perl(Test::Pod::Coverage)
|
|
|
e635a7a |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
f5ad257 |
# rpm doesn't catch these (BZ 490743)
|
|
|
f5ad257 |
Requires: perl(Object::Accessor), perl(Devel::Cover)
|
|
|
e635a7a |
|
|
|
e635a7a |
%description
|
|
|
e635a7a |
This module adds an additional target to the Makefile generated by
|
|
|
e635a7a |
ExtUtils::MakeMaker. The target, testcover, calls cover, the
|
|
|
e635a7a |
command-line script to generate test coverage statistics, to clean up
|
|
|
e635a7a |
any data from a previous run. It then runs the tests, as if make test
|
|
|
e635a7a |
was run, then calls cover again to generate the coverage statistics.
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%prep
|
|
|
e635a7a |
%setup -q -n ExtUtils-MakeMaker-Coverage-%{version}
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%build
|
|
|
e635a7a |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
e635a7a |
make %{?_smp_mflags}
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%install
|
|
|
e635a7a |
rm -rf $RPM_BUILD_ROOT
|
|
|
e635a7a |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
e635a7a |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
e635a7a |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
e635a7a |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%check
|
|
|
e635a7a |
make test
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%clean
|
|
|
e635a7a |
rm -rf $RPM_BUILD_ROOT
|
|
|
e635a7a |
|
|
|
e635a7a |
|
|
|
e635a7a |
%files
|
|
|
e635a7a |
%defattr(-,root,root,-)
|
|
|
e635a7a |
%doc Changes README
|
|
|
e635a7a |
%{perl_vendorlib}/ExtUtils/MakeMaker/Coverage.pm
|
|
|
e635a7a |
%{_mandir}/man3/*.3*
|
|
|
e635a7a |
%{_bindir}/testcover
|
|
|
e635a7a |
|
|
|
e635a7a |
%changelog
|
|
|
f5ad257 |
* Wed Mar 18 2009 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 0.05-6
|
|
|
f5ad257 |
- Add R: perl(Object::Accessor), perl(Devel::Cover) (BZ 490743).
|
|
|
f5ad257 |
|
|
|
3b7c329 |
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-4
|
|
|
3b7c329 |
- rebuild for new perl
|
|
|
3b7c329 |
|
|
|
e635a7a |
* Mon Aug 20 2007 Robin Norwood <rnorwood@redhat.com> - 0.05-3
|
|
|
e635a7a |
- More BR's: perl(Test::Pod) and perl(Test::Pod::Coverage)
|
|
|
e635a7a |
|
|
|
e635a7a |
* Fri Aug 17 2007 Robin Norwood <rnorwood@redhat.com> - 0.05-2
|
|
|
e635a7a |
- Add missing BuildRequires: perl(Test::More)
|
|
|
e635a7a |
|
|
|
e635a7a |
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.05-1
|
|
|
e635a7a |
- Initial build
|