diff --git a/Function-Parameters-2.001005.tar.gz b/Function-Parameters-2.001005.tar.gz deleted file mode 100644 index c34a179..0000000 --- a/Function-Parameters-2.001005.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:231cee398311aa24d88b0881b36eedc9322bcb7d244187b03df4c3d79f333277 -size 88688 diff --git a/Function-Parameters-2.002002.tar.gz b/Function-Parameters-2.002002.tar.gz new file mode 100644 index 0000000..0aeb993 --- /dev/null +++ b/Function-Parameters-2.002002.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d081708705273ba872079e24283a9c619aa136869ba95420a816e207c2ed3df3 +size 70848 diff --git a/perl-Function-Parameters.changes b/perl-Function-Parameters.changes index 0950c2f..0301bcd 100644 --- a/perl-Function-Parameters.changes +++ b/perl-Function-Parameters.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Sun Apr 2 03:06:41 UTC 2023 - Tina Müller + +- updated to 2.002002 + see /usr/share/doc/packages/perl-Function-Parameters/Changes + + 2.002002 2023-04-01 + - Work around old versions of ExtUtils::MakeMaker not providing + is_make_type(), whose version dependency is undocumented (sigh). + - Restrict GNU syntax for exporting variables to type 'gmake'; should + fix building on BSD, Solaris, etc. + - Declare dependency on ExtUtils::MakeMaker 7+ and remove + compatibility code for older versions. + 2.002001 2023-04-01 + - Fix (hopefully) Windows builds using nmake.exe. + 2.002 2023-04-01 + - Provide //= for default arguments that are also used when the + caller passes in undef. + - Provide more type combinators in parameter declarations: In + addition to | (union types), now ~ & / are also supported (for + complement types, intersection types, and alternative types, + respectively). + - Enable type coercions. If a parameter has a declared type and that + type supports coercions ($type->has_coercion returns true), call + its ->coerce($value) method to transform arguments before type + checking. + - Enable inline type checks. If a parameter has a declared type and + that type supports inlining ($type->can_be_inlined returns true), + its inline code (as provided by ->inline_check('$value')) is baked + into the function definition instead of a call to ->check($value). + This may speed up type checks. + - Move a big chunk of tests to xt/ (author testing only). + - Remove xt/ from the distribution. + - Enable parallel testing by default (with -j4). + 2.001006 2023-03-27 + - Work around perl core issue GH#20950 (use re "eval" doesn't capture + lexical %^H environment like eval() does and stringifies it + instead) by downgrading the previous hard error to a warning (in + the new category 'Function::Parameters') and switching + Function::Parameters off in the affected scope. + ------------------------------------------------------------------- Sat Jan 28 03:07:42 UTC 2023 - Tina Müller diff --git a/perl-Function-Parameters.spec b/perl-Function-Parameters.spec index 382feca..0121cb3 100644 --- a/perl-Function-Parameters.spec +++ b/perl-Function-Parameters.spec @@ -18,7 +18,7 @@ %define cpan_name Function-Parameters Name: perl-Function-Parameters -Version: 2.001005 +Version: 2.002002 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Define functions and methods with parameter lists ("subroutine signatures") @@ -27,6 +27,7 @@ Source0: https://cpan.metacpan.org/authors/id/M/MA/MAUKE/%{cpan_name}-%{v Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0 BuildRequires: perl(Hash::Util) >= 0.07 BuildRequires: perl(Test::Fatal) %{perl_requires} @@ -38,10 +39,10 @@ having to unpack '@_' manually, but this module can do much more for you. The parameter lists provided by this module are similar to the 'signatures' feature available in perl v5.20+. However, this module supports all perl -versions starting from v5.14, it offers far more features than core -signatures, and it is not experimental. The downside is that you need a C -compiler if you want to install it from source, as it uses Perl's keyword -plugin API in order to work reliably without requiring a source filter. +versions starting from v5.14 and it offers far more features than core +signatures. The downside is that you need a C compiler if you want to +install it from source, as it uses Perl's keyword plugin API in order to +work reliably without requiring a source filter. %prep %autosetup -n %{cpan_name}-%{version}