[perl-YAML/f21] Disable tests when bootstrapping
Jitka Plesnikova
jplesnik at fedoraproject.org
Tue Aug 12 12:01:32 UTC 2014
commit 707ce90eda2e6f75ce505f8e7fecefde11e819c9
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date: Tue Aug 12 14:01:19 2014 +0200
Disable tests when bootstrapping
perl-YAML.spec | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/perl-YAML.spec b/perl-YAML.spec
index 0148935..7c3d873 100644
--- a/perl-YAML.spec
+++ b/perl-YAML.spec
@@ -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(warnings)
+# Avoid circular build deps Test::YAML > Test::Base > YAML when bootstrapping
+%if !%{defined perl_bootstrap}
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)
+%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 at redhat.com> - 1.01-2
+- Disable tests when bootstrapping
+
* Fri Aug 8 2014 Paul Howarth <paul at city-fan.org> - 1.01-1
- Update to 1.01
- Depend on patched Test::YAML
More information about the perl-devel
mailing list