From 22d19ab71bd84cf35d763b33aea8860e45caefeb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 20 Jul 2017 08:18:37 +0200
Subject: Specify all dependencies

---
 perl-DateTime-TimeZone.spec | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/perl-DateTime-TimeZone.spec b/perl-DateTime-TimeZone.spec
index 3fc5df4..1e18c5e 100644
--- a/perl-DateTime-TimeZone.spec
+++ b/perl-DateTime-TimeZone.spec
@@ -1,6 +1,6 @@
 Name:           perl-DateTime-TimeZone
 Version:        2.13
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Time zone object base class and factory
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -21,14 +21,15 @@ BuildRequires:  perl(warnings)
 BuildRequires:  perl(Class::Singleton) >= 1.03
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Cwd) >= 3
-# Unused BuildRequires:  perl(DateTime)
-# Unused BuildRequires:  perl(DateTime::Duration)
+%if !%{defined perl_bootstrap}
+BuildRequires:  perl(DateTime::Duration)
+%endif
 # Unused BuildRequires:  perl(DateTime::TimeZone::Tzfile)
 BuildRequires:  perl(File::Basename)
-# Unused BuildRequires:  perl(File::Compare)
-# Unused BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Compare)
+BuildRequires:  perl(File::Find)
 BuildRequires:  perl(File::Spec)
-# Unused BuildRequires:  perl(List::Util) >= 1.33
+BuildRequires:  perl(List::Util) >= 1.33
 BuildRequires:  perl(Module::Runtime)
 BuildRequires:  perl(namespace::autoclean)
 BuildRequires:  perl(Params::ValidationCompiler) >= 0.13
@@ -52,7 +53,7 @@ BuildRequires:  perl(Test::More) >= 0.96
 BuildRequires:  perl(Test::Requires)
 # Optional tests
 %if !%{defined perl_bootstrap}
-BuildRequires:  perl(DateTime)
+BuildRequires:  perl(DateTime) >= 0.1501
 %endif
 BuildRequires:  perl(Test::Output)
 BuildRequires:  perl(Test::Taint)
@@ -64,12 +65,12 @@ Requires:       perl(File::Find)
 # upgrade, bug #1135981
 Requires:       perl(DateTime::TimeZone::Tzfile)
 
+# Remove under-specified dependencies
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(Class::Singleton\\)$
 
-%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\((Params::Validate|Class::Singleton)\\)$
-
-# avoid circular dependencies - DateTime strictly requires DateTime::TimeZone
+# Avoid circular dependencies - perl-DateTime strictly requires 
DateTime::TimeZone
 %if 0%{?perl_bootstrap}
-%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(DateTime(::Duration)?\\)
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(DateTime::Duration\\)
 %endif
 
 %description
@@ -99,6 +100,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jul 20 2017 Petr Pisar <ppi...@redhat.com> - 2.13-4
+- Specify all dependencies
+
 * Wed Jun 07 2017 Jitka Plesnikova <jples...@redhat.com> - 2.13-3
 - Perl 5.26 re-rebuild of bootstrapped packages
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-DateTime-TimeZone.git/commit/?h=master&id=22d19ab71bd84cf35d763b33aea8860e45caefeb
_______________________________________________
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