Compare commits

...

44 Commits
f25 ... rawhide

Author SHA1 Message Date
Fedora Release Engineering 353eea0916 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 10:09:45 +00:00
Jitka Plesnikova 08a42d654e Perl 5.36 re-rebuild of bootstrapped packages 2022-06-03 12:30:38 +02:00
Jitka Plesnikova c313aa5f32 Perl 5.36 rebuild 2022-06-01 02:23:55 +02:00
Fedora Release Engineering b2202bbdb6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 04:26:43 +00:00
Fedora Release Engineering 2d8502aa54 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 23:01:30 +00:00
Paul Howarth d7ad7a9c8a Rename .rpmlint ⇒ perl-Params-ValidationCompiler.rpmlintrc 2021-06-21 13:34:25 +01:00
Jitka Plesnikova b3a72ff85b Perl 5.34 re-rebuild of bootstrapped packages 2021-05-24 10:14:47 +02:00
Jitka Plesnikova 93c0a3472e Perl 5.34 rebuild 2021-05-23 01:39:46 +02:00
Fedora Release Engineering 9bf1eaa687 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 03:53:35 +00:00
Fedora Release Engineering 94db0b3108 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 18:06:08 +00:00
Jitka Plesnikova 487c83f7da Perl 5.32 re-rebuild of bootstrapped packages 2020-06-26 17:40:22 +02:00
Jitka Plesnikova f0f1b813d7 Perl 5.32 rebuild 2020-06-23 10:15:22 +02:00
Fedora Release Engineering e2ee83511e - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 03:31:46 +00:00
Fedora Release Engineering 0827676d50 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 05:48:10 +00:00
Jitka Plesnikova 02fdbe1f7c Perl 5.30 re-rebuild of bootstrapped packages 2019-06-02 23:03:46 +02:00
Jitka Plesnikova e8d807b183 Perl 5.30 rebuild 2019-05-31 16:15:34 +02:00
Fedora Release Engineering f3e584a421 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 23:24:01 +00:00
Paul Howarth d0afed733a Update to 0.30
- New upstream release 0.30
  - Added a new option for named params, "return_object", which causes the
    validation sub to return an object with methods for each param rather than
    a hashref; this is a great way to avoid typos in hash keys (idea
    shamelessly stolen from Toby Inkster's Type::Params module)
  - Tweaked the POD formatting so that the table of contents generated by
    MetaCPAN is more useful
  - Optionally use Class::XSAccessor
2018-08-01 15:58:38 +01:00
Fedora Release Engineering 1d7aac05a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 19:16:44 +00:00
Jitka Plesnikova b181cb2a80 Perl 5.28 re-rebuild of bootstrapped packages 2018-07-01 08:46:38 +02:00
Jitka Plesnikova 91501e75ff Perl 5.28 rebuild 2018-06-29 09:27:35 +02:00
Petr Písař 2dc52d32eb cpan.org addresses moved to MetaCPAN <https://fedoraproject.org/wiki/Changes/Perl_Move_to_MetaCPAN> 2018-06-04 14:18:51 +02:00
Jitka Plesnikova 927fde0e9c Do not run optional test on RHEL 2018-03-28 16:15:21 +02:00
Paul Howarth 9d4ccc9cb6 Update to 0.27
- New upsteram release 0.27
  - Fixed a bug with inlining Moose types: if a type's parent needed
    environment variables, those would not get closed over (GH#22)
  - Added a debug option to dump the source of the subroutine before it is
    eval'd
2018-02-12 10:39:16 +00:00
Fedora Release Engineering 5478e81a41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 23:59:04 +00:00
Petr Písař c013089dad Control optional test with a build condition 2017-12-07 12:43:56 +01:00
Paul Howarth 3b5e53b51c Update to 0.26
- New upstream release 0.26
  - The exceptions.t test would fail if Sub::Util was not installed (GH#19)
  - Fix test failures on Windows (GH#20)
2017-11-28 18:34:47 +00:00
Paul Howarth a91eb7e54f Update to 0.25
- New upstream release 0.25
  - All exceptions now include a stack trace by default when treated as a
    string; this makes finding where validation failed a lot easier (GH#18)
  - The name for a subroutine is now used in some exception messages, even if
    Sub::Util cannot be installed
2017-11-24 13:29:23 +00:00
Fedora Release Engineering 5b0acd85e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 05:39:56 +00:00
Petr Písař 27539f5870 perl dependency renamed to perl-interpreter <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules> 2017-07-12 14:51:58 +02:00
Jitka Plesnikova d14a623edc Perl 5.26 re-rebuild of bootstrapped packages 2017-06-07 16:56:59 +02:00
Jitka Plesnikova 0da309bf02 Perl 5.26 rebuild 2017-06-06 00:37:23 +02:00
Paul Howarth 134722a0a6 Update to 0.24
- New upstream release 0.24
  - The source_for() exported by Params::ValidationCompiler did not work at all
    (GH#16)
2017-04-11 19:38:40 +01:00
Fedora Release Engineering de50ce375a - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 04:47:15 +00:00
Paul Howarth b642bdbfc6 Update to 0.23
- New upstream release 0.23
  - Trying to create a validator for positional parameters where a required
    param came after one with a default did not throw an exception
  - A positional params validator with a slurpy type that had coercions did not
    return the coerced values; it returned the original values instead
2017-01-23 20:28:02 +00:00
Paul Howarth 71efe4d965 Update to 0.22
- New upstream release 0.22
  - Explicitly load the B module; previously, the code relied on this already
    being loaded by something else (GH#11)
  - Removed the alpha warning from the docs
2016-12-31 16:52:18 +00:00
Paul Howarth b94649ffec Update to 0.21
- New upstream release 0.21
  - Switched to using GitHub issues
2016-12-07 11:40:31 +00:00
Paul Howarth 48cfdf25a8 Update to 0.20
- New upstream release 0.20
  - The keys for parameter specifications are now validated, and if an unknown
    key is seen then an exception will be thrown; this will help you catch
    typos in your parameter specification (GH#8)
2016-12-06 10:31:56 +00:00
Paul Howarth 756179fa7a Update to 0.19
- New upstream release 0.19
  - Non-inlinable Specio types caused a syntax error when used with positional
    params
  - Positional params with coercions and defaults did not work properly; the
    coerced value and the default would simply not be returned in any case
2016-11-22 09:25:01 +00:00
Paul Howarth 5b75ebeaef Update to 0.18
- New upstream release 0.18
  - Using coercions with positional parameters could cause a "Modification of a
    read-only value attempted" exception when the generated code tried to
    assign to elements of @_; this is now fixed by making a copy if any of the
    types have a coercion
  - Using Moose types with coercions in a positional params check would cause
    invalid code to be generated; this could also happen with Type::Tiny if
    either the type or a coercion could not be inlined
2016-11-14 10:25:56 +00:00
Paul Howarth 38c6162026 Update to 0.17
- New upstream release 0.17
  - When using positional parameters, parameters with a default are now
    optional; for named parameters, this was already the case
2016-11-07 09:13:58 +00:00
Paul Howarth 80bd12eb8a Update to 0.16
- New upstream release 0.16
  - Previously, using a default with a positional parameter would result in an
    error when compiling the validator subroutine; defaults now work with
    positional parameters (GH#5)
  - Moose and Specio types (and coercions) that provide variables to close over
    when being inlined did not always compile properly; most notably, this was
    not being handled at all for Moose types, and not completely handled for
    Specio coercions
2016-11-04 12:07:56 +00:00
Paul Howarth 0a9febde93 Update to 0.14
- New upstream release 0.14
  - Added a "named_to_list" option to support returning only the parameter
    values from a named parameter validator rather than the key-value pairs
  - Errors from calls to validation_for() now use croak so as to show up at the
    call site, rather than in the internals
2016-11-03 11:55:05 +00:00
Petr Písař 6313c66174 Break build cycle: perl-Moose → perl-DateTime → perl-Params-ValidationCompiler 2016-10-26 13:21:06 +02:00
3 changed files with 202 additions and 10 deletions

View File

@ -0,0 +1,3 @@
from Config import *
addFilter("spelling-error %description -l en_US uncompromised -> ");
addFilter("spelling-error Summary\(en_US\) validator -> ");

View File

@ -1,21 +1,32 @@
# Run optional test
%if ! (0%{?rhel})
%bcond_without perl_Params_ValidationCompiler_enables_optional_test
%else
%bcond_with perl_Params_ValidationCompiler_enables_optional_test
%endif
Name: perl-Params-ValidationCompiler
Version: 0.13
Release: 3%{?dist}
Version: 0.30
Release: 17%{?dist}
Summary: Build an optimized subroutine parameter validator once, use it forever
License: Artistic 2.0
URL: http://search.cpan.org/dist/Params-ValidationCompiler/
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-%{version}.tar.gz
URL: https://metacpan.org/release/Params-ValidationCompiler
Source0: https://cpan.metacpan.org/modules/by-module/Params/Params-ValidationCompiler-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
# Module
BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Eval::Closure)
BuildRequires: perl(Exception::Class)
BuildRequires: perl(Exporter)
BuildRequires: perl(List::Util) >= 1.29
BuildRequires: perl(overload)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict)
@ -27,21 +38,27 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(Specio) >= 0.14
BuildRequires: perl(Specio::Declare)
BuildRequires: perl(Specio::Library::Builtins)
BuildRequires: perl(Test2::Bundle::Extended)
BuildRequires: perl(Test2::Plugin::NoWarnings)
BuildRequires: perl(Test2::Require::Module)
BuildRequires: perl(Test2::V0)
BuildRequires: perl(Test::More) >= 1.302015
BuildRequires: perl(Test::Without::Module)
%if %{with perl_Params_ValidationCompiler_enables_optional_test}
# Optional Tests
BuildRequires: perl(Const::Fast)
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Hash::Util)
%if !%{defined perl_bootstrap}
# Avoid build dependency cycles via Moose and DateTime
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(Types::Standard)
%endif
%endif
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Sub::Util) >= 1.40
Recommends: perl(Class::XSAccessor)
Recommends: perl(Sub::Util) >= 1.40
%description
Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly
@ -56,20 +73,192 @@ make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}
%{_fixperms} -c %{buildroot}
%check
make test
%files
%license LICENSE
%doc Changes eg/ README.md
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md eg/ README.md
%{perl_vendorlib}/Params/
%{_mandir}/man3/Params::ValidationCompiler.3*
%{_mandir}/man3/Params::ValidationCompiler::Compiler.3*
%{_mandir}/man3/Params::ValidationCompiler::Exceptions.3*
%changelog
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-16
- Perl 5.36 re-rebuild of bootstrapped packages
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-15
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-12
- Perl 5.34 re-rebuild of bootstrapped packages
* Sat May 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-11
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-8
- Perl 5.32 re-rebuild of bootstrapped packages
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-7
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-4
- Perl 5.30 re-rebuild of bootstrapped packages
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-3
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 1 2018 Paul Howarth <paul@city-fan.org> - 0.30-1
- Update to 0.30
- Added a new option for named params, "return_object", which causes the
validation sub to return an object with methods for each param rather than
a hashref; this is a great way to avoid typos in hash keys (idea
shamelessly stolen from Toby Inkster's Type::Params module)
- Tweaked the POD formatting so that the table of contents generated by
MetaCPAN is more useful
- Optionally use Class::XSAccessor
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-3
- Perl 5.28 re-rebuild of bootstrapped packages
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-2
- Perl 5.28 rebuild
* Mon Feb 12 2018 Paul Howarth <paul@city-fan.org> - 0.27-1
- Update to 0.27
- Fixed a bug with inlining Moose types: if a type's parent needed
environment variables, those would not get closed over (GH#22)
- Added a debug option to dump the source of the subroutine before it is
eval'd
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Nov 28 2017 Paul Howarth <paul@city-fan.org> - 0.26-1
- Update to 0.26
- The exceptions.t test would fail if Sub::Util was not installed (GH#19)
- Fix test failures on Windows (GH#20)
* Fri Nov 24 2017 Paul Howarth <paul@city-fan.org> - 0.25-1
- Update to 0.25
- All exceptions now include a stack trace by default when treated as a
string; this makes finding where validation failed a lot easier (GH#18)
- The name for a subroutine is now used in some exception messages, even if
Sub::Util cannot be installed
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-3
- Perl 5.26 re-rebuild of bootstrapped packages
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-2
- Perl 5.26 rebuild
* Sun Apr 9 2017 Paul Howarth <paul@city-fan.org> - 0.24-1
- Update to 0.24
- The source_for() exported by Params::ValidationCompiler did not work at all
(GH#16)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jan 23 2017 Paul Howarth <paul@city-fan.org> - 0.23-1
- Update to 0.23
- Trying to create a validator for positional parameters where a required
param came after one with a default did not throw an exception
- A positional params validator with a slurpy type that had coercions did not
return the coerced values; it returned the original values instead
* Sat Dec 31 2016 Paul Howarth <paul@city-fan.org> - 0.22-1
- Update to 0.22
- Explicitly load the B module; previously, the code relied on this already
being loaded by something else (GH#11)
- Removed the alpha warning from the docs
* Wed Dec 7 2016 Paul Howarth <paul@city-fan.org> - 0.21-1
- Update to 0.21
- Switched to using GitHub issues
* Tue Dec 6 2016 Paul Howarth <paul@city-fan.org> - 0.20-1
- Update to 0.20
- The keys for parameter specifications are now validated, and if an unknown
key is seen then an exception will be thrown; this will help you catch
typos in your parameter specification (GH#8)
* Tue Nov 22 2016 Paul Howarth <paul@city-fan.org> - 0.19-1
- Update to 0.19
- Non-inlinable Specio types caused a syntax error when used with positional
params
- Positional params with coercions and defaults did not work properly; the
coerced value and the default would simply not be returned in any case
* Mon Nov 14 2016 Paul Howarth <paul@city-fan.org> - 0.18-1
- Update to 0.18
- Using coercions with positional parameters could cause a "Modification of a
read-only value attempted" exception when the generated code tried to
assign to elements of @_; this is now fixed by making a copy if any of the
types have a coercion
- Using Moose types with coercions in a positional params check would cause
invalid code to be generated; this could also happen with Type::Tiny if
either the type or a coercion could not be inlined
* Mon Nov 7 2016 Paul Howarth <paul@city-fan.org> - 0.17-1
- Update to 0.17
- When using positional parameters, parameters with a default are now
optional; for named parameters, this was already the case
* Fri Nov 4 2016 Paul Howarth <paul@city-fan.org> - 0.16-1
- Update to 0.16
- Previously, using a default with a positional parameter would result in an
error when compiling the validator subroutine; defaults now work with
positional parameters (GH#5)
- Moose and Specio types (and coercions) that provide variables to close over
when being inlined did not always compile properly; most notably, this was
not being handled at all for Moose types, and not completely handled for
Specio coercions
* Thu Nov 3 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
- Update to 0.14
- Added a "named_to_list" option to support returning only the parameter
values from a named parameter validator rather than the key-value pairs
(GH#4)
- Errors from calls to validation_for() now use croak so as to show up at the
call site, rather than in the internals
* Wed Oct 26 2016 Petr Pisar <ppisar@redhat.com> - 0.13-4
- Break build cycle: perl-Moose perl-DateTime perl-Params-ValidationCompiler
* Mon Sep 19 2016 Paul Howarth <paul@city-fan.org> - 0.13-3
- Drop unused BR: findutils (#1377252)

View File

@ -1 +1 @@
e654da776110d5e821c43b2f30f03d68 Params-ValidationCompiler-0.13.tar.gz
SHA512 (Params-ValidationCompiler-0.30.tar.gz) = 5911f9317f0b72e17c72435420a3b6b9f36780ab70715510c46e847970094e730169b9b3085f29cb23ee0aca2e78f7f9edd0d093859a1062869f35c90172bf05