Introduce build-condition for optional tests
This commit is contained in:
parent
7989109720
commit
5c0a2e76e6
@ -1,3 +1,6 @@
|
||||
# Run optional tests
|
||||
%{bcond_without perl_strictures_enables_optional_test}
|
||||
|
||||
Name: perl-strictures
|
||||
Version: 2.000003
|
||||
Release: 3%{?dist}
|
||||
@ -29,10 +32,12 @@ BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_strictures_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(indirect)
|
||||
BuildRequires: perl(multidimensional)
|
||||
BuildRequires: perl(bareword::filehandles)
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
Loading…
Reference in New Issue
Block a user