From 0198790ac6b5ff587dd4d4e78675eee98471a1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 22 Feb 2021 15:13:40 +0100 Subject: [PATCH] Disable optional tests on RHEL > 8 --- perl-Crypt-DES.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/perl-Crypt-DES.spec b/perl-Crypt-DES.spec index 63343ef..1b047cb 100644 --- a/perl-Crypt-DES.spec +++ b/perl-Crypt-DES.spec @@ -1,6 +1,13 @@ +# Perform optional tests +%if 0%{?rhel} > 8 +%bcond_with perl_Crypt_DES_enables_optional_test +%else +%bcond_without perl_Crypt_DES_enables_optional_test +%endif + Name: perl-Crypt-DES Version: 2.07 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Perl DES encryption module License: BSD URL: https://metacpan.org/release/Crypt-DES @@ -20,8 +27,10 @@ BuildRequires: perl(vars) # Tests: BuildRequires: perl(Benchmark) BuildRequires: perl(Data::Dumper) +%if %{with perl_Crypt_DES_enables_optional_test} # Optional tests: BuildRequires: perl(Crypt::CBC) > 1.22 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} @@ -53,6 +62,9 @@ make test %{_mandir}/man3/Crypt::DES.3pm* %changelog +* Mon Feb 22 2021 Petr Pisar - 2.07-24 +- Disable optional tests on RHEL > 8 + * Wed Jan 27 2021 Fedora Release Engineering - 2.07-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild