From 19d25a27391572132bedbcd7d39c759ff76ef2cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 2 Sep 2015 14:08:17 +0200
Subject: Specify all dependencies


diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 392c11e..2d95242 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -9,22 +9,30 @@ Source0:        
http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatc
 # Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
 Patch0:         
Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
 BuildArch:      noarch
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
-# Run-time
+# Run-time:
 BuildRequires:  perl(AppConfig) >= 1.52
 BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(Log::Dispatch) >= 2
 # Time::Piece is optional. POSIX is fall-back
 BuildRequires:  perl(POSIX)
-# Tests
-BuildRequires:  perl(FileHandle)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Tests:
 BuildRequires:  perl(File::Copy)
+BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(File::Temp) >= 0.12
+BuildRequires:  perl(FileHandle)
 BuildRequires:  perl(IPC::Run3)
 BuildRequires:  perl(Test::More) >= 0.32
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(AppConfig) >= 1.52
+Requires:       perl(Carp)
 Requires:       perl(POSIX)
 
 # Remove under-specified dependencies
@@ -40,14 +48,13 @@ format).
 %patch0 -p1
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
 %{_fixperms} %{buildroot}/*
 
 %check
@@ -62,6 +69,7 @@ make test
 %changelog
 * Wed Sep 02 2015 Petr Pisar <ppi...@redhat.com> - 1.04-11
 - Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+- Specify all dependencies
 
 * Fri Aug 29 2014 Jitka Plesnikova <jples...@redhat.com> - 1.04-8
 - Perl 5.20 rebuild
-- 
cgit v0.10.2


        
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h=f22&id=19d25a27391572132bedbcd7d39c759ff76ef2cd
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to