From 11c985397704d868f67339559f1bf05623800a20 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 6 Nov 2019 12:17:21 +0000 Subject: [PATCH] Avoid need for bootstrapping in EPEL --- .rpmlint => perl-Devel-Declare.rpmlintrc | 0 perl-Devel-Declare.spec | 20 +++++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) rename .rpmlint => perl-Devel-Declare.rpmlintrc (100%) diff --git a/.rpmlint b/perl-Devel-Declare.rpmlintrc similarity index 100% rename from .rpmlint rename to perl-Devel-Declare.rpmlintrc diff --git a/perl-Devel-Declare.spec b/perl-Devel-Declare.spec index 827f0a6..c4159e2 100644 --- a/perl-Devel-Declare.spec +++ b/perl-Devel-Declare.spec @@ -1,18 +1,25 @@ +# Run extra test +%if ! (0%{?rhel}) +%bcond_without perl_Devel_Declare_enables_extra_test +%else +%bcond_with perl_Devel_Declare_enables_extra_test +%endif + Name: perl-Devel-Declare Version: 0.006019 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Adding keywords to perl, in perl License: GPL+ or Artistic URL: https://metacpan.org/release/Devel-Declare -Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Devel-Declare-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-Declare-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime @@ -35,7 +42,7 @@ BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Requires) # Optional Tests BuildRequires: perl(B::Compiling) -%if !%{defined perl_bootstrap} +%if !%{defined perl_bootstrap} && %{with perl_Devel_Declare_enables_extra_test} # Break build-cycle: perl-Devel-Declare → perl-Devel-CallParser # → perl-Devel-Declare BuildRequires: perl(Devel::CallParser) @@ -46,6 +53,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # necessary minimum versions not automatically detected Requires: perl(B::Hooks::EndOfScope) >= 0.05 +# Avoid provides from perl shared objects %{?perl_default_filter} %description @@ -56,7 +64,6 @@ This module is now deprecated: keyword handling has been included in the perl core since perl 5.14, and better alternatives for Devel::Declare functionality include Devel::CallParser, Function::Parameters, and Keyword::Simple. - %prep %setup -q -n Devel-Declare-%{version} @@ -80,6 +87,9 @@ make test %{_mandir}/man3/Devel::Declare.3* %changelog +* Wed Nov 6 2019 Paul Howarth - 0.006019-14 +- Avoid need for bootstrapping in EPEL + * Fri Jul 26 2019 Fedora Release Engineering - 0.006019-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild