Enable tests

This commit is contained in:
Petr Písař 2019-06-06 10:32:50 +02:00
parent cc7294346c
commit 53368befac

View File

@ -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 <ppisar@redhat.com> - 1.55-3
- Enable tests
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.55-2
- Perl 5.30 rebuild