commit b3971df42a636a35279313099f18042b6bc963ac Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Nov 20 11:33:27 2014 +0000 Update to 2.130 - New upstream release 2.130 - from_string_hash can take optional constructor arguments - bad_version_hook callback gets module name as well as version string - undefined/empty versions given to from_string_hash or add_string_requirement now carp and are coerced to "0" instead of being fatal; this is more consistent with how the other requirement functions work - Provide six-digit version in a more robust way perl-CPAN-Meta-Requirements.spec | 32 +++++++++++++++++++++++--------- sources | 2 +- 2 files changed, 24 insertions(+), 10 deletions(-) --- diff --git a/perl-CPAN-Meta-Requirements.spec b/perl-CPAN-Meta-Requirements.spec index d8799f0..b77e51b 100644 --- a/perl-CPAN-Meta-Requirements.spec +++ b/perl-CPAN-Meta-Requirements.spec @@ -1,5 +1,5 @@ Name: perl-CPAN-Meta-Requirements -Version: 2.129 +Version: 2.130 Release: 1%{?dist} Summary: Set of version requirements for a CPAN dist License: GPL+ or Artistic @@ -11,7 +11,7 @@ BuildArch: noarch BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 # Module -# B not used at tests +BuildRequires: perl(B) BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) @@ -19,10 +19,10 @@ BuildRequires: perl(version) >= 0.88 BuildRequires: perl(warnings) # Test BuildRequires: perl(File::Spec) -BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) # Extra Tests (not run when bootstrapping due to circular build dependencies) %if !%{defined perl_bootstrap} && ! ( 0%{?rhel} ) +BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(English) BuildRequires: perl(File::Temp) BuildRequires: perl(IO::Handle) @@ -43,15 +43,19 @@ BuildRequires: perl(Test::Version) >= 0.04 # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(B) -Requires: perl(version) - -%{?perl_default_filter} +Requires: perl(version) >= 0.88 # CPAN-Meta-Requirements was split from CPAN-Meta Conflicts: perl-CPAN-Meta < 2.120921 -# and used to have six decimal places -%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(CPAN::Meta::Requirements\\) -Provides: perl(CPAN::Meta::Requirements) = %{version}000 + +# Had a six-digit version in a previous life +%global six_digit_version %(echo %{version} | perl -p -e 's/(.*)/sprintf("%.6f", $1)/e') + +# Provide the six-digit version of the module +%if "%{version}" != "%{six_digit_version}" +Provides: perl(CPAN::Meta::Requirements) = %{six_digit_version} +%global __provides_exclude ^perl\\(CPAN::Meta::Requirements\\) +%endif %description A CPAN::Meta::Requirements object models a set of version constraints like @@ -87,6 +91,16 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" %{_mandir}/man3/CPAN::Meta::Requirements.3* %changelog +* Thu Nov 20 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 2.130-1 +- Update to 2.130 + - from_string_hash can take optional constructor arguments + - bad_version_hook callback gets module name as well as version string + - undefined/empty versions given to from_string_hash or + add_string_requirement now carp and are coerced to "0" instead of being + fatal; this is more consistent with how the other requirement functions + work +- Provide six-digit version in a more robust way + * Fri Nov 14 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 2.129-1 - Update to 2.129 - from_string_hash can now accept v-strings as hash values diff --git a/sources b/sources index ddedb0e..6eadfe7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -59af66365efa7fdcb1a904b84585e11e CPAN-Meta-Requirements-2.129.tar.gz +c25c8fb8b0e8ed0d6c41aaa9f4080683 CPAN-Meta-Requirements-2.130.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel