From 88b121e9eae24e197b740eae22f1739eac8c54ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 27 Apr 2017 16:40:05 +0200
Subject: Introduce build-condition for optional tests

---
 perl-Module-Runtime.spec | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/perl-Module-Runtime.spec b/perl-Module-Runtime.spec
index ed29a92..db23955 100644
--- a/perl-Module-Runtime.spec
+++ b/perl-Module-Runtime.spec
@@ -1,4 +1,8 @@
 # This file is licensed under the terms of GNU GPLv2+.
+
+# Run optional tests
+%{bcond_without perl_Module_Runtime_enables_optional_test}
+
 Name:           perl-Module-Runtime
 Version:        0.014
 Release:        8%{?dist}
@@ -16,9 +20,11 @@ BuildRequires:  perl(warnings)
 # Tests:
 BuildRequires:  perl(Math::BigInt)
 BuildRequires:  perl(Test::More)
+%if %{with perl_Module_Runtime_enables_optional_test}
 # Optional tests:
 BuildRequires:  perl(Test::Pod) >= 1.00
 BuildRequires:  perl(Test::Pod::Coverage)
+%endif
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Module-Runtime.git/commit/?h=f25&id=88b121e9eae24e197b740eae22f1739eac8c54ba
_______________________________________________
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