From 0629eb9f8225041394e1506bcaedefd2a133139d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com Date: Fri, 28 Apr 2017 15:12:26 +0200 Subject: Introduce build-condition for optional tests
--- perl-File-DesktopEntry.spec | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/perl-File-DesktopEntry.spec b/perl-File-DesktopEntry.spec index 5d0f069..fa8f680 100644 --- a/perl-File-DesktopEntry.spec +++ b/perl-File-DesktopEntry.spec @@ -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)
perl-devel@lists.fedoraproject.org