[perl-Params-Util] Specify all dependencies

Petr Pisar ppisar at fedoraproject.org
Thu Jan 15 14:48:13 UTC 2015


commit 820f44e606e8669df91ff0cfcfe751ee70bbdf0d
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jan 15 15:39:22 2015 +0100

    Specify all dependencies
    
    It needs either ExtUtils::CBuilder or File::Spec. I kept the original
    way with File::Spec.

 perl-Params-Util.spec |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/perl-Params-Util.spec b/perl-Params-Util.spec
index 36dd7f1..64b4034 100644
--- a/perl-Params-Util.spec
+++ b/perl-Params-Util.spec
@@ -1,6 +1,6 @@
 Name:		perl-Params-Util
 Version:	1.07
-Release:	10%{?dist}
+Release:	11%{?dist}
 Summary:	Simple standalone parameter-checking functions
 License:	GPL+ or Artistic
 Group:		Development/Libraries
@@ -8,17 +8,29 @@ URL:		http://search.cpan.org/dist/Params-Util/
 Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-%{version}.tar.gz
 
 Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:	perl(Scalar::Util) >= 1.18
 
-BuildRequires:	perl(Exporter)
+BuildRequires:	perl
+BuildRequires:	perl(Config)
 BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.52
 BuildRequires:	perl(File::Spec) >= 0.82
-BuildRequires:	perl(File::Spec::Functions)
 BuildRequires:	perl(File::Temp)
+BuildRequires:	perl(strict)
+# Run-time:
+BuildRequires:	perl(DynaLoader)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(overload)
 BuildRequires:	perl(Scalar::Util) >= 1.18
+BuildRequires:	perl(vars)
+# Tests:
 BuildRequires:	perl(Test::More) >= 0.47
+BuildRequires:	perl(File::Spec::Functions)
 
 %{?perl_default_filter}
 
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scalar::Util\\)$
+
 %description
 Params::Util provides a basic set of importable functions that 
 makes checking parameters a hell of a lot easier.
@@ -49,6 +61,9 @@ make test AUTOMATED_TESTING=1
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jan 15 2015 Petr Pisar <ppisar at redhat.com> - 1.07-11
+- Specify all dependencies
+
 * Tue Aug 26 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.07-10
 - Perl 5.20 rebuild
 


More information about the scm-commits mailing list