Control optional test with a build condition
This commit is contained in:
parent
70232ff9d5
commit
a08facd80a
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Unicode_LineBreak_enables_optional_test
|
||||
|
||||
Name: perl-Unicode-LineBreak
|
||||
Version: 2017.004
|
||||
Release: 5%{?dist}
|
||||
@ -33,8 +36,10 @@ BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Tests
|
||||
BuildRequires: perl(Test::More) >= 0.45
|
||||
%if %{with perl_Unicode_LineBreak_enables_optional_test}
|
||||
# Optional tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(Encode) >= 1.98
|
||||
Requires: perl(MIME::Charset) >= 1.006.2
|
||||
|
Loading…
Reference in New Issue
Block a user