From 008e476eb1f3e015ad34f302a4cad874e4aad33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 6 Apr 2017 09:13:49 +0200 Subject: [PATCH] Introduce build-condition for running optional tests --- perl-Sys-Syslog.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-Sys-Syslog.spec b/perl-Sys-Syslog.spec index 4fc224c..ceed78f 100644 --- a/perl-Sys-Syslog.spec +++ b/perl-Sys-Syslog.spec @@ -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