- The XS version of the code always called Carp::confess, regardless of whether you provided your own on_fail callback. Reported by Scott Bolte. RT #66359. - There were a couple spots that called eval without localizing $@ first. RT #58087. - The parameters for each key validation (can, isa, regex) are now checked, and an error is thrown if any of the keys are not valid. Basically, we validate the validation spec. Based on a patch by Andreas Faafeng. RT #57831. - This module now requires Perl 5.8.1. - Switched to version 2.0 of the Artistic License. OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=12
85 lines
2.5 KiB
RPMSpec
85 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-Params-Validate
|
|
#
|
|
# Copyright (c) 2011 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-Params-Validate
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
Summary: Validate method/function parameters
|
|
Version: 0.97
|
|
Release: 6
|
|
License: Artistic 2.0
|
|
Group: Development/Libraries/Perl
|
|
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
|
|
BuildRequires: perl(Readonly::XS)
|
|
Requires: perl(Attribute::Handlers) >= 0.79
|
|
Requires: perl(Test::More) >= 0.34
|
|
Requires: perl(Scalar::Util) >= 1.10
|
|
Provides: %{cpan_name}
|
|
|
|
%description
|
|
The Params::Validate module allows you to validate method or function
|
|
call parameters to an arbitrary level of specificity. At the simplest
|
|
level, it is capable of validating the required parameters were given
|
|
and that no unspecified additional parameters were passed in.
|
|
|
|
It is also capable of determining that a parameter is of a specific
|
|
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}
|
|
|
|
%build
|
|
perl Build.PL installdirs=vendor
|
|
./Build
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install destdir=$RPM_BUILD_ROOT
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-, root, root)
|
|
%doc Changes LICENSE README SIGNATURE
|
|
|
|
%changelog
|