From c7bc1da47bcc82f4ce1e6ed4709bd587c8c440f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 14 Jan 2019 10:52:47 +0100 Subject: [PATCH] Conditionalize and document a build time dependency on gcc-c++ --- perl.spec | 5 +++++ 1 file changed, 5 insertions(+) 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