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
This commit is contained in:
Pascal Bleser 2011-03-01 06:32:45 +00:00 committed by Git OBS Bridge
parent 06ee67e6fc
commit 3c6e3b3dce

View File

@ -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