Accepting request 81902 from devel:languages:perl

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

OBS-URL: https://build.opensuse.org/request/show/81902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Params-Validate?expand=0&rev=21
This commit is contained in:
Sascha Peilicke 2011-09-13 10:29:51 +00:00 committed by Git OBS Bridge
commit d643ff03e0
2 changed files with 21 additions and 11 deletions

View File

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

View File

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