[perl-Hardware-Vhdl-Lexer] Specify all dependencies

Petr Pisar ppisar at fedoraproject.org
Thu Jun 14 08:06:01 UTC 2012


commit 1bb70596173db65b1a19e97fd3779f6326bb6fcb
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jun 14 10:05:43 2012 +0200

    Specify all dependencies

 perl-Hardware-Vhdl-Lexer.spec |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/perl-Hardware-Vhdl-Lexer.spec b/perl-Hardware-Vhdl-Lexer.spec
index 1a6611f..cb30aee 100644
--- a/perl-Hardware-Vhdl-Lexer.spec
+++ b/perl-Hardware-Vhdl-Lexer.spec
@@ -11,16 +11,23 @@ Source0:        http://www.cpan.org/authors/id/M/MY/MYKL/Hardware-Vhdl-Lexer-%{v
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
-BuildRequires:  perl(Class::Std)
 BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Class::Std)
 BuildRequires:  perl(Readonly) >= 1.03
+# Tests
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Pod::Coverage)
-BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Scalar::Util)
+# Optional tests
+BuildRequires:  perl(Test::Pod) >= 1.14
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
 
 Requires:       perl(Readonly) >= 1.03
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+# Filter under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Readonly\\)$
 
 %description
 Hardware::Vhdl::Lexer splits VHDL code into lexical tokens. To use it, you
@@ -84,6 +91,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Jun 14 2012 Petr Pisar <ppisar at redhat.com> - 1.00-12
 - Own directories to drop wrong dependency
+- Specify all dependencies
 
 * Wed Jun 13 2012 Petr Pisar <ppisar at redhat.com> - 1.00-11
 - Perl 5.16 rebuild


More information about the scm-commits mailing list