Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 12:57:16 +01:00
parent 7c24f2548f
commit a87e19f456

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Sub_Install_enables_optional_test
Name: perl-Sub-Install
Version: 0.928
Release: 13%{?dist}
@ -20,7 +23,8 @@ BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util)
# ================= Test Suite ==============================
BuildRequires: perl(Test::More) >= 0.88
%if !%{defined perl_bootstrap}
%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap}
# ================= Optional Tests ==========================
# Test::Output -> Sub::Exporter -> Sub::Install
BuildRequires: perl(Test::Output)
%endif