File perl-Crypt-SSLeay.spec of Package perl-Crypt-SSLeay
#
# spec file for package perl-Crypt-SSLeay (Version 0.57)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: perl module that provides LWP https support
Version: 0.57
Release: 1
Source: Crypt-SSLeay-%{version}.tar.gz
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
# ---------------------------------------------------------------------------
%build
export CRYPT_SSLEAY_DEFAULT=/usr
perl Makefile.PL
make
# ---------------------------------------------------------------------------
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%if %suse_version > 820
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%else
install -d $RPM_BUILD_ROOT/%{perl_archlib}
make PREFIX=$RPM_BUILD_ROOT/usr \
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
install
install -d $RPM_BUILD_ROOT/var/adm/perl-modules
cat $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod | sed "s@$RPM_BUILD_ROOT@@g" > $RPM_BUILD_ROOT/var/adm/perl-modules/%{name}
cd $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Crypt/SSLeay
sed "s@$RPM_BUILD_ROOT@@g" < .packlist | sort -u > .packlist.tmp
mv .packlist.tmp .packlist
%endif
%files
%defattr(-,root,root)
%if %suse_version > 820
%dir %{perl_vendorarch}/Crypt
%dir %{perl_vendorarch}/Crypt/SSLeay
%dir %{perl_vendorarch}/Net
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/Net/SSL.pm
%dir %{perl_vendorarch}/auto/Crypt
%{perl_vendorarch}/auto/Crypt/SSLeay
%else
%{perl_sitearch}/Crypt/SSLeay
%{perl_sitearch}/Crypt/SSLeay.pm
%{perl_sitearch}/auto/Crypt/SSLeay
%endif
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README certs
%doc %{_mandir}/man3/*
%changelog
* 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].
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Mon Sep 01 2003 ug@suse.de
- initial package