Enable Test::MockRandom test

This is packaged now.

It also adds a build condition to control running optional test.
This commit is contained in:
Petr Písař 2017-12-08 09:46:23 +01:00
parent e5818e7960
commit f67bca3eb3

View File

@ -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 <ppisar@redhat.com> - 0.104-4
- Enable Test::MockRandom test
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.104-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild