dfateyev pushed to perl-Net-SSLGlue (el6). "perl-Net-SSLGlue: fix el6 warning"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From e1324af86338385031edeb309c5c8184e5a1885b Mon Sep 17 00:00:00 2001
From: Denis Fateyev <denis@xxxxxxxxxxx>
Date: Fri, 1 Apr 2016 00:14:53 +0600
Subject: perl-Net-SSLGlue: fix el6 warning

---
 perl-Net-SSLGlue-https-version.patch | 12 ++++++++++++
 perl-Net-SSLGlue.spec                |  8 +++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 perl-Net-SSLGlue-https-version.patch

diff --git a/perl-Net-SSLGlue-https-version.patch b/perl-Net-SSLGlue-https-version.patch
new file mode 100644
index 0000000..96c4fda
--- /dev/null
+++ b/perl-Net-SSLGlue-https-version.patch
@@ -0,0 +1,12 @@
+--- lib/Net/SSLGlue/LWP.pm	2015-04-28 12:23:10.000000000 +0600
++++ lib/Net/SSLGlue/LWP.pm	2016-03-31 23:46:12.947143916 +0600
+@@ -11,7 +11,8 @@
+ my $use_existent;
+ BEGIN {
+     require LWP::Protocol::https;
+-    $use_existent = $LWP::Protocol::https::VERSION >= 6.06
++    $use_existent = defined($LWP::Protocol::https::VERSION)
++	&& $LWP::Protocol::https::VERSION >= 6.06
+ 	&& $LWP::UserAgent::VERSION >= 6.06;
+     if ($use_existent) {
+ 	my $oc = $Net::HTTPS::SSL_SOCKET_CLASS ||
diff --git a/perl-Net-SSLGlue.spec b/perl-Net-SSLGlue.spec
index 6023b42..33cc64c 100644
--- a/perl-Net-SSLGlue.spec
+++ b/perl-Net-SSLGlue.spec
@@ -1,6 +1,6 @@
 Name:           perl-Net-SSLGlue
 Version:        1.055
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Add/extend SSL support for common perl modules
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -10,6 +10,8 @@ Source0:        http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/Net-SSLGlue-%{
 # Remove interactive question
 # Only minimal test which doesnt requires Internet connexion
 Patch0:         perl-Net-SSLGlue-test.patch
+# Fixing module version check
+Patch1:         perl-Net-SSLGlue-https-version.patch
 
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -53,6 +55,7 @@ these modules. Currently is support for the following modules available:
 %setup -q -n Net-SSLGlue-%{version}
 
 %patch0 -p0
+%patch1 -p0
 
 
 %build
@@ -80,6 +83,9 @@ make test
 
 
 %changelog
+* Wed Mar 30 2016 Denis Fateyev <denis@xxxxxxxxxxx> - 1.055-4
+- Fix warning, adding LWP::Protocol::https::VERSION check.
+
 * Mon Feb 29 2016 Denis Fateyev <denis@xxxxxxxxxxx> - 1.055-3
 - Spec cleanup, fix package epel dependencies.
 
-- 
cgit v0.12


	http://pkgs.fedoraproject.org/cgit/perl-Net-SSLGlue.git/commit/?h=el6&id=e1324af86338385031edeb309c5c8184e5a1885b
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux