From 023e4d21393e82a155a0f3892d8b6493c5a2f8b27e9eb2e588e4127031646c2c Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Fri, 26 Aug 2011 21:35:13 +0000 Subject: [PATCH] fix build, fix deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=19 --- perl-Params-Validate.changes | 8 ++++++++ perl-Params-Validate.spec | 24 +++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/perl-Params-Validate.changes b/perl-Params-Validate.changes index 369a3fd..139ed54 100644 --- a/perl-Params-Validate.changes +++ b/perl-Params-Validate.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 26 21:33:33 UTC 2011 - chris@computersalat.de + +- remove Author from desc +- fix deps + * fix build for 1120 (perl -p -i -e 's|0.3601|0.280801|' Build.PL) +- add bcond_with opt (Test::Taint, Readonly::XS) + ------------------------------------------------------------------- Mon Jun 13 08:12:10 UTC 2011 - vcizek@novell.com diff --git a/perl-Params-Validate.spec b/perl-Params-Validate.spec index 5f0ed5b..8d0afa9 100644 --- a/perl-Params-Validate.spec +++ b/perl-Params-Validate.spec @@ -17,6 +17,7 @@ # norootforbuild +%bcond_with opt Name: perl-Params-Validate %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) @@ -29,19 +30,21 @@ AutoReqProv: on Url: http://search.cpan.org/dist/Params-Validate/ Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) -# -BuildRequires: perl(ExtUtils::CBuilder) -BuildRequires: perl(Pod::Man) >= 1.14 -BuildRequires: perl(Test::More) >= 0.34 -#BuildRequires: perl(Test::Taint) >= 0.02 +%if 0%{?suse_version} >= 1120 +BuildRequires: perl(Test::More) >= 0.88 +%endif +%if %{with opt} +BuildRequires: perl(Test::Taint) >= 0.02 BuildRequires: perl(Readonly::XS) +%endif +BuildRequires: perl(Attribute::Handlers) >= 0.79 +BuildRequires: perl(Scalar::Util) >= 1.10 Requires: perl(Attribute::Handlers) >= 0.79 -Requires: perl(Test::More) >= 0.34 Requires: perl(Scalar::Util) >= 1.10 +%{perl_requires} %description The Params::Validate module allows you to validate method or function @@ -54,12 +57,11 @@ type, that it is an object of a certain class hierarchy, that it possesses certain methods, or applying validation callbacks to arguments. -Authors: --------- - Dave Rolsky - %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} <= 1120 + %{__perl} -p -i -e 's|0.3601|0.280801|' Build.PL +%endif %build perl Build.PL installdirs=vendor