Hello community,
here is the log from the commit of package perl-GnuPG-Interface for
openSUSE:Factory checked in at 2013-06-25 09:29:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-GnuPG-Interface (Old)
and /work/SRC/openSUSE:Factory/.perl-GnuPG-Interface.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-GnuPG-Interface"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-GnuPG-Interface/perl-GnuPG-Interface.changes
2011-10-16 12:57:55.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-GnuPG-Interface.new/perl-GnuPG-Interface.changes
2013-06-25 14:43:42.000000000 +0200
@@ -1,0 +2,9 @@
+Thu Jun 20 11:28:09 UTC 2013 - [email protected]
+
+- updated to 0.46
+ Add a ->search_keys method
+ Add a ->version method
+ Remove dead code for finding gnupg2 binary
+ Include trailing columns when parsing --fixed-list-mode output
+
+-------------------------------------------------------------------
Old:
----
GnuPG-Interface-0.44.tar.gz
New:
----
GnuPG-Interface-0.46.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-GnuPG-Interface.spec ++++++
--- /var/tmp/diff_new_pack.WeNyR2/_old 2013-06-25 14:43:43.000000000 +0200
+++ /var/tmp/diff_new_pack.WeNyR2/_new 2013-06-25 14:43:43.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-GnuPG-Interface
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,47 +16,23 @@
#
-
Name: perl-GnuPG-Interface
-Version: 0.44
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 0.46
+Release: 0
%define cpan_name GnuPG-Interface
Summary: Perl interface to GnuPG
-Url: http://search.cpan.org/dist/GnuPG-Interface/
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-Source:
http://www.cpan.org/authors/id/J/JE/JESSE/%{cpan_name}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/GnuPG-Interface/
+Source:
http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose) >= 0.04
+BuildRequires: perl(Math::BigInt) >= 1.78
# MANUAL
BuildRequires: perl(Moose)
-BuildRequires: perl(Math::BigInt) >= 1.78
-#BuildRequires: perl(GnuPG::Fingerprint)
-#BuildRequires: perl(GnuPG::Handles)
-#BuildRequires: perl(GnuPG::HashInit)
-#BuildRequires: perl(GnuPG::Interface)
-#BuildRequires: perl(GnuPG::Key)
-#BuildRequires: perl(GnuPG::Options)
-#BuildRequires: perl(GnuPG::PrimaryKey)
-#BuildRequires: perl(GnuPG::PublicKey)
-#BuildRequires: perl(GnuPG::Revoker)
-#BuildRequires: perl(GnuPG::SecretKey)
-#BuildRequires: perl(GnuPG::Signature)
-#BuildRequires: perl(GnuPG::SubKey)
-#BuildRequires: perl(GnuPG::UserAttribute)
-#BuildRequires: perl(GnuPG::UserId)
-#BuildRequires: perl(inc::Module::Install)
-#BuildRequires: perl(JSON)
-#BuildRequires: perl(LWP::Simple)
-#BuildRequires: perl(Module::Build)
-#BuildRequires: perl(Module::Install::Base)
-#BuildRequires: perl(MyTest)
-#BuildRequires: perl(MyTestSpecific)
-#BuildRequires: perl(Parse::CPAN::Meta)
-#BuildRequires: perl(YAML::Tiny)
Requires: perl(Any::Moose) >= 0.04
Requires: perl(Math::BigInt) >= 1.78
# MANUAL BEGIN
@@ -68,7 +44,6 @@
Requires: gpg2
%endif
# MANUAL END
-
%{perl_requires}
%description
++++++ GnuPG-Interface-0.44.tar.gz -> GnuPG-Interface-0.46.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/ChangeLog
new/GnuPG-Interface-0.46/ChangeLog
--- old/GnuPG-Interface-0.44/ChangeLog 2011-05-03 03:43:25.000000000 +0200
+++ new/GnuPG-Interface-0.46/ChangeLog 2012-10-25 20:05:58.000000000 +0200
@@ -1,5 +1,15 @@
+0.46 Thu Oct 25 14:04:17 EDT 2012
+
+ Add a ->search_keys method
+ Add a ->version method
+ Remove dead code for finding gnupg2 binary
+
+0.45 Wed Oct 26 00:11:17 EDT 2011
+
+ Include trailing columns when parsing --fixed-list-mode output
+
0.44 Mon May 2 21:36:13 EDT 2011
-
+
Bump Math::BigInt dependency to get the new 'try GMP' syntax.
0.43 Tue Mar 8 09:13:31 EST 2011
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/META.yml
new/GnuPG-Interface-0.46/META.yml
--- old/GnuPG-Interface-0.44/META.yml 2011-05-03 03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/META.yml 2012-10-26 00:14:05.000000000 +0200
@@ -3,11 +3,12 @@
author:
- 'Frank J. Tobin'
build_requires:
- ExtUtils::MakeMaker: 6.42
+ ExtUtils::MakeMaker: 6.36
configure_requires:
- ExtUtils::MakeMaker: 6.42
+ ExtUtils::MakeMaker: 6.36
distribution_type: module
-generated_by: 'Module::Install version 1.00'
+dynamic_config: 1
+generated_by: 'Module::Install version 1.06'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,4 +24,4 @@
Math::BigInt: 1.78
resources:
license: http://dev.perl.org/licenses/
-version: 0.44
+version: 0.46
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/Makefile.PL
new/GnuPG-Interface-0.46/Makefile.PL
--- old/GnuPG-Interface-0.44/Makefile.PL 2011-03-23 23:45:20.000000000
+0100
+++ new/GnuPG-Interface-0.46/Makefile.PL 2011-12-12 17:57:17.000000000
+0100
@@ -2,14 +2,14 @@
use warnings;
use inc::Module::Install;
-for my $gpg qw(gpg gpg2) {
- my $gpg_find = "which $gpg";
- print "$gpg_find ... ";
- system($gpg_find);
- if ( $? != 0 ) {
- die "gpg (GnuPG) not found";
- } else { last }
-}
+print "which gpg ... ";
+system("which", "gpg");
+die "gpg (GnuPG) not found" if ( $? != 0 );
+
+my $output = `gpg --version`;
+die "Can't determine gpg version"
+ unless $output =~ /^gpg \(GnuPG\) (\d+\.\d+)/;
+die "gpg (GnuPG) 1.4 or later is required" unless $1 >= 1.4;
author 'Frank J. Tobin';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/SIGNATURE
new/GnuPG-Interface-0.46/SIGNATURE
--- old/GnuPG-Interface-0.44/SIGNATURE 2011-05-03 03:43:36.000000000 +0200
+++ new/GnuPG-Interface-0.46/SIGNATURE 2012-10-26 00:14:05.000000000 +0200
@@ -1,5 +1,5 @@
This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.66.
+signed via the Module::Signature module, version 0.68.
To verify the content in this distribution, first make sure you have
Module::Signature installed, then type:
@@ -15,26 +15,26 @@
Hash: SHA1
SHA1 187c2cfc1fc31d42c18d5b1653afa1a905bf266c COPYING
-SHA1 166238bf1dffc9e5a488a10b76617f995ddb6c59 ChangeLog
+SHA1 b9db27c778702df04650d3cdb6f791fca8cc727c ChangeLog
SHA1 37e4d07c43f08f41a24fd1157ab530a4a06aab37 MANIFEST
SHA1 0c5f7bda8a3ce57e27dcd7f32459d8b286f1339e MANIFEST.SKIP
-SHA1 e08d06c2ce7c20bcca459cda98496cb8ad1ebbdb META.yml
-SHA1 6b0ad3ccd9e2ed8aa1489e2951aec36236e11ff5 Makefile.PL
+SHA1 863944080648e823e852f3b58c768897a709de59 META.yml
+SHA1 7782ec3ebf4194b81b83f39f0c0f5564e0363149 Makefile.PL
SHA1 d6e32c5128419cdbfe6e6f846ff7f64fc0adac2f NEWS
SHA1 1047dc54823b1321e939274dd261d8e40febee24 README
SHA1 df07bf5a2dd74ffe4b69dff3063f68879cf9e355 THANKS
-SHA1 7305dbe2904416e28decb05396988a5d51d578be inc/Module/Install.pm
-SHA1 129960509127732258570c122042bc48615222e1 inc/Module/Install/Base.pm
-SHA1 cf3356ed9a5bd2f732527ef9e7bc5ef4458c8a93 inc/Module/Install/Can.pm
-SHA1 bf0a3e1977effc2832d7a813a76dce3f31b437b6 inc/Module/Install/Fetch.pm
-SHA1 b721c93ca5bc9a6aa863b49af15f1b1de6125935 inc/Module/Install/Makefile.pm
-SHA1 026cc0551a0ad399d195e395b46bdf842e115192 inc/Module/Install/Metadata.pm
-SHA1 5457015ea5a50e93465bf2dafa29feebd547f85b inc/Module/Install/Win32.pm
-SHA1 051e7fa8063908befa3440508d0584a2497b97db inc/Module/Install/WriteAll.pm
+SHA1 8a924add836b60fb23b25c8506d45945e02f42f4 inc/Module/Install.pm
+SHA1 2d0fad3bf255f8c1e7e1e34eafccc4f595603ddc inc/Module/Install/Base.pm
+SHA1 f0e01fff7d73cd145fbf22331579918d4628ddb0 inc/Module/Install/Can.pm
+SHA1 7328966e4fda0c8451a6d3850704da0b84ac1540 inc/Module/Install/Fetch.pm
+SHA1 b62ca5e2d58fa66766ccf4d64574f9e1a2250b34 inc/Module/Install/Makefile.pm
+SHA1 1aa925be410bb3bfcd84a16985921f66073cc1d2 inc/Module/Install/Metadata.pm
+SHA1 e4196994fa75e98bdfa2be0bdeeffef66de88171 inc/Module/Install/Win32.pm
+SHA1 c3a6d0d5b84feb3280622e9599e86247d58b0d18 inc/Module/Install/WriteAll.pm
SHA1 9a2b6c9e5434daf32bc2a3e15e25175fc49fd604 lib/GnuPG/Fingerprint.pm
SHA1 8852195e80823c93b6aed673e69433ae3ea46d26 lib/GnuPG/Handles.pm
SHA1 779e6a921fa104e8f16fd4a6d38f670074592811 lib/GnuPG/HashInit.pm
-SHA1 6112531529fce08317b03db5954739e53268b3cc lib/GnuPG/Interface.pm
+SHA1 d959f3b7feeacc017836b1652dfdc35fa75cce04 lib/GnuPG/Interface.pm
SHA1 bb75d45acb8268096348740e261812519b7258cb lib/GnuPG/Key.pm
SHA1 697b1408b404e4dff0ae553646fb3c12f821fcd4 lib/GnuPG/Options.pm
SHA1 5fbf442fc1586b88139508b838700b7a3992ced7 lib/GnuPG/PrimaryKey.pm
@@ -48,7 +48,7 @@
SHA1 367fdb308292a9c005afffef49ff9096a20a4da3 t/Fingerprint.t
SHA1 8791d014e4efd4cf11998386e1651cc4eb16dd26 t/Interface.t
SHA1 698ec633be083b7e762331f1a5106c1618c74dd3 t/MyTest.pm
-SHA1 52114a082f32bdbf284eb968afe458866854996e t/MyTestSpecific.pm
+SHA1 a3aef62cb9ec31d2d398548114685ba8c5cdeb93 t/MyTestSpecific.pm
SHA1 ccd942d9f00627253d7eb9c011116dc5671639b8 t/UserId.t
SHA1 16ac3a802f059cad9b7a0567eebe8b9599cc2551 t/clearsign.t
SHA1 fab3deb7f60a0b5aae2f92b1c39804d1a4df2848 t/decrypt.t
@@ -95,7 +95,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
-iEYEARECAAYFAk2/XcUACgkQEi9d9xCOQEY0vACfTkSFGiV+xVoJZmTywprq9hci
-wogAn1i8RF+FPQXDaQyi7NwESvG17NAa
-=xQ8R
+iEYEARECAAYFAlCJua0ACgkQMflWJZZAbqAi2gCeILIoMJtmSIWZy84mCc/R3QLu
+GhcAn3kzvFOY1WcfRT6ayUD9GoJvQ5kz
+=6FyK
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Base.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Base.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Base.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Base.pm 2012-10-26
00:14:04.000000000 +0200
@@ -4,7 +4,7 @@
use strict 'vars';
use vars qw{$VERSION};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
}
# Suspend handler for "redefined" warnings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Can.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Can.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Can.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Can.pm 2012-10-26
00:14:05.000000000 +0200
@@ -3,13 +3,12 @@
use strict;
use Config ();
-use File::Spec ();
use ExtUtils::MakeMaker ();
use Module::Install::Base ();
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -29,7 +28,7 @@
eval { require $mod; $pkg->VERSION($ver || 0); 1 };
}
-# check if we can run some command
+# Check if we can run some command
sub can_run {
my ($self, $cmd) = @_;
@@ -38,14 +37,88 @@
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
next if $dir eq '';
- my $abs = File::Spec->catfile($dir, $_[1]);
+ require File::Spec;
+ my $abs = File::Spec->catfile($dir, $cmd);
return $abs if (-x $abs or $abs = MM->maybe_command($abs));
}
return;
}
-# can we locate a (the) C compiler
+# Can our C compiler environment build XS files
+sub can_xs {
+ my $self = shift;
+
+ # Ensure we have the CBuilder module
+ $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 );
+
+ # Do we have the configure_requires checker?
+ local $@;
+ eval "require ExtUtils::CBuilder;";
+ if ( $@ ) {
+ # They don't obey configure_requires, so it is
+ # someone old and delicate. Try to avoid hurting
+ # them by falling back to an older simpler test.
+ return $self->can_cc();
+ }
+
+ # Do we have a working C compiler
+ my $builder = ExtUtils::CBuilder->new(
+ quiet => 1,
+ );
+ unless ( $builder->have_compiler ) {
+ # No working C compiler
+ return 0;
+ }
+
+ # Write a C file representative of what XS becomes
+ require File::Temp;
+ my ( $FH, $tmpfile ) = File::Temp::tempfile(
+ "compilexs-XXXXX",
+ SUFFIX => '.c',
+ );
+ binmode $FH;
+ print $FH <<'END_C';
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+int main(int argc, char **argv) {
+ return 0;
+}
+
+int boot_sanexs() {
+ return 1;
+}
+
+END_C
+ close $FH;
+
+ # Can the C compiler access the same headers XS does
+ my @libs = ();
+ my $object = undef;
+ eval {
+ local $^W = 0;
+ $object = $builder->compile(
+ source => $tmpfile,
+ );
+ @libs = $builder->link(
+ objects => $object,
+ module_name => 'sanexs',
+ );
+ };
+ my $result = $@ ? 0 : 1;
+
+ # Clean up all the build files
+ foreach ( $tmpfile, $object, @libs ) {
+ next unless defined $_;
+ 1 while unlink;
+ }
+
+ return $result;
+}
+
+# Can we locate a (the) C compiler
sub can_cc {
my $self = shift;
my @chunks = split(/ /, $Config::Config{cc}) or return;
@@ -78,4 +151,4 @@
__END__
-#line 156
+#line 236
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Fetch.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Fetch.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Fetch.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Fetch.pm 2012-10-26
00:14:05.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Makefile.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Makefile.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Makefile.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Makefile.pm 2012-10-26
00:14:05.000000000 +0200
@@ -8,7 +8,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -215,18 +215,22 @@
require ExtUtils::MakeMaker;
if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) {
- # MakeMaker can complain about module versions that include
- # an underscore, even though its own version may contain one!
- # Hence the funny regexp to get rid of it. See RT #35800
- # for details.
- my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/;
- $self->build_requires( 'ExtUtils::MakeMaker' => $v );
- $self->configure_requires( 'ExtUtils::MakeMaker' => $v );
+ # This previous attempted to inherit the version of
+ # ExtUtils::MakeMaker in use by the module author, but this
+ # was found to be untenable as some authors build releases
+ # using future dev versions of EU:MM that nobody else has.
+ # Instead, #toolchain suggests we use 6.59 which is the most
+ # stable version on CPAN at time of writing and is, to quote
+ # ribasushi, "not terminally fucked, > and tested enough".
+ # TODO: We will now need to maintain this over time to push
+ # the version up as new versions are released.
+ $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 );
+ $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 );
} else {
# Allow legacy-compatibility with 5.005 by depending on the
# most recent EU:MM that supported 5.005.
- $self->build_requires( 'ExtUtils::MakeMaker' => 6.42 );
- $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 );
+ $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 );
+ $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 );
}
# Generate the MakeMaker params
@@ -241,7 +245,6 @@
'all_from' if you prefer) in Makefile.PL.
EOT
- $DB::single = 1;
if ( $self->tests ) {
my @tests = split ' ', $self->tests;
my %seen;
@@ -412,4 +415,4 @@
__END__
-#line 541
+#line 544
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Metadata.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Metadata.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Metadata.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Metadata.pm 2012-10-26
00:14:04.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -151,15 +151,21 @@
sub install_as_vendor { $_[0]->installdirs('vendor') }
sub dynamic_config {
- my $self = shift;
- unless ( @_ ) {
- warn "You MUST provide an explicit true/false value to
dynamic_config\n";
- return $self;
+ my $self = shift;
+ my $value = @_ ? shift : 1;
+ if ( $self->{values}->{dynamic_config} ) {
+ # Once dynamic we never change to static, for safety
+ return 0;
}
- $self->{values}->{dynamic_config} = $_[0] ? 1 : 0;
+ $self->{values}->{dynamic_config} = $value ? 1 : 0;
return 1;
}
+# Convenience command
+sub static_config {
+ shift->dynamic_config(0);
+}
+
sub perl_version {
my $self = shift;
return $self->{values}->{perl_version} unless @_;
@@ -170,7 +176,7 @@
# Normalize the version
$version = $self->_perl_version($version);
- # We don't support the reall old versions
+ # We don't support the really old versions
unless ( $version >= 5.005 ) {
die "Module::Install only supports 5.005 or newer (use
ExtUtils::MakeMaker)\n";
}
@@ -515,6 +521,7 @@
'GNU Free Documentation license' => 'unrestricted', 1,
'GNU Affero General Public License' => 'open_source', 1,
'(?:Free)?BSD license' => 'bsd', 1,
+ 'Artistic license 2\.0' => 'artistic_2', 1,
'Artistic license' => 'artistic', 1,
'Apache (?:Software )?license' => 'apache', 1,
'GPL' => 'gpl', 1,
@@ -550,9 +557,9 @@
sub _extract_bugtracker {
my @links = $_[0] =~ m#L<(
- \Qhttp://rt.cpan.org/\E[^>]+|
- \Qhttp://github.com/\E[\w_]+/[\w_]+/issues|
- \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list
+ https?\Q://rt.cpan.org/\E[^>]+|
+ https?\Q://github.com/\E[\w_]+/[\w_]+/issues|
+ https?\Q://code.google.com/p/\E[\w_\-]+/issues/list
)>#gx;
my %links;
@links{@links}=();
@@ -581,7 +588,7 @@
sub requires_from {
my $self = shift;
my $content = Module::Install::_readperl($_[0]);
- my @requires = $content =~
m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg;
+ my @requires = $content =~
m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg;
while ( @requires ) {
my $module = shift @requires;
my $version = shift @requires;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/Win32.pm
new/GnuPG-Interface-0.46/inc/Module/Install/Win32.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/Win32.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/Win32.pm 2012-10-26
00:14:05.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install/WriteAll.pm
new/GnuPG-Interface-0.46/inc/Module/Install/WriteAll.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install/WriteAll.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install/WriteAll.pm 2012-10-26
00:14:05.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.00';
+ $VERSION = '1.06';
@ISA = qw{Module::Install::Base};
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/inc/Module/Install.pm
new/GnuPG-Interface-0.46/inc/Module/Install.pm
--- old/GnuPG-Interface-0.44/inc/Module/Install.pm 2011-05-03
03:43:33.000000000 +0200
+++ new/GnuPG-Interface-0.46/inc/Module/Install.pm 2012-10-26
00:14:04.000000000 +0200
@@ -31,7 +31,7 @@
# This is not enforced yet, but will be some time in the next few
# releases once we can make sure it won't clash with custom
# Module::Install extensions.
- $VERSION = '1.00';
+ $VERSION = '1.06';
# Storage for the pseudo-singleton
$MAIN = undef;
@@ -451,7 +451,7 @@
}
sub _cmp ($$) {
- _version($_[0]) <=> _version($_[1]);
+ _version($_[1]) <=> _version($_[2]);
}
# Cloned from Params::Util::_CLASS
@@ -467,4 +467,4 @@
1;
-# Copyright 2008 - 2010 Adam Kennedy.
+# Copyright 2008 - 2012 Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/lib/GnuPG/Interface.pm
new/GnuPG-Interface-0.46/lib/GnuPG/Interface.pm
--- old/GnuPG-Interface-0.44/lib/GnuPG/Interface.pm 2011-05-03
03:36:02.000000000 +0200
+++ new/GnuPG-Interface-0.46/lib/GnuPG/Interface.pm 2012-10-26
00:13:52.000000000 +0200
@@ -27,7 +27,7 @@
use GnuPG::Options;
use GnuPG::Handles;
-$VERSION = '0.44';
+$VERSION = '0.46';
has $_ => (
isa => 'Any',
@@ -120,6 +120,8 @@
= ref $args{command_args}
? @{ $args{command_args} }
: ( $args{command_args} || () );
+ unshift @command_args, "--"
+ if @command_args and $command_args[0] ne "--";
my %fhs;
foreach my $fh_name (
@@ -415,7 +417,7 @@
while (<$stdout>) {
my $line = $_;
chomp $line;
- my @fields = split ':', $line;
+ my @fields = split ':', $line, -1;
next unless @fields > 3;
my $record_type = $fields[0];
@@ -745,6 +747,25 @@
);
}
+sub search_keys( $% ) {
+ my ( $self, %args ) = @_;
+ return $self->wrap_call(
+ %args,
+ commands => ['--search-keys']
+ );
+}
+
+sub version {
+ my ( $self ) = @_;
+
+ my $out = IO::Handle->new;
+ my $handles = GnuPG::Handles->new( stdout => $out );
+ $self->wrap_call( commands => [ '--version' ], handles => $handles );
+ my $line = $out->getline;
+ $line =~ /(\d+\.\d+\.\d+)/;
+ return $1;
+}
+
sub test_default_key_passphrase() {
my ($self) = @_;
@@ -928,6 +949,8 @@
=item send_keys( % )
+=item search_keys( % )
+
These methods each correspond directly to or are very similar
to a GnuPG command described in L<gpg>. Each of these methods
takes a hash, which currently must contain a key of B<handles>
@@ -1009,6 +1032,10 @@
the B<passphrase> data member, and the default
key specified in the B<options> data member.
+=item version()
+
+Returns the version of GnuPG that GnuPG::Interface is running.
+
=back
@@ -1097,7 +1124,7 @@
$gnupg->options->hash_init( armor => 1,
recipients => [ '[email protected]',
'0xABCD1234' ],
- meta_interactive( 0 ),
+ meta_interactive => 0 ,
);
=head2 Encrypting
@@ -1202,9 +1229,9 @@
close $input;
close $cipher_file;
- my @plaintext = <$output>; # reading the output
- my @error_output = <$error>; # reading the error
- my @status_info = <$status_fh> # read the status info
+ my @plaintext = <$output>; # reading the output
+ my @error_output = <$error>; # reading the error
+ my @status_info = <$status_fh>; # read the status info
# clean up...
close $output;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/GnuPG-Interface-0.44/t/MyTestSpecific.pm
new/GnuPG-Interface-0.46/t/MyTestSpecific.pm
--- old/GnuPG-Interface-0.44/t/MyTestSpecific.pm 2010-05-10
16:42:35.000000000 +0200
+++ new/GnuPG-Interface-0.46/t/MyTestSpecific.pm 2011-12-12
17:57:41.000000000 +0100
@@ -38,19 +38,7 @@
texts file_match
);
-
-for my $gpg qw(gpg gpg2) {
- my $gpg_find = "which $gpg";
- print "$gpg_find ... ";
- system($gpg_find);
- if ( $? != 0 ) {
- die "gpg (GnuPG) not found";
- } else { $gpg_program = $gpg; last }
-}
-
-$gnupg = GnuPG::Interface->new( gnupg_call => $gpg_program,
- passphrase => 'test',
- );
+$gnupg = GnuPG::Interface->new( passphrase => 'test' );
$gnupg->options->hash_init( homedir => 'test',
armor => 1,
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]