2011-04-04 13:32:39 +02:00
|
|
|
#
|
2011-04-04 13:32:52 +02:00
|
|
|
# spec file for package perl-LWP-Protocol-https
|
2011-04-04 13:32:39 +02:00
|
|
|
#
|
2023-08-14 17:50:24 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-04-04 13:32:39 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-10-15 19:41:16 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-04 13:32:39 +02:00
|
|
|
#
|
|
|
|
|
2011-04-04 13:32:52 +02:00
|
|
|
|
2023-08-14 17:50:24 +02:00
|
|
|
%define cpan_name LWP-Protocol-https
|
2011-04-04 13:32:39 +02:00
|
|
|
Name: perl-LWP-Protocol-https
|
2023-08-14 17:50:24 +02:00
|
|
|
Version: 6.110.0
|
2012-03-01 17:24:54 +01:00
|
|
|
Release: 0
|
2023-08-14 17:50:24 +02:00
|
|
|
%define cpan_version 6.11
|
2018-09-14 10:33:43 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-08-14 17:50:24 +02:00
|
|
|
Summary: Provide https support for LWP::UserAgent
|
2020-10-15 19:41:16 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-08-14 17:50:24 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-23 08:21:57 +02:00
|
|
|
Source1: cpanspec.yml
|
2020-10-15 19:41:16 +02:00
|
|
|
Patch0: %{cpan_name}-6.09-systemca.diff
|
|
|
|
BuildArch: noarch
|
2011-04-04 13:32:39 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-08-14 17:50:24 +02:00
|
|
|
BuildRequires: perl(IO::Socket::SSL) >= 1.970
|
2020-10-15 19:41:16 +02:00
|
|
|
BuildRequires: perl(IO::Socket::SSL::Utils)
|
|
|
|
BuildRequires: perl(LWP::Protocol::http)
|
2015-04-23 08:21:57 +02:00
|
|
|
BuildRequires: perl(LWP::UserAgent) >= 6.06
|
2012-03-01 17:24:54 +01:00
|
|
|
BuildRequires: perl(Net::HTTPS) >= 6
|
2020-12-18 11:36:22 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2023-08-14 17:50:24 +02:00
|
|
|
BuildRequires: perl(Test::Needs) >= 0.002010
|
2018-09-14 10:33:43 +02:00
|
|
|
BuildRequires: perl(Test::RequiresInternet)
|
2023-08-14 17:50:24 +02:00
|
|
|
Requires: perl(IO::Socket::SSL) >= 1.970
|
2020-10-15 19:41:16 +02:00
|
|
|
Requires: perl(LWP::Protocol::http)
|
2015-04-23 08:21:57 +02:00
|
|
|
Requires: perl(LWP::UserAgent) >= 6.06
|
2011-04-04 13:32:39 +02:00
|
|
|
Requires: perl(Net::HTTPS) >= 6
|
2023-08-14 17:50:24 +02:00
|
|
|
Provides: perl(LWP::Protocol::https) = 6.110.0
|
|
|
|
Provides: perl(LWP::Protocol::https::Socket) = 6.110.0
|
|
|
|
%define __perllib_provides /bin/true
|
2011-04-04 13:32:39 +02:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2012-03-01 17:24:54 +01:00
|
|
|
The LWP::Protocol::https module provides support for using https schemed
|
2011-04-04 13:32:39 +02:00
|
|
|
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
|
2023-08-14 17:50:24 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2011-04-04 13:32:39 +02:00
|
|
|
|
|
|
|
%build
|
2018-09-14 10:33:43 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-08-14 17:50:24 +02:00
|
|
|
%make_build
|
2011-04-04 13:32:39 +02:00
|
|
|
|
|
|
|
%check
|
2020-10-15 19:41:16 +02:00
|
|
|
make test
|
2011-04-04 13:32:39 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2020-10-15 19:41:16 +02:00
|
|
|
%doc Changes CONTRIBUTING.md
|
|
|
|
%license LICENSE
|
2011-04-04 13:32:39 +02:00
|
|
|
|
|
|
|
%changelog
|