Introduce build-condition for running optional tests

This commit is contained in:
Petr Písař 2017-04-06 09:13:49 +02:00
parent 0e26223291
commit 008e476eb1

View File

@ -1,3 +1,5 @@
# Run optional tests
%bcond_without perl_Sys_Syslog_enables_optional_test
Name: perl-Sys-Syslog
Version: 0.35
Release: 2%{?dist}
@ -44,7 +46,7 @@ BuildRequires: perl(FileHandle)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More)
# Optional tests:
%if !%{defined perl_bootstrap}
%if !%{defined perl_bootstrap} && %{with perl_Sys_Syslog_enables_optional_test}
%if !0%{?rhel}
BuildRequires: perl(Test::Distribution)
%endif