Conditionalize and document a build time dependency on gcc-c++

This commit is contained in:
Petr Písař 2019-01-14 10:52:47 +01:00
parent 7b8e501a69
commit c7bc1da47b
1 changed files with 5 additions and 0 deletions

View File

@ -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