Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-13 09:14:24 +01:00
parent 928fed354d
commit 69c084ffcc

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_autodie_enables_optional_test
Name: perl-autodie
Version: 2.29
Release: 395%{?dist}
@ -48,7 +51,7 @@ BuildRequires: perl(Test::More)
# Test::Pod 1.41 not used
# Test::Pod::Coverage 1.08 not used
# Optional tests:
%if !%{defined perl_bootstrap}
%if %{with perl_autodie_enables_optinonal_test} && !%{defined perl_bootstrap}
BuildRequires: perl(BSD::Resource)
BuildRequires: perl(Import::Into) >= 1.002004
%endif