Introduce build-condition for optional tests

This commit is contained in:
Petr Písař 2017-04-27 16:40:05 +02:00
parent 420090387c
commit 793d5c8101

View File

@ -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