[perl-DateTime-Format-DateManip] Pass test with Date-Manip-6.49

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit efa6cb22fbc424fd8eda0554e84d1f2780e58cbe
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Mar 11 14:22:21 2015 +0100

    Pass test with Date-Manip-6.49

 ...teManip-0.04-Set-system-time-zone-in-test.patch | 38 ++++++++++++++++++++++
 perl-DateTime-Format-DateManip.spec                |  8 ++++-
 2 files changed, 45 insertions(+), 1 deletion(-)
---
diff --git a/DateTime-Format-DateManip-0.04-Set-system-time-zone-in-test.patch b/DateTime-Format-DateManip-0.04-Set-system-time-zone-in-test.patch
new file mode 100644
index 0000000..3a29e8e
--- /dev/null
+++ b/DateTime-Format-DateManip-0.04-Set-system-time-zone-in-test.patch
@@ -0,0 +1,38 @@
+From 8a64bb4e3bb6c9a41e140d6e7c2c450cb0d8ec50 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@xxxxxxxxxx>
+Date: Wed, 11 Mar 2015 14:17:52 +0100
+Subject: [PATCH] Set system time zone in test
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The 01conversions.t fails since Date-Manip-6.49 because it takes time
+zone from syste. Whether it's a bug or a feature, setting TZ
+enviroment variable makes the test happy.
+
+CPAN RT#102670
+
+Signed-off-by: Petr Písař <ppisar@xxxxxxxxxx>
+---
+ t/01conversions.t | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/t/01conversions.t b/t/01conversions.t
+index f4b308c..9f51b61 100644
+--- a/t/01conversions.t
++++ b/t/01conversions.t
+@@ -2,6 +2,11 @@ use strict;
+ 
+ use Test::More;
+ 
++## Set the system time zone because of CPAN RT#102670
++BEGIN {
++    $ENV{TZ}="US/Eastern";
++}
++
+ use DateTime::Format::DateManip;
+ use DateTime;
+ use Date::Manip;
+-- 
+2.1.0
+
diff --git a/perl-DateTime-Format-DateManip.spec b/perl-DateTime-Format-DateManip.spec
index 35f740c..b3d939c 100644
--- a/perl-DateTime-Format-DateManip.spec
+++ b/perl-DateTime-Format-DateManip.spec
@@ -1,6 +1,6 @@
 Name:           perl-DateTime-Format-DateManip
 Version:        0.04
-Release:        17%{?dist}
+Release:        18%{?dist}
 Summary:        Convert Date::Manip to DateTime and vice versa
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -8,6 +8,8 @@ URL:            http://search.cpan.org/dist/DateTime-Format-DateManip/
 Source0:        http://www.cpan.org/authors/id/B/BB/BBENNETT/dt-fmt-datemanip/DateTime-Format-DateManip-%{version}.tar.gz
 # Use full time zone name instead of an ambiguous abbreviation, CPAN RT#55771
 Patch0:         DateTime-Format-DateManip-01conversion.patch
+# Pass test with Date-Manip-6.49, bug #1199969, CPAN RT#102670
+Patch1:         DateTime-Format-DateManip-0.04-Set-system-time-zone-in-test.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -28,6 +30,7 @@ objects. Recurrences are note yet supported.
 %prep
 %setup -q -n DateTime-Format-DateManip-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__perl} Build.PL installdirs=vendor
@@ -54,6 +57,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Wed Mar 11 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 0.04-18
+- Pass test with Date-Manip-6.49 (bug #1199969)
+
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.04-17
 - Perl 5.20 rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux