Introduce build-condition for optional tests
This commit is contained in:
parent
05082c535b
commit
0629eb9f82
@ -1,3 +1,6 @@
|
||||
# Run optional tests
|
||||
%{bcond_without perl_File_DesktopEntry_enables_optional_test}
|
||||
|
||||
Name: perl-File-DesktopEntry
|
||||
Version: 0.22
|
||||
Release: 4%{?dist}
|
||||
@ -25,10 +28,12 @@ BuildRequires: perl(vars)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(utf8)
|
||||
%if %{with perl_File_DesktopEntry_enables_optional_test}
|
||||
# Optional tests
|
||||
BuildRequires: perl(Test::CPAN::Changes)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
||||
%endif
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Cwd)
|
||||
|
Loading…
Reference in New Issue
Block a user