Introduce build-condition for optional tests

This commit is contained in:
Petr Písař 2017-04-28 15:12:26 +02:00
parent 05082c535b
commit 0629eb9f82

View File

@ -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)