- patch to build with old Test::More for sle11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-TimeZone?expand=0&rev=40
This commit is contained in:
Ruediger Oertel 2012-02-29 16:06:11 +00:00 committed by Git OBS Bridge
parent c335533d49
commit 30f156fed7
3 changed files with 66 additions and 5 deletions

51
old_test_more.patch Normal file
View File

@ -0,0 +1,51 @@
--- t/05offset.t
+++ t/05offset.t
@@ -3,7 +3,7 @@
use DateTime::TimeZone;
-use Test::More;
+use Test::More qw(no_plan);
is(
DateTime::TimeZone::offset_as_string(0), "+0000",
@@ -122,4 +122,4 @@
);
}
-done_testing();
+#done_testing();
--- t/15catalog.t
+++ t/15catalog.t
@@ -2,7 +2,7 @@
use warnings;
use File::Spec;
-use Test::More;
+use Test::More qw(no_plan);
use DateTime::TimeZone;
@@ -117,4 +117,4 @@
);
}
-done_testing();
+#done_testing();
--- t/20local-subclass.t
+++ t/20local-subclass.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
-use Test::More;
+use Test::More qw(no_plan);
{
@@ -24,4 +24,4 @@
isa_ok( $tz, 'DateTime::TimeZone' );
is( $tz->name(), '+2520', 'os42 returns expected time zone' );
-done_testing();
+#done_testing();

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 29 17:05:24 CET 2012 - ro@suse.de
- patch to build with old Test::More for sle11
-------------------------------------------------------------------
Wed Nov 16 16:24:46 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-TimeZone
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,16 +16,18 @@
#
Name: perl-DateTime-TimeZone
Version: 1.42
Release: 1
License: GPL-1.0+ or Artistic-1.0
Release: 0
%define cpan_name DateTime-TimeZone
Summary: Time zone object base class and factory
Url: http://search.cpan.org/dist/DateTime-TimeZone/
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-TimeZone/
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
%if 0%{?suse_version} < 1120
Patch0: old_test_more.patch
%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@ -53,6 +55,9 @@ not need to directly use 'DateTime::TimeZone' methods.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1120
%patch0
%endif
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor