From fadebe413c375fa9afac763b796958367a18e601 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Thu, 21 Jul 2016 20:05:21 +0100
Subject: Fix FTBFS when perl is not in the SRPM build root

Also, specify all build dependencies.
---
 perl-Package-Anon.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/perl-Package-Anon.spec b/perl-Package-Anon.spec
index ad674f5..421b857 100644
--- a/perl-Package-Anon.spec
+++ b/perl-Package-Anon.spec
@@ -1,6 +1,6 @@
 Name:          perl-Package-Anon
 Version:       0.05
-Release:       13%{?dist}
+Release:       14%{?dist}
 Summary:       Anonymous packages
 License:       GPL+ or Artistic
 URL:           http://search.cpan.org/dist/Package-Anon/
@@ -12,14 +12,18 @@ BuildRequires:      gcc
 BuildRequires: make
 BuildRequires: perl
 BuildRequires: perl-devel
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl-generators
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
 # Module
 BuildRequires: perl >= 4:5.14
-BuildRequires: perl-generators
 BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
 BuildRequires: perl(XSLoader)
 # Test suite
+BuildRequires: perl(FindBin)
 BuildRequires: perl(lib)
+BuildRequires: perl(overload)
 BuildRequires: perl(Sub::Exporter)
 BuildRequires: perl(Test::More)
 # Release tests
@@ -31,7 +35,7 @@ BuildRequires:        perl(Test::Pod) >= 1.41
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 # Avoid private object provides
-%{perl_default_filter}
+%{?perl_default_filter}
 
 %description
 This module allows for anonymous packages that are independent of the main
@@ -61,6 +65,10 @@ make test RELEASE_TESTING=1
 %{_mandir}/man3/Package::Anon.3*
 
 %changelog
+* Thu Jul 21 2016 Paul Howarth <p...@city-fan.org> - 0.05-14
+- Fix FTBFS when perl is not in the SRPM build root
+- Specify all build dependencies
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.05-13
 - Perl 5.24 rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Package-Anon.git/commit/?h=master&id=fadebe413c375fa9afac763b796958367a18e601
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to