2149b12eb2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Socket-SSL?expand=0&rev=67
75 lines
2.5 KiB
RPMSpec
75 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-IO-Socket-SSL
|
|
#
|
|
# Copyright (c) 2013 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-IO-Socket-SSL
|
|
Version: 1.962
|
|
Release: 0
|
|
%define cpan_name IO-Socket-SSL
|
|
Summary: Nearly transparent SSL encapsulation for IO::Socket::INET.
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/IO-Socket-SSL/
|
|
Source: http://www.cpan.org/authors/id/S/SU/SULLR/%{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Net::SSLeay) >= 1.46
|
|
Requires: perl(Net::SSLeay) >= 1.46
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module provides an interface to SSL sockets, similar to other
|
|
IO::Socket modules. Because of that, it can be used to make existing
|
|
programs using IO::Socket::INET or similar modules to provide SSL
|
|
encryption without much effort. IO::Socket::SSL supports all the extra
|
|
features that one needs to write a full-featured SSL client or server
|
|
application: multiple SSL contexts, cipher selection, certificate
|
|
verification, Server Name Indication (SNI), Next Protocol Negotiation
|
|
(NPN), SSL version selection and more.
|
|
|
|
If you have never used SSL before, you should read the appendix labelled
|
|
'Using SSL' before attempting to use this module.
|
|
|
|
If you want to use SSL with non-blocking sockets and/or within an event
|
|
loop please read very carefully the sections about non-blocking I/O and
|
|
polling of SSL sockets.
|
|
|
|
If you are trying to use it with threads see the BUGS section.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc BUGS Changes example README README.Win32 util
|
|
|
|
%changelog
|