diff --git a/.gitignore b/.gitignore index 8da9ddc..3afc4a8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ DateTime-Format-Flexible-0.15.tar.gz /DateTime-Format-Flexible-0.27.tar.gz /DateTime-Format-Flexible-0.28.tar.gz /DateTime-Format-Flexible-0.29.tar.gz +/DateTime-Format-Flexible-0.30.tar.gz diff --git a/perl-DateTime-Format-Flexible.spec b/perl-DateTime-Format-Flexible.spec index 3e9bf4b..dbfb349 100644 --- a/perl-DateTime-Format-Flexible.spec +++ b/perl-DateTime-Format-Flexible.spec @@ -1,5 +1,8 @@ +# Execute extra test +%bcond_with perl_DateTime_Format_Flexible_enables_extra_test + Name: perl-DateTime-Format-Flexible -Version: 0.29 +Version: 0.30 Release: 1%{?dist} License: GPL+ or Artistic Summary: Flexibly parse strings and turn them into DateTime objects @@ -24,11 +27,15 @@ BuildRequires: perl(warnings) # Tests: BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(lib) +BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::MockTime) BuildRequires: perl(Test::More) -# Optional tests: +BuildRequires: perl(Test::NoWarnings) +%if %{with perl_DateTime_Format_Flexible_enables_extra_test} +# Extra tests: BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description @@ -51,7 +58,12 @@ make pure_install DESTDIR=%{buildroot} %{_fixperms} %{buildroot}/* %check -TEST_POD=1 make test +%if %{with perl_DateTime_Format_Flexible_enables_extra_test} +export TEST_POD=1 +%else +export TEST_POD=0 +%endif +make test %files %license LICENSE @@ -60,6 +72,10 @@ TEST_POD=1 make test %{_mandir}/man3/*.3* %changelog +* Mon Mar 12 2018 Petr Pisar - 0.30-1 +- 0.30 bump +- Disable extra tests by default + * Fri Feb 23 2018 Petr Pisar - 0.29-1 - 0.29 bump diff --git a/sources b/sources index 8906ba7..99495b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (DateTime-Format-Flexible-0.29.tar.gz) = 07bba94a763b8b10249bf6d57b6d00ddd51107e92ec0c2a64d9f725e61cfd93af2d5239643b5a3dc7a516f69d9f58a0f211ff83d9f5cbc413d0629e115f03c5f +SHA512 (DateTime-Format-Flexible-0.30.tar.gz) = 647f071c43e611fcdc462df2de429d11460b95c0ea4d59705817c53c57d500b9146125cf026e659f9128ce35142078bb58d97432e4488ee90f635e514ee40435