Accepting request 65864 from devel:languages:perl
Accepted submit request 65864 from user babelworx OBS-URL: https://build.opensuse.org/request/show/65864 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-LWP-Protocol-https?expand=0&rev=1
This commit is contained in:
commit
a33f850215
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
31
LWP-Protocol-https-6.02-systemca.diff
Normal file
31
LWP-Protocol-https-6.02-systemca.diff
Normal file
@ -0,0 +1,31 @@
|
||||
Index: LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
|
||||
===================================================================
|
||||
--- LWP-Protocol-https-6.02.orig/lib/LWP/Protocol/https.pm
|
||||
+++ LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
|
||||
@@ -21,25 +21,7 @@ sub _extra_sock_opts
|
||||
}
|
||||
if ($ssl_opts{SSL_verify_mode}) {
|
||||
unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
|
||||
- eval {
|
||||
- require Mozilla::CA;
|
||||
- };
|
||||
- if ($@) {
|
||||
- if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
|
||||
- $@ = <<'EOT';
|
||||
-Can't verify SSL peers without knowning which Certificate Authorities to trust
|
||||
-
|
||||
-This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
|
||||
-envirionment variable or by installing the Mozilla::CA module.
|
||||
-
|
||||
-To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
|
||||
-envirionment variable to 0. If you do this you can't be sure that you
|
||||
-communicate with the expected peer.
|
||||
-EOT
|
||||
- }
|
||||
- die $@;
|
||||
- }
|
||||
- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
|
||||
+ $ssl_opts{SSL_ca_path} = '/etc/ssl/certs';
|
||||
}
|
||||
}
|
||||
$self->{ssl_opts} = \%ssl_opts;
|
3
LWP-Protocol-https-6.02.tar.gz
Normal file
3
LWP-Protocol-https-6.02.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c50388fde02a4c3eb98f9cfb74fa4422a6136a4244ccafb54355927736b14a78
|
||||
size 3443
|
11
perl-LWP-Protocol-https.changes
Normal file
11
perl-LWP-Protocol-https.changes
Normal file
@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 29 12:06:43 UTC 2011 - vcizek@novell.com
|
||||
|
||||
- initial package 6.02
|
||||
* created by cpanspec 1.78.03
|
||||
|
||||
This module used to be bundled with the libwww-perl, but it was unbundled in
|
||||
v6.02 in order to be able to declare its dependencies properly for the CPAN
|
||||
tool-chain. Applications that need https support can just declare their
|
||||
dependency on LWP::Protocol::https and will no longer need to know what
|
||||
underlying modules to install.
|
84
perl-LWP-Protocol-https.spec
Normal file
84
perl-LWP-Protocol-https.spec
Normal file
@ -0,0 +1,84 @@
|
||||
#
|
||||
# spec file for package perl-LWP-Protocol-https (Version 6.02)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: perl-LWP-Protocol-https
|
||||
Version: 6.02
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
%define cpan_name LWP-Protocol-https
|
||||
Summary: Provide https support for LWP::UserAgent
|
||||
Url: http://search.cpan.org/dist/LWP-Protocol-https/
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
# patch for using system certificates
|
||||
Patch0: %{cpan_name}-%{version}-systemca.diff
|
||||
BuildRequires: perl(IO::Socket::SSL) >= 1.38
|
||||
BuildRequires: perl(LWP::UserAgent) >= 6.02
|
||||
BuildRequires: perl(Net::HTTPS) >= 6
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Requires: perl(IO::Socket::SSL) >= 1.38
|
||||
Requires: perl(LWP::UserAgent) >= 6.02
|
||||
Requires: perl(Net::HTTPS) >= 6
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The LWP::Protocol::https module provide support for using https schemed
|
||||
URLs with LWP. This module is a plug-in to the LWP protocol handling, so
|
||||
you don't use it directly. Once the module is installed LWP is able to
|
||||
access sites using HTTP over SSL/TLS.
|
||||
|
||||
If hostname verification is requested by LWP::UserAgent's 'ssl_opts', and
|
||||
neither 'SSL_ca_file' nor 'SSL_ca_path' is set, then 'SSL_ca_file' is
|
||||
implied to be the one provided by Mozilla::CA. If the Mozilla::CA module
|
||||
isn't available SSL requests will fail. Either install this module, set up
|
||||
an alternative 'SSL_ca_file' or disable hostname verification.
|
||||
|
||||
This module used to be bundled with the libwww-perl, but it was unbundled
|
||||
in v6.02 in order to be able to declare its dependencies properly for the
|
||||
CPAN tool-chain. Applications that need https support can just declare
|
||||
their dependency on LWP::Protocol::https and will no longer need to know
|
||||
what underlying modules to install.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
# tests will fail without network
|
||||
#%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user