From 431285aef1c2ea0496ba847a64538892b46db820 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 14:54:15 +0200 Subject: Introduce build-condition for optional tests
--- perl-File-MimeInfo.spec | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/perl-File-MimeInfo.spec b/perl-File-MimeInfo.spec index 3be951a..04fa05e 100644 --- a/perl-File-MimeInfo.spec +++ b/perl-File-MimeInfo.spec @@ -1,3 +1,6 @@ +# Run optional tests +%{bcond_without perl_File_MimeInfo_enables_optional_test} + Name: perl-File-MimeInfo Version: 0.28 Release: 3%{?dist} @@ -24,6 +27,7 @@ BuildRequires: perl(File::DesktopEntry) >= 0.04 BuildRequires: perl(File::Spec) # Tests: BuildRequires: perl(Test::More) +%if %{with perl_File_MimeInfo_enables_optional_test} # Optional tests: %if !%{defined perl_bootstrap} # Break build cycle: perl-Path-Tiny → perl-Unicode-UTF8 → @@ -34,6 +38,7 @@ BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.00 # needed for some tests otherwise there are warnings BuildRequires: shared-mime-info +%endif # there is also a mimeinfo.cache file created by desktop-file-utils # needed. It won't be there if building in a chroot, even if # desktop-file-utils is installed if desktop-file-utils was never run.
perl-devel@lists.fedoraproject.org