forked from pool/perl-IO-Socket-SSL
		
	- updated to 2.081
   see /usr/share/doc/packages/perl-IO-Socket-SSL/Changes
  2.081 2023/01/25
  - new function set_msg_callback for user defined callback on each SSL message
  - showcase function in example/ssl_client.pl and example/ssl_server.pl for
    computing JA3S/JA3 fingerprints
  - fix tracing added in 2.076 to no longer include SSL3_RT_HEADER (noise)
  2.080 2023/01/18
  - move certs into t/ so that distributions like CentOS don't install the
    test certificates as part of the documentation any longer.
  2.079 2023/01/16
  - properly extract IPv6 address for verification from PeerAddr if not explicitly
    given as SSL_verifycn_name.
    https://github.com/noxxi/p5-io-socket-ssl/issues/123
OBS-URL: https://build.opensuse.org/request/show/1061401
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Socket-SSL?expand=0&rev=142
		
	
		
			
				
	
	
		
			99 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package perl-IO-Socket-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-Socket-SSL
 | 
						|
Name:           perl-IO-Socket-SSL
 | 
						|
Version:        2.081
 | 
						|
Release:        0
 | 
						|
License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
						|
Summary:        Nearly transparent SSL encapsulation for IO::Socket::INET
 | 
						|
URL:            https://metacpan.org/release/%{cpan_name}
 | 
						|
Source0:        https://cpan.metacpan.org/authors/id/S/SU/SULLR/%{cpan_name}-%{version}.tar.gz
 | 
						|
Source1:        cpanspec.yml
 | 
						|
# PATCH-FIX-UPSTREAM (bsc1200295) perl-IO-Socket-SSL doesn't follow system "PROFILE=SYSTEM" openSSL ciphers - https://git.centos.org/rpms/perl-IO-Socket-SSL/blob/e0b0ae04f5cdb41b1f29cb7d76c23abba7ac35e9/f/SOURCES/IO-Socket-SSL-2.066-use-system-default-cipher-list.patch
 | 
						|
Patch0:         perl-IO-Socket-SSL-use-system-default-cipher-list.patch
 | 
						|
BuildArch:      noarch
 | 
						|
BuildRequires:  perl
 | 
						|
BuildRequires:  perl-macros
 | 
						|
#BuildRequires:  perl(Mozilla::CA)
 | 
						|
BuildRequires:  perl(Net::SSLeay) >= 1.46
 | 
						|
#Requires:       perl(Mozilla::CA)
 | 
						|
Requires:       perl(Net::SSLeay) >= 1.46
 | 
						|
%{perl_requires}
 | 
						|
 | 
						|
%description
 | 
						|
IO::Socket::SSL makes using SSL/TLS much easier by wrapping the necessary
 | 
						|
functionality into the familiar IO::Socket interface and providing secure
 | 
						|
defaults whenever possible. This way, existing applications can be made
 | 
						|
SSL-aware without much effort, at least if you do blocking I/O and don't
 | 
						|
use select or poll.
 | 
						|
 | 
						|
But, under the hood, SSL is a complex beast. So there are lots of methods
 | 
						|
to make it do what you need if the default behavior is not adequate.
 | 
						|
Because it is easy to inadvertently introduce critical security bugs or
 | 
						|
just hard to debug problems, I would recommend studying the following
 | 
						|
documentation carefully.
 | 
						|
 | 
						|
The documentation consists of the following parts:
 | 
						|
 | 
						|
* * "Essential Information About SSL/TLS"
 | 
						|
 | 
						|
* * "Basic SSL Client"
 | 
						|
 | 
						|
* * "Basic SSL Server"
 | 
						|
 | 
						|
* * "Common Usage Errors"
 | 
						|
 | 
						|
* * "Common Problems with SSL"
 | 
						|
 | 
						|
* * "Using Non-Blocking Sockets"
 | 
						|
 | 
						|
* * "Advanced Usage"
 | 
						|
 | 
						|
* * "Integration Into Own Modules"
 | 
						|
 | 
						|
* * "Description Of Methods"
 | 
						|
 | 
						|
Additional documentation can be found in
 | 
						|
 | 
						|
* * IO::Socket::SSL::Intercept - Doing Man-In-The-Middle with SSL
 | 
						|
 | 
						|
* * IO::Socket::SSL::Utils - Useful functions for certificates etc
 | 
						|
 | 
						|
%prep
 | 
						|
%autosetup  -n %{cpan_name}-%{version} -p1
 | 
						|
 | 
						|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
						|
 | 
						|
%build
 | 
						|
perl Makefile.PL INSTALLDIRS=vendor
 | 
						|
%make_build
 | 
						|
 | 
						|
%check
 | 
						|
make test
 | 
						|
 | 
						|
%install
 | 
						|
%perl_make_install
 | 
						|
%perl_process_packlist
 | 
						|
%perl_gen_filelist
 | 
						|
 | 
						|
%files -f %{name}.files
 | 
						|
%doc BUGS Changes docs example README README.Win32
 | 
						|
 | 
						|
%changelog
 |