Control optional test with a build-condition
This commit is contained in:
parent
102b34f3bd
commit
e3e46441e8
@ -1,3 +1,6 @@
|
|||||||
|
# Run optional test
|
||||||
|
%bcond_without perl_Specio_enables_optional_test
|
||||||
|
|
||||||
Name: perl-Specio
|
Name: perl-Specio
|
||||||
Version: 0.42
|
Version: 0.42
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -44,6 +47,7 @@ BuildRequires: perl(lib)
|
|||||||
BuildRequires: perl(open)
|
BuildRequires: perl(open)
|
||||||
BuildRequires: perl(Test::Needs)
|
BuildRequires: perl(Test::Needs)
|
||||||
BuildRequires: perl(utf8)
|
BuildRequires: perl(utf8)
|
||||||
|
%if %{with perl_Specio_enables_optional_test}
|
||||||
# Optional Tests
|
# Optional Tests
|
||||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||||
@ -55,6 +59,7 @@ BuildRequires: perl(Moose) >= 2.1207
|
|||||||
BuildRequires: perl(Mouse)
|
BuildRequires: perl(Mouse)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: perl(namespace::autoclean)
|
BuildRequires: perl(namespace::autoclean)
|
||||||
|
%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(Ref::Util) >= 0.112
|
Requires: perl(Ref::Util) >= 0.112
|
||||||
|
Loading…
Reference in New Issue
Block a user