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

Paul Howarth pghmcfc at fedoraproject.org
Thu Jan 24 15:06:12 UTC 2013


commit 5996998871670bf1080597d333797236f0a5b51d
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Jan 24 15:05:33 2013 +0000

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

 perl-Package-Stash-XS.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/perl-Package-Stash-XS.spec b/perl-Package-Stash-XS.spec
index 650e03a..24344b7 100644
--- a/perl-Package-Stash-XS.spec
+++ b/perl-Package-Stash-XS.spec
@@ -1,8 +1,6 @@
-# TODO: BR: perl(Package::Anon) when available
-
 Name:		perl-Package-Stash-XS
 Version:	0.26
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Faster and more correct implementation of the Package::Stash API
 Group:		Development/Libraries
 License:	GPL+ or Artistic
@@ -16,6 +14,9 @@ BuildRequires:	perl(constant)
 BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(File::Temp)
 BuildRequires:	perl(lib)
+%if %(perl -e 'print $] >= 5.014 ? 1 : 0;')
+BuildRequires:	perl(Package::Anon)
+%endif
 BuildRequires:	perl(Pod::Coverage::TrustPod)
 BuildRequires:	perl(Scalar::Util)
 BuildRequires:	perl(Test::EOL)
@@ -76,6 +77,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Package::Stash::XS.3pm*
 
 %changelog
+* Thu Jan 24 2013 Paul Howarth <paul at city-fan.org> - 0.26-2
+- BR: perl(Package::Anon) if we have Perl ≥ 5.14
+
 * Fri Jan  4 2013 Paul Howarth <paul at city-fan.org> - 0.26-1
 - Update to 0.26
   - Internal refactorings to support Package::Anon stashes


More information about the scm-commits mailing list