From 2ad9f7a7d9268e9afde387c06599dbedaa0956d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 5 Apr 2017 15:32:15 +0200
Subject: Introduce build-condition for optional tests

---
 perl-Test-Harness.spec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/perl-Test-Harness.spec b/perl-Test-Harness.spec
index 3c67dd1..4fea459 100644
--- a/perl-Test-Harness.spec
+++ b/perl-Test-Harness.spec
@@ -1,3 +1,6 @@
+# Run optional tests
+%bcond_without perl_Test_Harness_enables_optional_test
+
 Name:           perl-Test-Harness
 Version:        3.38
 Release:        1%{?dist}
@@ -45,11 +48,13 @@ BuildRequires:  perl(lib)
 BuildRequires:  perl(Symbol)
 BuildRequires:  perl(Test::More)
 # Optional tests:
+%if %{with perl_Test_Harness_enables_optional_test}
 BuildRequires:  perl(File::Temp)
 %if !%{defined perl_bootstrap}
 BuildRequires:  perl(TAP::Formatter::HTML) >= 0.10
 BuildRequires:  perl(YAML)
 %endif
+%endif
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 # Filter example dependencies
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Test-Harness.git/commit/?h=master&id=2ad9f7a7d9268e9afde387c06599dbedaa0956d3
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to