Introduce build-condition for running optional tests
This commit is contained in:
parent
b0ed170ca9
commit
88ec246165
@ -2,6 +2,9 @@
|
|||||||
%global cpan_version_minor 22
|
%global cpan_version_minor 22
|
||||||
%global cpan_version %{cpan_version_major}%{?cpan_version_minor}
|
%global cpan_version %{cpan_version_major}%{?cpan_version_minor}
|
||||||
|
|
||||||
|
# Run optional tests
|
||||||
|
%bcond_without perl_Module_Build_enables_optional_test
|
||||||
|
|
||||||
Name: perl-Module-Build
|
Name: perl-Module-Build
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
|
Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
|
||||||
@ -53,6 +56,7 @@ BuildRequires: perl(Perl::OSType) >= 1
|
|||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
|
%if %{with perl_Module_Build_enables_optional_test}
|
||||||
BuildRequires: perl(Archive::Zip)
|
BuildRequires: perl(Archive::Zip)
|
||||||
BuildRequires: perl(File::ShareDir) >= 1.00
|
BuildRequires: perl(File::ShareDir) >= 1.00
|
||||||
BuildRequires: perl(PAR::Dist)
|
BuildRequires: perl(PAR::Dist)
|
||||||
@ -60,6 +64,7 @@ BuildRequires: perl(PAR::Dist)
|
|||||||
BuildRequires: perl(Pod::Readme)
|
BuildRequires: perl(Pod::Readme)
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
BuildRequires: perl(TAP::Harness)
|
BuildRequires: perl(TAP::Harness)
|
||||||
BuildRequires: perl(TAP::Harness::Env)
|
BuildRequires: perl(TAP::Harness::Env)
|
||||||
BuildRequires: perl(Test::Harness) >= 3.29
|
BuildRequires: perl(Test::Harness) >= 3.29
|
||||||
|
Loading…
Reference in New Issue
Block a user