commit 0aef6c7be8f7f87926bda200b9913f1d43761b7c Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Sat Jul 20 08:40:58 2013 +0200 Perl 5.18 compatibility perl-Crypt-GPG-1.63-qw.patch | 73 ++++++++++++++++++++++++++++++++++++++++++ perl-Crypt-GPG.spec | 4 ++ 2 files changed, 77 insertions(+), 0 deletions(-) --- diff --git a/perl-Crypt-GPG-1.63-qw.patch b/perl-Crypt-GPG-1.63-qw.patch new file mode 100644 index 0000000..97fae0b --- /dev/null +++ b/perl-Crypt-GPG-1.63-qw.patch @@ -0,0 +1,73 @@ +$>cat Crypt-GPG-1.63.patch +commit e5c9658a618586ee50dd13fea478bb715ed8bc9d +Author: Todd Rinaldo <toddr@xxxxxxxxxx> +Date: Fri May 20 02:18:55 2011 -0500 + + Fix for RT 68339 - qw() deprecation warnings in perl 5.14 + +diff --git a/t/01-keygen.t b/t/01-keygen.t +index d8d2bba..cb754ba 100644 +--- a/t/01-keygen.t ++++ b/t/01-keygen.t +@@ -45,7 +45,7 @@ $gpg->debug($debug); + + # Start test loop with different key sizes/types + ################################################ +-for my $bits qw(1024 2048) { ++for my $bits (qw(1024 2048)) { + for my $type ('ELG-E') { + + # Generate key pair +diff --git a/t/03-export.t b/t/03-export.t +index 9f39591..fe03101 100644 +--- a/t/03-export.t ++++ b/t/03-export.t +@@ -31,7 +31,7 @@ $gpg->debug($debug); + + # Start test loop with different key sizes/types + ################################################ +-for my $bits qw(1024 2048) { ++for my $bits (qw(1024 2048)) { + for my $type ('ELG-E') { + + # Export our public key +diff --git a/t/04-encdec.t b/t/04-encdec.t +index be969c6..b6f2cc9 100644 +--- a/t/04-encdec.t ++++ b/t/04-encdec.t +@@ -32,7 +32,7 @@ $gpg->debug($debug); + + # Start test loop with different key sizes/types + ################################################ +-for my $bits qw(1024 2048) { ++for my $bits (qw(1024 2048)) { + for my $type ('ELG-E') { + + my $secretkey; +diff --git a/t/05-sigver.t b/t/05-sigver.t +index 7129521..9f4cf37 100644 +--- a/t/05-sigver.t ++++ b/t/05-sigver.t +@@ -32,7 +32,7 @@ $gpg->debug($debug); + + # Start test loop with different key sizes/types + ################################################ +-for my $bits qw(1024 2048) { ++for my $bits (qw(1024 2048)) { + for my $type ('ELG-E') { + + my $secretkey; +diff --git a/t/06-keyops.t b/t/06-keyops.t +index 5109474..565d40c 100644 +--- a/t/06-keyops.t ++++ b/t/06-keyops.t +@@ -41,7 +41,7 @@ unless ($nogpg) { + + # Start test loop with different key sizes/types + ################################################ +-for my $bits qw(1024 2048) { ++for my $bits (qw(1024 2048)) { + for my $type ('ELG-E') { + + my @mykeys; @mykeys = $gpg->keyinfo("A $bits $type") unless $nogpg; + diff --git a/perl-Crypt-GPG.spec b/perl-Crypt-GPG.spec index 75f00cc..e9a3048 100644 --- a/perl-Crypt-GPG.spec +++ b/perl-Crypt-GPG.spec @@ -9,6 +9,8 @@ Group: Development/Libraries URL: http://search.cpan.org/dist/%{pkgname}/ Source: http://search.cpan.org/CPAN/authors/id/A/AG/AGUL/%{pkgname}-%{version}.tar.gz Patch0: perl-Crypt-GPG-1.63-fedora.patch +# Perl 5.18 compatibility, CPAN RT#68339 +Patch1: perl-Crypt-GPG-1.63-qw.patch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)), gnupg BuildRequires: perl(ExtUtils::MakeMaker), perl(IPC::Run), perl(Date::Parse), gnupg BuildArch: noarch @@ -24,6 +26,7 @@ and import. %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 -b .fedora +%patch1 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -52,6 +55,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Thu Jul 18 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 1.63-17 - Perl 5.18 rebuild +- Perl 5.18 compatibility (CPAN RT#68339) * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.63-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild -- 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