diff --git a/perl-YAML.spec b/perl-YAML.spec index 23bbd33..438ef65 100644 --- a/perl-YAML.spec +++ b/perl-YAML.spec @@ -1,3 +1,6 @@ +# Run test +%bcond_without perl_YAML_enables_test + Name: perl-YAML Version: 1.24 Release: 1%{?dist} @@ -24,7 +27,7 @@ BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite # Avoid circular build deps Test::YAML → Test::Base → YAML when bootstrapping -%if !%{defined perl_bootstrap} +%if %{with perl_YAML_enables_test} && !%{defined perl_bootstrap} BuildRequires: perl(Data::Dumper) BuildRequires: perl(File::Find) BuildRequires: perl(IO::File) @@ -65,7 +68,7 @@ make install DESTDIR=%{buildroot} %check # Avoid circular build deps Test::YAML → Test::Base → YAML when bootstrapping -%if !%{defined perl_bootstrap} +%if %{with perl_YAML_enables_test} && !%{defined perl_bootstrap} make test %endif