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

#
# spec file for package perl-Crypt-SSLeay (Version 0.57)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           perl-Crypt-SSLeay
BuildRequires:  openssl-devel
License:        Artistic License
Group:          Development/Libraries/Perl
Requires:       openssl
Requires:       perl = %{perl_version}
AutoReqProv:    on
Summary:        A perl module that provides LWP https support
Version:        0.57
Release:        42
Source:         Crypt-SSLeay-%{version}.tar.bz2
Patch:          Crypt-SSLeay-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This perl module provides support for the https protocol under LWP, so
that a LWP::UserAgent can make https GET & HEAD & POST requests. Please
see perldoc LWP for more information on POST requests.

The Crypt::SSLeay package contains Net::SSL, which is automatically
loaded by LWP::Protocol::https on https requests, and provides the
necessary SSL glue for that module to work via these deprecated
modules:



Authors:
--------
    Gisle Aas
    Joshua Chamas

%prep
%setup -n Crypt-SSLeay-%{version}
%patch
chmod a-x certs/*pem

%build
export CRYPT_SSLEAY_DEFAULT=/usr
perl Makefile.PL
make

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%files
%defattr(-,root,root)
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/Net/SSL.pm
%dir %{perl_vendorarch}/Net/
%dir %{perl_vendorarch}/auto/Crypt
%{perl_vendorarch}/auto/Crypt/SSLeay
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README certs
%{_mandir}/man3/*

%changelog
* Tue Jan 13 2009 mrueckert@suse.de
- fix rpmlint warnings
  - repackage as tar.bz2
  - make certs nonexecutable
  - remove outdated conditionals on suse_version 820
- enable testsuite (bnc#465698)
* Thu Apr 03 2008 ug@suse.de
- version to 0.57
- Honour both $ENV{NO_PROXY} and $ENV{no_proxy} in
  Net::SSL::proxy_connect_helper. (Bug #29371 reported by Jan Dubois).
- $@ construction used in Net::SSL::connect was messed up, which could
  lead to sub-optimal error reporting. (Bug #29372 reported by Jan
  Dubois).
- Ensure no proxification is used in t/01-connect.t (which might be the
  reason for all the spurious smoke failures). Bug #29373 reported by,
  you guessed it, Jan Dubois).
- Silence a dubious fopen() warning in SSLeay.xs.
- s/Netware/NetWare/ in Net/SSL.pm platform check
- Improvements to Makefile.PL for dealing with platforms where openssl
  is installed with ./include and ./lib as sibling directories rather
  than child directories. This should allow the code to configure and
  build "out of the box" on Solaris (and probably other proprietary
  platforms).
- Don't carp in LICENSE key addition code in Makefile.PL
* Mon Jul 16 2007 ug@suse.de
- version update to 0.56
  - too many changes. See Changes file for details
* Wed Oct 25 2006 ug@suse.de
- openssl-devel removed from "Requires"
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Nov 12 2005 schwab@suse.de
- Fix crash due to API change in SSL library [#129911].
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Mon Sep 01 2003 ug@suse.de
- initial package
openSUSE Build Service is sponsored by