Control optional test with a build condition
This commit is contained in:
parent
ac47e22968
commit
072517984a
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_DateTime_TimeZone_Tzfile_enables_optional_test
|
||||
|
||||
Name: perl-DateTime-TimeZone-Tzfile
|
||||
Version: 0.011
|
||||
Release: 2%{?dist}
|
||||
@ -24,9 +27,11 @@ BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_DateTime_TimeZone_Tzfile_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
Requires: perl(DateTime::TimeZone::SystemV) >= 0.009
|
||||
|
Loading…
Reference in New Issue
Block a user