Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-08 15:06:33 +01:00
parent ac47e22968
commit 072517984a

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_DateTime_TimeZone_Tzfile_enables_optional_test
Name: perl-DateTime-TimeZone-Tzfile Name: perl-DateTime-TimeZone-Tzfile
Version: 0.011 Version: 0.011
Release: 2%{?dist} Release: 2%{?dist}
@ -24,9 +27,11 @@ BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Test Suite # Test Suite
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
%if %{with perl_DateTime_TimeZone_Tzfile_enables_optional_test}
# Optional Tests # Optional Tests
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage)
%endif
# Dependencies # Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(DateTime::TimeZone::SystemV) >= 0.009 Requires: perl(DateTime::TimeZone::SystemV) >= 0.009