Accepting request 243686 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/243686
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Params-Validate?expand=0&rev=31
This commit is contained in:
Stephan Kulow 2014-08-05 19:11:21 +00:00 committed by Git OBS Bridge
commit ae854ad86a
4 changed files with 73 additions and 43 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e627cd0b4cd948c804199ac5e1316a2f628dcb8e3decb8e97e4a535ae1039b6
size 98540

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6aa31630329952e53e58a81d113995dfa11f786028a1c23892942598ee384be4
size 106121

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Wed Jul 30 08:15:16 UTC 2014 - ncutler@suse.com
- updated to 1.13 (excerpt from upstream Changes file):
1.13 2014-06-28
- Fix my brain damage so that this code compiles with Perl 5.14.
1.12 2014-06-27
- Temporarily skip tests that use Readonly with Readonly 1.50+ until various
bugs are worked out in Readonly.
1.11 2014-06-26
- Fixes for MSVC compilation. Patch by J.R. Mash. PR #1.
1.10 2014-05-11
- Require Readonly 1.03+ and Scalar::Util 1.20 for testing with
Readonly. AFAICT, earlier versions of Readonly worked very differently,
and/or this is related to Scalar::Util. Either way, this test isn't that
important anyway. RT #95402.
1.09 2014-05-04
- A call to validate() where the spec was a reference to a Readonly hash would
segfault. Reported by Salvatore Bonaccorso. RT #80572.
- When using the XS implementation, attempting to validate parameters with
tainted values would cause an "Insecure dependency in eval_sv() while
running with -T switch" exception from Perl *if the validation failed*. This
is fixed, but only for Perl 5.14+. Older Perls do not include the necessary
XS API. RT #70174.
- Fixed some potential segfaults from the XS implementation including the one
reported by Анатолий Гришаев in RT #50412. However, the XS code in general
is pretty crufty and tends to assume that values which could be NULL aren't.
- Fixed bad example of state() in POD. Reported by Salvatore Bonaccorso. RT
#80250.
1.08 2013-06-07
- The handling of defaults in the XS version of validate_pos was broken. The
default were simply pushed into the returned array, rather than being
explicitly stored in the right index based on the order of the specs passed
to validate_pos(). RT #83780.
1.07 2012-10-26
- Params::Validate's XS implementation would overwrite $@ when validation subs
were called. Patch by Salvador Fandino. RT #80124.
- The use of state in the POD was broken. It only works with scalars. Reported
by Salvatore Bonaccorso. RT #80250.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 13 02:34:45 UTC 2012 - vcizek@suse.com Mon Feb 13 02:34:45 UTC 2012 - vcizek@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-Params-Validate # spec file for package perl-Params-Validate
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,71 +16,54 @@
# #
%bcond_with opt
Name: perl-Params-Validate Name: perl-Params-Validate
Version: 1.06 Version: 1.13
Release: 2 Release: 0
License: Artistic-2.0
%define cpan_name Params-Validate %define cpan_name Params-Validate
Summary: Validate method/function parameters Summary: Validate method/function parameters
Url: http://search.cpan.org/dist/Params-Validate/ License: Artistic-2.0
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Source: %{cpan_name}-%{version}.tar.gz Url: http://search.cpan.org/dist/Params-Validate/
BuildRequires: perl Source: Params-Validate-%{version}.tar.gz
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120 BuildRequires: perl
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl-macros
%endif
%if %{with opt}
BuildRequires: perl(Readonly::XS)
BuildRequires: perl(Test::Taint) >= 0.02
%endif
BuildRequires: perl(Attribute::Handlers) >= 0.79 BuildRequires: perl(Attribute::Handlers) >= 0.79
BuildRequires: perl(Module::Build) >= 0.3601
BuildRequires: perl(Module::Implementation) BuildRequires: perl(Module::Implementation)
BuildRequires: perl(Scalar::Util) >= 1.10
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Requires)
Requires: perl(Attribute::Handlers) >= 0.79 Requires: perl(Attribute::Handlers) >= 0.79
Requires: perl(Module::Implementation) Requires: perl(Module::Implementation)
Requires: perl(Scalar::Util) >= 1.10
%{perl_requires} %{perl_requires}
%description %description
The Params::Validate module allows you to validate method or function The Params::Validate module allows you to validate method or function call
call parameters to an arbitrary level of specificity. At the simplest parameters to an arbitrary level of specificity. At the simplest level, it
level, it is capable of validating the required parameters were given is capable of validating the required parameters were given and that no
and that no unspecified additional parameters were passed in. unspecified additional parameters were passed in.
It is also capable of determining that a parameter is of a specific It is also capable of determining that a parameter is of a specific type,
type, that it is an object of a certain class hierarchy, that it that it is an object of a certain class hierarchy, that it possesses
possesses certain methods, or applying validation callbacks to certain methods, or applying validation callbacks to arguments.
arguments.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
perl -p -i -e 's|0.3601|0.280801|' Build.PL
%endif
%build %build
perl Build.PL installdirs=vendor %{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
./Build ./Build build flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} ./Build install destdir=%{buildroot} create_packlist=0
%perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-, root, root) %defattr(-,root,root,755)
%doc Changes LICENSE README %doc Changes LICENSE README TODO
%changelog %changelog