diff -Nru libnet-stomp-perl-0.45/Build.PL libnet-stomp-perl-0.46/Build.PL --- libnet-stomp-perl-0.45/Build.PL 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/Build.PL 2014-01-14 12:52:14.000000000 +0000 @@ -12,5 +12,9 @@ 'IO::Select' => '0', 'Class::Accessor::Fast' => '0', }, + recommends => { + 'IO::Socket::IP' => '0.20', + 'IO::Socket::SSL' => '1.75', + }, ); $build->create_build_script; diff -Nru libnet-stomp-perl-0.45/CHANGES libnet-stomp-perl-0.46/CHANGES --- libnet-stomp-perl-0.45/CHANGES 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/CHANGES 2014-01-14 12:52:14.000000000 +0000 @@ -1,4 +1,7 @@ Revision history for Perl module Net::Stomp: +0.46 Tue Jan 14 12:21:43 GMT 2014 + - Recommend modules required for IPv6 support (Dagfinn Ilmari Mannsåker) + 0.45 Wed Mar 14 10:25:35 GMT 2012 - reconnect on fork() (Gianni Ceccarelli) diff -Nru libnet-stomp-perl-0.45/META.json libnet-stomp-perl-0.46/META.json --- libnet-stomp-perl-0.45/META.json 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/META.json 2014-01-14 12:52:14.000000000 +0000 @@ -1,10 +1,13 @@ { "abstract" : "A Streaming Text Orientated Messaging Protocol Client", "author" : [ - "Leon Brocard ,\nThom May ,\nMichael S. Fischer ,\nAsh Berlin " + "Leon Brocard ,", + "Thom May ,", + "Michael S. Fischer ,", + "Ash Berlin " ], "dynamic_config" : 1, - "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110930", + "generated_by" : "Module::Build version 0.4007, CPAN::Meta::Converter version 2.132140", "license" : [ "perl_5" ], @@ -16,25 +19,28 @@ "prereqs" : { "configure" : { "requires" : { - "Module::Build" : "0.38" + "Module::Build" : "0.40" } }, "runtime" : { + "recommends" : { + "IO::Socket::IP" : "0.20", + "IO::Socket::SSL" : "1.75" + }, "requires" : { - "Class::Accessor::Fast" : 0, - "IO::Select" : 0, - "IO::Socket::INET" : 0 + "Class::Accessor::Fast" : "0", + "IO::Select" : "0", + "IO::Socket::INET" : "0" } } }, "provides" : { "Net::Stomp" : { "file" : "lib/Net/Stomp.pm", - "version" : "0.45" + "version" : "0.46" }, "Net::Stomp::Frame" : { - "file" : "lib/Net/Stomp/Frame.pm", - "version" : 0 + "file" : "lib/Net/Stomp/Frame.pm" } }, "release_status" : "stable", @@ -43,5 +49,5 @@ "http://dev.perl.org/licenses/" ] }, - "version" : "0.45" + "version" : "0.46" } diff -Nru libnet-stomp-perl-0.45/META.yml libnet-stomp-perl-0.46/META.yml --- libnet-stomp-perl-0.45/META.yml 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/META.yml 2014-01-14 12:52:14.000000000 +0000 @@ -1,12 +1,15 @@ --- abstract: 'A Streaming Text Orientated Messaging Protocol Client' author: - - "Leon Brocard ,\nThom May ,\nMichael S. Fischer ,\nAsh Berlin " + - 'Leon Brocard ,' + - 'Thom May ,' + - 'Michael S. Fischer ,' + - 'Ash Berlin ' build_requires: {} configure_requires: - Module::Build: 0.38 + Module::Build: 0.40 dynamic_config: 1 -generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110930' +generated_by: 'Module::Build version 0.4007, CPAN::Meta::Converter version 2.132140' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -15,14 +18,16 @@ provides: Net::Stomp: file: lib/Net/Stomp.pm - version: 0.45 + version: 0.46 Net::Stomp::Frame: file: lib/Net/Stomp/Frame.pm - version: 0 +recommends: + IO::Socket::IP: 0.20 + IO::Socket::SSL: 1.75 requires: Class::Accessor::Fast: 0 IO::Select: 0 IO::Socket::INET: 0 resources: license: http://dev.perl.org/licenses/ -version: 0.45 +version: 0.46 diff -Nru libnet-stomp-perl-0.45/Makefile.PL libnet-stomp-perl-0.46/Makefile.PL --- libnet-stomp-perl-0.45/Makefile.PL 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/Makefile.PL 2014-01-14 12:52:14.000000000 +0000 @@ -1,4 +1,4 @@ -# Note: this file was auto-generated by Module::Build::Compat version 0.3800 +# Note: this file was auto-generated by Module::Build::Compat version 0.4007 use ExtUtils::MakeMaker; WriteMakefile ( diff -Nru libnet-stomp-perl-0.45/debian/changelog libnet-stomp-perl-0.46/debian/changelog --- libnet-stomp-perl-0.45/debian/changelog 2012-03-15 21:13:20.000000000 +0000 +++ libnet-stomp-perl-0.46/debian/changelog 2014-01-20 20:19:27.000000000 +0000 @@ -1,3 +1,18 @@ +libnet-stomp-perl (0.46-1) unstable; urgency=low + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ Florian Schlichting ] + * Import Upstream version 0.46 + * Email change: Florian Schlichting -> fsfs@debian.org + * Recommend modules required for IPv6 support + * Update years of packaging copyright + * Declare compliance with Debian Policy 3.9.5 + + -- Florian Schlichting Mon, 20 Jan 2014 21:19:16 +0100 + libnet-stomp-perl (0.45-1) unstable; urgency=low * Imported Upstream version 0.45. diff -Nru libnet-stomp-perl-0.45/debian/control libnet-stomp-perl-0.46/debian/control --- libnet-stomp-perl-0.45/debian/control 2012-03-15 21:13:20.000000000 +0000 +++ libnet-stomp-perl-0.46/debian/control 2014-01-20 20:18:04.000000000 +0000 @@ -1,23 +1,31 @@ Source: libnet-stomp-perl Section: perl Priority: optional -Build-Depends: debhelper (>= 8) -Build-Depends-Indep: perl, libclass-accessor-perl, - libtest-pod-perl, libtest-pod-coverage-perl +Build-Depends: debhelper (>= 8), + perl (>= 5.17.1) | libmodule-build-perl (>= 0.400000) +Build-Depends-Indep: perl, + libclass-accessor-perl, + libio-socket-ip-perl (>= 0.20), + libio-socket-ssl-perl (>= 1.75), + libtest-pod-perl, + libtest-pod-coverage-perl Maintainer: Debian Perl Group Uploaders: Krzysztof Krzyżaniak (eloy) , Sebastien Aperghis-Tramoni , Ansgar Burchardt , - Florian Schlichting -Standards-Version: 3.9.3 -Vcs-Git: git://git.debian.org/pkg-perl/packages/libnet-stomp-perl.git + Florian Schlichting +Standards-Version: 3.9.5 +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnet-stomp-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnet-stomp-perl.git -Homepage: http://search.cpan.org/dist/Net-Stomp/ +Homepage: https://metacpan.org/release/Net-Stomp/ Package: libnet-stomp-perl Architecture: all -Depends: ${misc:Depends}, ${perl:Depends}, libclass-accessor-perl -Description: Perl module providing a Streaming Text Orientated Messaging Protocol Client +Depends: ${misc:Depends}, ${perl:Depends}, + libclass-accessor-perl +Recommends: libio-socket-ip-perl (>= 0.20), + libio-socket-ssl-perl (>= 1.75) +Description: Perl module providing a Streaming Text Orientated Messaging Protocol client Net::Stomp allows you to write a Stomp client. Stomp is the Streaming Text Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and Represented by the symbol :ttmp). It's a simple and easy to implement diff -Nru libnet-stomp-perl-0.45/debian/copyright libnet-stomp-perl-0.46/debian/copyright --- libnet-stomp-perl-0.45/debian/copyright 2012-03-15 21:13:20.000000000 +0000 +++ libnet-stomp-perl-0.46/debian/copyright 2014-01-20 20:16:41.000000000 +0000 @@ -1,6 +1,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Ash Berlin -Source: http://search.cpan.org/dist/Net-Stomp/ +Source: https://metacpan.org/release/Net-Stomp/ Upstream-Name: Net-Stomp Files: * @@ -16,7 +16,7 @@ 2009, Krzysztof Krzyżaniak (eloy) 2008-2009, Sebastien Aperghis-Tramoni 2010, Ansgar Burchardt - 2012, Florian Schlichting + 2012-2014, Florian Schlichting License: Artistic or GPL-1+ License: Artistic diff -Nru libnet-stomp-perl-0.45/debian/watch libnet-stomp-perl-0.46/debian/watch --- libnet-stomp-perl-0.45/debian/watch 2012-03-15 21:13:20.000000000 +0000 +++ libnet-stomp-perl-0.46/debian/watch 2013-01-27 18:00:59.000000000 +0000 @@ -1,4 +1,4 @@ # format version number, currently 3; this line is compulsory! version=3 # URL to the package page followed by a regex to search -http://search.cpan.org/dist/Net-Stomp/ .*/Net-Stomp-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/Net-Stomp/ .*/Net-Stomp-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ diff -Nru libnet-stomp-perl-0.45/lib/Net/Stomp.pm libnet-stomp-perl-0.46/lib/Net/Stomp.pm --- libnet-stomp-perl-0.45/lib/Net/Stomp.pm 2012-03-14 10:38:22.000000000 +0000 +++ libnet-stomp-perl-0.46/lib/Net/Stomp.pm 2014-01-14 12:52:14.000000000 +0000 @@ -1,12 +1,11 @@ package Net::Stomp; use strict; use warnings; -use IO::Socket::INET; use IO::Select; use Net::Stomp::Frame; use Carp; use base 'Class::Accessor::Fast'; -our $VERSION = '0.45'; +our $VERSION = '0.46'; __PACKAGE__->mk_accessors( qw( _cur_host failover hostname hosts port select serial session_id socket ssl @@ -70,6 +69,7 @@ return $self; } +my $socket_class; sub _get_connection { my $self = shift; if (my $hosts = $self->hosts) { @@ -96,7 +96,9 @@ %sockopts = ( %sockopts, %{ $self->ssl_options || {} } ); $socket = IO::Socket::SSL->new(%sockopts); } else { - $socket = IO::Socket::INET->new(%sockopts); + $socket_class ||= eval { require IO::Socket::IP; IO::Socket::IP->VERSION('0.20'); "IO::Socket::IP" } + || do { require IO::Socket::INET; "IO::Socket::INET" }; + $socket = $socket_class->new(%sockopts); binmode($socket) if $socket; } die "Error connecting to " . $self->hostname . ':' . $self->port . ": $@"