perl-Params-Validate/perl-Params-Validate.spec

75 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Params-Validate
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: perl-Params-Validate
Version: 1.30
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
Release: 0
%define cpan_name Params-Validate
Summary: Validate method/function parameters
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
License: Artistic-2.0
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.422700
BuildRequires: perl(Module::Implementation)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
BuildRequires: perl(Test::Requires)
Requires: perl(Module::Implementation)
%{perl_requires}
%description
*I would recommend you consider using Params::ValidationCompiler instead.
That module, despite being pure Perl, is _significantly_ faster than this
one, at the cost of having to adopt a type system such as Specio,
Type::Tiny, or the one shipped with Moose*.
This 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.
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
Accepting request 243183 from home:smithfarm:branches:devel:languages:perl - 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 OBS-URL: https://build.opensuse.org/request/show/243183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=33
2014-08-05 13:10:30 +00:00
%defattr(-,root,root,755)
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md TODO
%license LICENSE
%changelog