From 05ce7536a5c82442848dba7fadc701fabaeb92b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Mon, 11 Jun 2012 16:03:09 +0200
Subject: Perl dependencies must be specified per module

---
 perl-Crypt-Cracklib.spec | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/perl-Crypt-Cracklib.spec b/perl-Crypt-Cracklib.spec
index 4595862..de137ef 100644
--- a/perl-Crypt-Cracklib.spec
+++ b/perl-Crypt-Cracklib.spec
@@ -27,16 +27,26 @@ URL:            http://search.cpan.org/dist/Crypt-Cracklib/
 Source0:        
http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-Cracklib-1.7.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRequires:  perl(inc::Module::Install)
+# Run-time:
+BuildRequires:  perl(DynaLoader)
+BuildRequires:  perl(Exporter)
+# Tests:
+BuildRequires:  perl(Test::More)
+# Optional tests:
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage)
+
 %if 0%{?rhel} <= 5
-BuildRequires:  perl(ExtUtils::MakeMaker), cracklib, perl-Test-Pod, 
perl-Test-Pod-Coverage, perl-Pod-Coverage
+BuildRequires:  cracklib
 %endif
 
 %if 0%{?rhel} >= 6
-BuildRequires:  perl(ExtUtils::MakeMaker), cracklib-devel, perl-Test-Pod, 
perl-Test-Pod-Coverage
+BuildRequires:  cracklib-devel
 %endif
 
 %if 0%{?fedora} >= 12
-BuildRequires:  perl(ExtUtils::MakeMaker), cracklib-devel, perl-Test-Pod, 
perl-Test-Pod-Coverage, perl-Test-Simple
+BuildRequires:  cracklib-devel
 %endif
 
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
@@ -48,6 +58,7 @@ This module providers interaction with the system cracklib 
libraries.
 %prep
 %setup -q -n Crypt-Cracklib-%{version}
 %patch0 -p0 -b .automake
+rm -rf inc
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Crypt-Cracklib.git/commit/?h=epel7&id=05ce7536a5c82442848dba7fadc701fabaeb92b6
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to