From f95a7b83562623ae7e02f93011c0626268b89778 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Nov 01 2019 17:03:08 +0000 Subject: Do not build-require optional Test::Apocalypse Current Test::Apocalypse skips all tests. Not helpful. And modernize the spec file. --- diff --git a/perl-Test-Pod-LinkCheck.spec b/perl-Test-Pod-LinkCheck.spec index e03cf12..972daf3 100644 --- a/perl-Test-Pod-LinkCheck.spec +++ b/perl-Test-Pod-LinkCheck.spec @@ -1,20 +1,13 @@ -# Run optional test -%if ! (0%{?rhel}) -%bcond_without perl_Test_Pod_LinkCheck_enables_optional_test -%else -%bcond_with perl_Test_Pod_LinkCheck_enables_optional_test -%endif - Name: perl-Test-Pod-LinkCheck Version: 0.008 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Tests POD for invalid links License: GPL+ or Artistic URL: https://metacpan.org/release/Test-Pod-LinkCheck Source0: https://cpan.metacpan.org/authors/id/A/AP/APOCAL/Test-Pod-LinkCheck-%{version}.tar.gz BuildArch: noarch -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter # ExtUtils::MakeMaker not used BuildRequires: perl(Module::Build::Tiny) >= 0.039 BuildRequires: perl(strict) @@ -39,15 +32,8 @@ BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Tester) # Optional tests: -%if %{undefined perl_bootstrap} && %{with perl_Test_Pod_LinkCheck_enables_optional_test} -# Break build-time cycle with perl-Test-Apocalypse - -# Disable using of Test::Apocalypse, because it cannot be built with Perl 5.22 -# due to failing perl-Test-Vars -%if ! 0%(perl -e 'print $] >= 5.022') -BuildRequires: perl(Test::Apocalypse) >= 1.000 -%endif -%endif +# Test::Apocalypse skips all tests as release tests, do not use it. It is also +# in build cycle with this package. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(App::PodLinkCheck::ParseSections) Requires: perl(Capture::Tiny) @@ -74,14 +60,19 @@ perl Build.PL --installdirs=vendor %{_fixperms} $RPM_BUILD_ROOT/* %check +unset RELEASE_TESTING ./Build test %files -%doc AUTHOR_PLEDGE Changes CommitLog examples LICENSE README +%license LICENSE +%doc AUTHOR_PLEDGE Changes CommitLog examples README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Fri Nov 01 2019 Petr Pisar - 0.008-20 +- Do not build-require optional Test::Apocalypse + * Fri Jul 26 2019 Fedora Release Engineering - 0.008-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild