From 5c0d64b718d169434a799e34fa2171636fdaa59c Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 24 Jan 2013 15:24:51 +0000 Subject: [PATCH] =?UTF-8?q?BR:=20perl(Package::Anon)=20if=20we=20have=20Pe?= =?UTF-8?q?rl=20=E2=89=A5=205.14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- perl-Package-Stash.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/perl-Package-Stash.spec b/perl-Package-Stash.spec index 5800bf8..3845900 100644 --- a/perl-Package-Stash.spec +++ b/perl-Package-Stash.spec @@ -1,11 +1,9 @@ # We need to patch the test suite if we have an old version of Test::More %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) -# TODO: BR: perl(Package::Anon) for test suite when available - Name: perl-Package-Stash Version: 0.34 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Routines for manipulating stashes Group: Development/Libraries License: GPL+ or Artistic @@ -31,6 +29,9 @@ BuildRequires: perl(Test::More) BuildRequires: perl(Test::Requires) # Optional tests: %if ! (0%{?rhel} >= 7) +%if %(perl -e 'print $] >= 5.014 ? 1 : 0;') +BuildRequires: perl(Package::Anon) +%endif BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Test::EOL) BuildRequires: perl(Test::LeakTrace) @@ -85,6 +86,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Package::Stash::PP.3pm* %changelog +* Thu Jan 24 2013 Paul Howarth - 0.34-2 +- BR: perl(Package::Anon) if we have Perl ≥ 5.14 + * Sun Jan 6 2013 Paul Howarth - 0.34-1 - Update to 0.34 - Support anonymous stashes on newer perl versions