File perl-IO-Async-SSL.spec of Package perl-IO-Async-SSL

#
# spec file for package perl-IO-Async-SSL
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define cpan_name IO-Async-SSL
Name:           perl-IO-Async-SSL
Version:        0.25
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Use SSL/TLS with IO::Async
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Future) >= 0.33
BuildRequires:  perl(IO::Async::Handle) >= 0.29
BuildRequires:  perl(IO::Async::Loop) >= 0.66
BuildRequires:  perl(IO::Async::OS)
BuildRequires:  perl(IO::Async::Protocol::Stream)
BuildRequires:  perl(IO::Async::Stream) >= 0.59
BuildRequires:  perl(IO::Async::Test) >= 0.68
BuildRequires:  perl(IO::Socket::SSL) >= 2.003
BuildRequires:  perl(Module::Build) >= 0.400400
BuildRequires:  perl(Test::Identity)
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(Future) >= 0.33
Requires:       perl(IO::Async::Handle) >= 0.29
Requires:       perl(IO::Async::Loop) >= 0.66
Requires:       perl(IO::Async::Protocol::Stream)
Requires:       perl(IO::Async::Stream) >= 0.59
Requires:       perl(IO::Socket::SSL) >= 2.003
%{perl_requires}

%description
This module extends existing IO::Async classes with extra methods to allow
the use of SSL or TLS-based connections using IO::Socket::SSL. It does not
directly provide any methods or functions of its own.

Primarily, it provides 'SSL_connect' and 'SSL_listen', which yield
'IO::Socket::SSL'-upgraded socket handles or IO::Async::Stream instances,
and two forms of 'SSL_upgrade' to upgrade an existing TCP connection to use
SSL.

As an additional convenience, if the 'SSL_verify_mode' and 'SSL_ca_*'
options are omitted, the module will attempt to provide them by querying
the result of IO::Socket::SSL's 'default_ca' function. Otherwise, the
module will print a warning and set 'SSL_VERIFY_NONE' instead.

%prep
%autosetup  -n %{cpan_name}-%{version}

%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%doc Changes examples README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by