From ebd4bdcc40f538eb144f9fc237cb71f023381f5a Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Fri, 11 Dec 2020 09:37:52 +0100 Subject: [PATCH] Disable optional test on RHEL --- perl-Devel-CheckLib.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/perl-Devel-CheckLib.spec b/perl-Devel-CheckLib.spec index 9515593..a3dc02a 100644 --- a/perl-Devel-CheckLib.spec +++ b/perl-Devel-CheckLib.spec @@ -1,6 +1,13 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_Devel_CheckLib_enables_optional_test +%else +%bcond_with perl_Devel_CheckLib_enables_optional_test +%endif + Name: perl-Devel-CheckLib Version: 1.14 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Check that a library is available License: GPL+ or Artistic @@ -26,7 +33,9 @@ BuildRequires: perl(Capture::Tiny) BuildRequires: perl(lib) BuildRequires: perl(Test::More) >= 0.88 # Optional tests +%if %{with perl_Devel_CheckLib_enables_optional_test} BuildRequires: perl(Mock::Config) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) @@ -57,6 +66,9 @@ make test %changelog +* Thu Dec 10 2020 Jitka Plesnikova - 1.14-5 +- Disable optional test on RHEL + * Tue Jul 28 2020 Fedora Release Engineering - 1.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild