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

# spec file for package perl-IO-Socket-SSL
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-IO-Socket-SSL
%define cpan_name IO-Socket-SSL
Summary:        Nearly transparent SSL encapsulation for IO::Socket::INET
Version:        1.38
Release:        1
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Net::LibIDN)
BuildRequires:  perl(Net::SSLeay) >= 1.21
BuildRequires:  perl(Scalar::Util)
Requires:       perl(Net::SSLeay) >= 1.21
Requires:       perl(Scalar::Util)
Recommends:     perl(IO::Socket::INET6)
Recommends:     perl(Net::LibIDN)

This module is a true drop-in replacement for IO::Socket::INET that uses
SSL to encrypt data before it is transferred to a remote server or client.
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, and SSL version selection. As
an extra bonus, it works perfectly with mod_perl.

If you have never used SSL before, you should read the appendix labelled
'Using SSL' before attempting to use this module.

If you have used this module before, read on, as versions 0.93 and above
have several changes from the previous IO::Socket::SSL versions (especially
see the note about return values).

If you are using non-blocking sockets read on, as version 0.98 added better
support for non-blocking.

If you are trying to use it with threads see the BUGS section.

    Steffen Ullrich, <steffen at> is the current maintainer.
    Peter Behroozi, <behrooz at>
    Marko Asplund, <marko.asplund at> original author of IO::Socket::SSL

%setup -q -n %{cpan_name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%{__make} test

### since 11.4 perl_process_packlist
### removes .packlist, perllocal.pod files
%if 0%{?suse_version} > 1130
# do not perl_process_packlist
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod

%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc BUGS Changes README example util