Introduce build-condition for running optional tests

This commit is contained in:
Petr Písař 2017-04-05 11:55:47 +02:00
parent b0ed170ca9
commit 88ec246165

View File

@ -2,6 +2,9 @@
%global cpan_version_minor 22
%global cpan_version %{cpan_version_major}%{?cpan_version_minor}
# Run optional tests
%bcond_without perl_Module_Build_enables_optional_test
Name: perl-Module-Build
Epoch: 2
Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
@ -53,6 +56,7 @@ BuildRequires: perl(Perl::OSType) >= 1
BuildRequires: perl(strict)
# Optional tests:
%if !%{defined perl_bootstrap}
%if %{with perl_Module_Build_enables_optional_test}
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(File::ShareDir) >= 1.00
BuildRequires: perl(PAR::Dist)
@ -60,6 +64,7 @@ BuildRequires: perl(PAR::Dist)
BuildRequires: perl(Pod::Readme)
%endif
%endif
%endif
BuildRequires: perl(TAP::Harness)
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(Test::Harness) >= 3.29