From 3c6e3b3dce65762f5ffc704494ece763d88a5099bb5d6f628ae34556f95901bd Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Tue, 1 Mar 2011 06:32:45 +0000 Subject: [PATCH] disable tests on < 11.3, perl too old OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-TimeZone?expand=0&rev=20 --- perl-DateTime-TimeZone.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-DateTime-TimeZone.spec b/perl-DateTime-TimeZone.spec index e68b9bb..afd4c16 100644 --- a/perl-DateTime-TimeZone.spec +++ b/perl-DateTime-TimeZone.spec @@ -23,7 +23,7 @@ Name: perl-DateTime-TimeZone %define cpan_name DateTime-TimeZone Summary: Time zone object base class and factory Version: 1.20 -Release: 1 +Release: 2 License: GPL+ or Artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/DateTime-TimeZone/ @@ -38,7 +38,9 @@ BuildRequires: perl-macros %if %{with test} BuildRequires: perl(DateTime) >= 0.16 %endif +%if 0%{?suse_version} >= 1130 BuildRequires: perl(Test::More) >= 0.88 +%endif BuildRequires: perl(Class::Singleton) >= 1.03 BuildRequires: perl(Cwd) >= 3 BuildRequires: perl(Params::Validate) >= 0.72 @@ -72,8 +74,10 @@ popd %{__perl} Build.PL installdirs=vendor ./Build +%if 0%{?suse_version} >= 1130 %check ./Build test +%endif %install ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0