From 793d5c8101c2edcf8cb3843a789d8d462546205c 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 5236f13..26f2896 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: 9%{?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=master&id=793d5c8101c2edcf8cb3843a789d8d462546205c _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org