Change-Id: Ibd74db0b98d17f93eb37cc9ed555c533a9235297
#
################################################################
-use Net::SSL ();
BEGIN {
- $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0,
unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
}
my $ua = LWP::UserAgent->new(
agent => "openSUSE build script",
- timeout => 42);
+ timeout => 42,
+ ssl_opts => {
+ verify_hostname => 1
+});
for my $url (@ARGV) {
my $original = $url;
$url = URI->new($url);
}
}
- $ua->env_proxy if $url->scheme ne 'https';
+ $ua->env_proxy if $url->scheme ne 'https';
my $dest = "$dir/".basename($url->path).".tmp";
unlink($dest); # just in case
my $retry = 3;
Requires: tar
Requires: perl(LWP::Protocol::https)
Requires: perl(LWP::UserAgent)
-Requires: perl(Crypt::SSLeay)
+Requires: perl(IO::Socket::SSL)
Requires: perl(XML::Parser)
Requires: perl(Archive::Tar)
Requires: tizen-qemu-arm-static >= 2016.12.31
-Requires: perl-Crypt-SSLeay >= 0.64-tizen20130308
%if 0%{?fedora_version} || 0%{?suse_version} == 1220 || 0%{?centos_version}
Requires: rpm-build