[perl-Package-Stash] BR: perl(Package::Anon) if we have Perl ≥ 5.14

Paul Howarth pghmcfc at fedoraproject.org
Thu Jan 24 15:25:44 UTC 2013


commit 5c0d64b718d169434a799e34fa2171636fdaa59c
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Jan 24 15:24:51 2013 +0000

    BR: perl(Package::Anon) if we have Perl ≥ 5.14

 perl-Package-Stash.spec |   10 +++++++---
 1 files 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 <paul at city-fan.org> - 0.34-2
+- BR: perl(Package::Anon) if we have Perl ≥ 5.14
+
 * Sun Jan  6 2013 Paul Howarth <paul at city-fan.org> - 0.34-1
 - Update to 0.34
   - Support anonymous stashes on newer perl versions


More information about the scm-commits mailing list