Skip some tests on bootstrap

This commit is contained in:
Petr Písař 2012-06-01 14:38:15 +02:00
parent db72c02170
commit bd2d1f1502

View File

@ -1,6 +1,6 @@
Name: perl-CPAN-Meta-Requirements
Version: 2.122
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Set of version requirements for a CPAN dist
License: GPL+ or Artistic
Group: Development/Libraries
@ -13,9 +13,12 @@ BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::Script)
%endif
BuildRequires: perl(version) >= 0.77
# for author/release tests
%if !%{defined perl_bootstrap}
BuildRequires: perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Pod::Wordlist::hanekomu)
@ -27,6 +30,7 @@ BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Spelling) aspell-en
BuildRequires: perl(Test::Version)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -59,6 +63,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
%if %{defined perl_bootstrap}
rm -rf xt
%endif
make test TEST_FILES="t/*.t xt/*/*.t"
%files
@ -67,6 +74,9 @@ make test TEST_FILES="t/*.t xt/*/*.t"
%{_mandir}/man3/*
%changelog
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com>
- Skip some tests on bootstrap
* Mon May 07 2012 Iain Arnell <iarnell@gmail.com> 2.122-1
- update to latest upstream version