diff --git a/old_test_more.patch b/old_test_more.patch new file mode 100644 index 0000000..5fcfedd --- /dev/null +++ b/old_test_more.patch @@ -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(); diff --git a/perl-DateTime-TimeZone.changes b/perl-DateTime-TimeZone.changes index 48c5e60..3ae1224 100644 --- a/perl-DateTime-TimeZone.changes +++ b/perl-DateTime-TimeZone.changes @@ -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 diff --git a/perl-DateTime-TimeZone.spec b/perl-DateTime-TimeZone.spec index 06c12cf..669a9fe 100644 --- a/perl-DateTime-TimeZone.spec +++ b/perl-DateTime-TimeZone.spec @@ -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