Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-07 12:53:49 +01:00
parent 228e9c5cf8
commit dbac248b85

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Test_Warnings_enables_optional_test
Name: perl-Test-Warnings
Version: 0.026
Release: 6%{?dist}
@ -28,6 +31,7 @@ BuildRequires: perl(if)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.94
BuildRequires: perl(Test::Tester) >= 0.108
%if %{with perl_Test_Warnings_enables_optional_test}
# Optional Tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
%if 0%{?fedora} || 0%{?rhel} > 7
@ -36,6 +40,7 @@ BuildRequires: perl(CPAN::Meta::Check) >= 0.011
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(PadWalker)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)