File perl-Crypt-SSLeay.spec of Package perl-Crypt-SSLeay

# spec file for package perl-Crypt-SSLeay
# 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

Name:           perl-Crypt-SSLeay
%define cpan_name Crypt-SSLeay
Summary:        OpenSSL support for LWP
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Version:        0.64
Release:        0
Patch:          %{cpan_name}-0.58.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  openssl-devel
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(MIME::Base64)
Requires:       openssl
Requires:       perl(MIME::Base64)
BuildRequires:  perl(LWP::Protocol::https) >= 6.02
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Try::Tiny) >= 0.09
Requires:       perl(LWP::Protocol::https) >= 6.02

This Perl module provides support for the HTTPS protocol under LWP, to
allow an 'LWP::UserAgent' object to perform GET, HEAD and POST requests.
Please see LWP for more information on POST requests.

The 'Crypt::SSLeay' package provides 'Net::SSL', which is loaded by
'LWP::Protocol::https' for https requests and provides the necessary SSL

This distribution also makes following deprecated modules available:


Work on Crypt::SSLeay has been continued only to provide https support for
the LWP (libwww-perl) libraries.

    This module was originally written by Gisle Aas, and was subsequently
    maintained by Joshua Chamas, David Landgren, brian d foy and Sinan Unur.

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

%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__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} -f $RPM_BUILD_ROOT%perl_vendorarch/auto/Crypt/SSLeay/.packlist
# remove perllocal.pod file
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod

%files -f %{name}.files
%doc certs Changes eg TODO

openSUSE Build Service is sponsored by