From 53368befac0052bf9f881832b141f2504aacda25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 6 Jun 2019 10:32:50 +0200 Subject: [PATCH] Enable tests --- perl-Text-Template.spec | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/perl-Text-Template.spec b/perl-Text-Template.spec index 7bb5361..1abd30b 100644 --- a/perl-Text-Template.spec +++ b/perl-Text-Template.spec @@ -1,6 +1,9 @@ +# Perform optional tests +%bcond_without perl_Text_Template_enables_optional_test + Name: perl-Text-Template Version: 1.55 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Expand template text with embedded Perl License: GPL+ or Artistic URL: https://metacpan.org/release/Text-Template @@ -19,14 +22,19 @@ BuildRequires: perl(base) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) # Tests: +BuildRequires: perl(Encode) BuildRequires: perl(File::Temp) BuildRequires: perl(lib) -BuildRequires: perl(Safe) BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(utf8) BuildRequires: perl(vars) -BuildRequires: perl(Test::Warnings) +%if %{with perl_Text_Template_enables_optional_test} +# Optional tests: +BuildRequires: perl(Safe) # Not in Fedora # BuildRequires: perl(Test::More::UTF8) +BuildRequires: perl(Test::Warnings) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Carp) @@ -51,10 +59,8 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check -# undo this if/when perl-Test-More-UTF8 shows up -%if 0 +unset AUTHOR_TESTING make test -%endif %files %license LICENSE @@ -63,6 +69,9 @@ make test %{_mandir}/man3/*.3pm* %changelog +* Thu Jun 06 2019 Petr Pisar - 1.55-3 +- Enable tests + * Fri May 31 2019 Jitka Plesnikova - 1.55-2 - Perl 5.30 rebuild