[perl-Module-Build] Do not run PAR tests on bootstrap

Petr Pisar ppisar at fedoraproject.org
Mon Jun 4 12:40:58 UTC 2012


commit 6963f57cb67159a6e48137be851ee50305dda3e1
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Jun 4 14:40:01 2012 +0200

    Do not run PAR tests on bootstrap

 perl-Module-Build.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/perl-Module-Build.spec b/perl-Module-Build.spec
index 25ed5e2..44d8a0a 100644
--- a/perl-Module-Build.spec
+++ b/perl-Module-Build.spec
@@ -1,7 +1,7 @@
 Name:           perl-Module-Build
 Epoch:          2
 Version:        0.40
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Build and install Perl modules
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -36,12 +36,16 @@ BuildRequires:  perl(IO::File)
 BuildRequires:  perl(lib)
 BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Module::Metadata) >= 1.000002
-BuildRequires:  perl(PAR::Dist)
 BuildRequires:  perl(Parse::CPAN::Meta)
 BuildRequires:  perl(Perl::OSType) >= 1
+# Optional tests:
+%if !%{defined perl_bootstrap}
+BuildRequires:  perl(Archive::Zip)
+BuildRequires:  perl(PAR::Dist)
 %if 0%{?fedora}  || 0%{?rhel} < 7
 BuildRequires:  perl(Pod::Readme)
 %endif
+%endif
 BuildRequires:  perl(Test::Harness) >= 3.16
 BuildRequires:  perl(Test::More) >= 0.49
 BuildRequires:  perl(version) >= 0.87
@@ -54,6 +58,7 @@ Requires:       perl(ExtUtils::Manifest) >= 1.54
 Requires:       perl(ExtUtils::Mkbootstrap)
 Requires:       perl(ExtUtils::ParseXS) >= 2.21
 Requires:       perl(Module::Metadata) >= 1.000002
+# Keep PAR support optional (PAR::Dist)
 Requires:       perl(Perl::OSType) >= 1
 Requires:       perl(Test::Harness)
 
@@ -97,6 +102,9 @@ LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Jun 04 2012 Petr Pisar <ppisar at redhat.com> - 2:0.40-2
+- Do not run PAR tests on bootstrap
+
 * Thu May 31 2012 Petr Pisar <ppisar at redhat.com> - 2:0.40-1
 - 0.40 bump
 - All reverse dependecies must require use 2-digit Module::Build version now


More information about the scm-commits mailing list