diff --git a/perl.spec b/perl.spec index 76d5927..fc3cb77 100644 --- a/perl.spec +++ b/perl.spec @@ -21,6 +21,8 @@ %global perl5_testdir %{_libexecdir}/perl5-tests # Optional features +# Run C++ tests +%bcond_without perl_enables_cplusplus_test # We can bootstrap without gdbm %bcond_without gdbm # Support for groff, bug #135101 @@ -256,7 +258,10 @@ BuildRequires: zlib-devel # For tests %if %{with test} +%if %{with perl_enables_cplusplus_test} +# An optional ExtUtils-CBuilder's test BuildRequires: gcc-c++ +%endif BuildRequires: procps %if %{with perl_enables_syslog_test} BuildRequires: rsyslog