Control optional test with a build condition

epel9
Petr Písař 7 years ago
parent 609767c53b
commit a43f0a61b8

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Test_MockModule_enables_optional_test
Name: perl-Test-MockModule Name: perl-Test-MockModule
Version: 0.13 Version: 0.13
Release: 2%{?dist} Release: 2%{?dist}
@ -21,9 +24,11 @@ BuildRequires: perl(vars)
# Tests: # Tests:
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
%if %{with perl_Test_MockModule_enables_optional_test}
# Optional tests: # Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.00
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description

Loading…
Cancel
Save