From f67bca3eb35db970c39c31013718f0c821558fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 8 Dec 2017 09:46:23 +0100 Subject: [PATCH] Enable Test::MockRandom test This is packaged now. It also adds a build condition to control running optional test. --- perl-Path-Tiny.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/perl-Path-Tiny.spec b/perl-Path-Tiny.spec index 38ee5ac..e905203 100644 --- a/perl-Path-Tiny.spec +++ b/perl-Path-Tiny.spec @@ -1,8 +1,9 @@ -# TODO: BR: optional test dependency perl(Test::MockRandom) when available +# Run optional test +%bcond_without perl_Path_Tiny_enables_optional_test Name: perl-Path-Tiny Version: 0.104 -Release: 3%{?dist} +Release: 4%{?dist} Summary: File path utility License: ASL 2.0 URL: http://search.cpan.org/dist/Path-Tiny/ @@ -38,16 +39,20 @@ BuildRequires: perl(threads) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(blib) -BuildRequires: perl(CPAN::Meta) >= 2.120900 -BuildRequires: perl(CPAN::Meta::Prereqs) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Spec::Unix) BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(lib) BuildRequires: perl(open) -BuildRequires: perl(Test::FailWarnings) BuildRequires: perl(Test::More) >= 0.96 +%if %{with perl_Path_Tiny_enables_optional_test} +# Optional Tests +BuildRequires: perl(CPAN::Meta) >= 2.120900 +BuildRequires: perl(CPAN::Meta::Prereqs) +BuildRequires: perl(Test::FailWarnings) +BuildRequires: perl(Test::MockRandom) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Cwd) @@ -106,6 +111,9 @@ make test %{_mandir}/man3/Path::Tiny.3* %changelog +* Fri Dec 08 2017 Petr Pisar - 0.104-4 +- Enable Test::MockRandom test + * Thu Jul 27 2017 Fedora Release Engineering - 0.104-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild