Disable author tests on bootstrap

This commit is contained in:
Petr Písař 2012-06-01 14:18:32 +02:00
parent 795370ea5b
commit 5fcfb2dd2c

View File

@ -3,7 +3,7 @@
Name: perl-CPAN-Meta-YAML
Version: 0.008
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Read and write a subset of YAML for CPAN Meta files
License: GPL+ or Artistic
Group: Development/Libraries
@ -14,12 +14,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
# Tests:
BuildRequires: perl(Test::More)
BuildRequires: perl(YAML)
%if !%{defined perl_bootstrap}
# Version 1.113620 needed for "UTF"; RHEL-7 package cannot have buildreq from EPEL-7
%if 0%{?rhel} < 7
BuildRequires: perl(Pod::Wordlist::hanekomu) >= 1.113620
%endif
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Spelling), aspell-en
@ -27,7 +30,7 @@ BuildRequires: perl(Test::Spelling), aspell-en
%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: perl(Test::Version)
%endif
BuildRequires: perl(YAML)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
@ -54,6 +57,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"
%clean
@ -65,6 +71,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/CPAN::Meta::YAML.3pm*
%changelog
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 0.008-4
- Disable author tests on bootstrap
* Mon Apr 23 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.008-3
- Data::Dumper is not really needed, dependencies must be fixed in YAML