Disable tests when bootstrapping

This commit is contained in:
Jitka Plesnikova 2014-08-12 14:01:19 +02:00
parent 8745e79852
commit 707ce90eda

View File

@ -1,6 +1,6 @@
Name: perl-YAML
Version: 1.01
Release: 1%{?dist}
Release: 2%{?dist}
Summary: YAML Ain't Markup Language (tm)
License: GPL+ or Artistic
Group: Development/Libraries
@ -16,13 +16,13 @@ BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
BuildRequires: perl(lib)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) >= 0.88
# Avoid circular build deps via Module::Build when bootstrapping
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(Test::Pod) >= 1.41
%endif
BuildRequires: perl(Test::YAML) >= 1.01
BuildRequires: perl(warnings)
# Avoid circular build deps Test::YAML > Test::Base > YAML when bootstrapping
%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::YAML) >= 1.01
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
Requires: perl(Data::Dumper)
@ -51,8 +51,10 @@ make %{?_smp_mflags}
make install DESTDIR=%{buildroot}
%check
# Avoid circular build deps via Module::Build on Test::Pod when bootstrapping
make test %{!?perl_bootstrap:RELEASE_TESTING=1}
# Avoid circular build deps Test::YAML > Test::Base > YAML when bootstrapping
%if !%{defined perl_bootstrap}
make test
%endif
%files
%license LICENSE
@ -96,6 +98,9 @@ make test %{!?perl_bootstrap:RELEASE_TESTING=1}
%{_mandir}/man3/YAML::Types.3pm*
%changelog
* Tue Aug 12 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.01-2
- Disable tests when bootstrapping
* Fri Aug 8 2014 Paul Howarth <paul@city-fan.org> - 1.01-1
- Update to 1.01
- Depend on patched Test::YAML