722e930
#
722e930
# Rebuild switch:
4084ca1
#  --with sessiontests		enable session tests
722e930
#
722e930
4084ca1
Name:		perl-IO-Socket-SSL
e665b64
Version:	1.38
eefbde6
Release:	1%{?dist}
4084ca1
Summary:	Perl library for transparent SSL
4084ca1
Group:		Development/Libraries
4084ca1
License:	GPL+ or Artistic
4084ca1
URL:		http://search.cpan.org/dist/IO-Socket-SSL/
4084ca1
Source0:	http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz
4084ca1
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4084ca1
BuildArch:	noarch
a2d6c29
BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::Simple)
9cf5eac
BuildRequires:	perl(IO::Socket::INET6), perl(Net::LibIDN), perl(Net::SSLeay) >= 1.21
408353c
BuildRequires:	procps
4084ca1
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
a2d6c29
Requires:	perl(Net::LibIDN)
722e930
722e930
%description
722e930
This module is a true drop-in replacement for IO::Socket::INET that
722e930
uses SSL to encrypt data before it is transferred to a remote server
722e930
or client. IO::Socket::SSL supports all the extra features that one
722e930
needs to write a full-featured SSL client or server application:
722e930
multiple SSL contexts, cipher selection, certificate verification, and
722e930
SSL version selection. As an extra bonus, it works perfectly with
722e930
mod_perl.
722e930
722e930
%prep
722e930
%setup -q -n IO-Socket-SSL-%{version}
4084ca1
for f in README SSL.pm; do
4084ca1
	/usr/bin/iconv -f iso-8859-1 -t utf-8 -o $f{.utf8,}; %{__mv} $f{.utf8,}
722e930
done
722e930
722e930
%build
722e930
%{__perl} Makefile.PL INSTALLDIRS=vendor
4084ca1
%{__make} %{?_smp_mflags}
722e930
722e930
%install
4084ca1
%{__rm} -rf %{buildroot}
4084ca1
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
4084ca1
/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
a551f76
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
a551f76
%{_fixperms} %{buildroot}
722e930
722e930
%check
722e930
# Avoid running the session tests (spawns servers, requires 3 free ports
722e930
# and possibly manual configuration).
9cf5eac
%{?!_with_sessiontests:%{__mv} t/sessions.t t/sessions.t.disable}
4084ca1
%{__make} test
722e930
722e930
%clean
4084ca1
%{__rm} -rf %{buildroot}
722e930
722e930
%files
722e930
%defattr(-,root,root,-)
722e930
%doc BUGS Changes README docs/ certs/ example/ util/
722e930
%{perl_vendorlib}/IO/
a50dfc8
%{_mandir}/man3/IO::Socket::SSL.3pm*
722e930
722e930
%changelog
e665b64
* Tue Jan 18 2011 Paul Howarth <paul@city-fan.org> - 1.38-1
e665b64
- Update to 1.38
e665b64
  - fixed wildcards_in_cn setting for http, wrongly set in 1.34 to 1 instead of
e665b64
    anywhere (CPAN RT#64864)
e665b64
f86243a
* Fri Dec 10 2010 Paul Howarth <paul@city-fan.org> - 1.37-1
f86243a
- Update to 1.37
f86243a
  - don't complain about invalid certificate locations if user explicitly set
f86243a
    SSL_ca_path and SSL_ca_file to undef: assume that user knows what they are
f86243a
    doing and will work around the problems themselves (CPAN RT#63741)
f86243a
bff4888
* Thu Dec  9 2010 Paul Howarth <paul@city-fan.org> - 1.36-1
bff4888
- Update to 1.36
bff4888
  - update documentation for SSL_verify_callback based on CPAN RT#63743 and
bff4888
    CPAN RT#63740
bff4888
bd90bed
* Mon Dec  6 2010 Paul Howarth <paul@city-fan.org> - 1.35-1
69a39b9
- Update to 1.35 (addresses CVE-2010-4334)
bd90bed
  - if verify_mode is not VERIFY_NONE and the ca_file/ca_path cannot be
bd90bed
    verified as valid, it will no longer fall back to VERIFY_NONE but throw an
bd90bed
    error (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606058)
bd90bed
eefbde6
* Tue Nov  2 2010 Paul Howarth <paul@city-fan.org> - 1.34-1
eefbde6
- Update to 1.34
eefbde6
  - schema http for certificate verification changed to wildcards_in_cn=1
eefbde6
  - if upgrading socket from inet to ssl fails due to handshake problems, the
eefbde6
    socket gets downgraded back again but is still open (CPAN RT#61466)
eefbde6
  - deprecate kill_socket: just use close()
eefbde6
5fc4b44
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.33-2
5fc4b44
- Mass rebuild with perl-5.12.0
5fc4b44
390ab98
* Wed Mar 17 2010 Paul Howarth <paul@city-fan.org> - 1.33-1
390ab98
- Update to 1.33
390ab98
  - attempt to make t/memleak_bad_handshake.t more stable
390ab98
  - fix hostname checking: only check an IP against subjectAltName GEN_IPADD
390ab98
a551f76
* Tue Feb 23 2010 Paul Howarth <paul@city-fan.org> - 1.32-1
a551f76
- Update to 1.32 (die in Makefile.PL if Scalar::Util has no dualvar support)
a551f76
- Use %%{_fixperms} macro instead of our own %%{__chmod} incantation
a551f76
3e49d43
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.31-2
a551f76
- Rebuild against perl 5.10.1
3e49d43
7b32276
* Sun Sep 27 2009 Paul Howarth <paul@city-fan.org> - 1.31-1
7b32276
- Update to 1.31 (see Changes for details)
7b32276
408353c
* Thu Aug 20 2009 Paul Howarth <paul@city-fan.org> - 1.30-1
408353c
- Update to 1.30 (fix memleak when SSL handshake failed)
408353c
- Add buildreq procps needed for memleak test
408353c
fbcd92f
* Mon Jul 27 2009 Paul Howarth <paul@city-fan.org> - 1.27-1
fbcd92f
- Update to 1.27
fbcd92f
  - various regex fixes for i18n and service names
fbcd92f
  - fix warnings from perl -w (CPAN RT#48131)
fbcd92f
  - improve handling of errors from Net::ssl_write_all
fbcd92f
e16220e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-2
e16220e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e16220e
b6031e4
* Sat Jul  4 2009 Paul Howarth <paul@city-fan.org> - 1.26-1
b6031e4
- Update to 1.26 (verify_hostname_of_cert matched only the prefix for the
b6031e4
  hostname when no wildcard was given, e.g. www.example.org matched against a
fbcd92f
  certificate with name www.exam in it [#509819])
b6031e4
a50dfc8
* Fri Jul  3 2009 Paul Howarth <paul@city-fan.org> - 1.25-1
a50dfc8
- Update to 1.25 (fix t/nonblock.t for OS X 10.5 - CPAN RT#47240)
a50dfc8
08c3d74
* Thu Apr  2 2009 Paul Howarth <paul@city-fan.org> - 1.24-1
08c3d74
- Update to 1.24 (add verify hostname scheme ftp, same as http)
08c3d74
cfe8fbe
* Wed Feb 25 2009 Paul Howarth <paul@city-fan.org> - 1.23-1
cfe8fbe
- Update to 1.23 (complain when no certificates are provided)
cfe8fbe
dc5335b
* Sat Jan 24 2009 Paul Howarth <paul@city-fan.org> - 1.22-1
dc5335b
- Update to latest upstream version: 1.22
dc5335b
591ac20
* Thu Jan 22 2009 Paul Howarth <paul@city-fan.org> - 1.20-1
591ac20
- Update to latest upstream version: 1.20
591ac20
9cf5eac
* Tue Nov 18 2008 Paul Howarth <paul@city-fan.org> - 1.18-1
9cf5eac
- Update to latest upstream version: 1.18
9cf5eac
- BR: perl(IO::Socket::INET6) for extra test coverage
9cf5eac
43c3bd4
* Mon Oct 13 2008 Paul Howarth <paul@city-fan.org> - 1.17-1
43c3bd4
- Update to latest upstream version: 1.17
43c3bd4
274abb4
* Mon Sep 22 2008 Paul Howarth <paul@city-fan.org> - 1.16-1
274abb4
- Update to latest upstream version: 1.16
274abb4
a2d6c29
* Sat Aug 30 2008 Paul Howarth <paul@city-fan.org> - 1.15-1
a2d6c29
- Update to latest upstream version: 1.15
a2d6c29
- Add buildreq and req for perl(Net::LibIDN) to avoid croaking when trying to
a2d6c29
  verify an international name against a certificate
a2d6c29
4149234
* Wed Jul 16 2008 Paul Howarth <paul@city-fan.org> - 1.14-1
4149234
- Update to latest upstream version: 1.14
4149234
- BuildRequire perl(Net::SSLeay) >= 1.21
4149234
f4442d1
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-4
f4442d1
- Rebuild for perl 5.10 (again)
f4442d1
52e30cc
* Thu Jan 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-3
a2d6c29
- Rebuild for new perl
52e30cc
4084ca1
* Wed Nov 28 2007 Paul Howarth <paul@city-fan.org> - 1.12-2
4084ca1
- Cosmetic spec changes suiting new maintainer's preferences
4084ca1
629eb3a
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 1.12-1
629eb3a
- Update to latest upstream version: 1.12
629eb3a
- Fix license tag
629eb3a
- Add BuildRequires for ExtUtils::MakeMaker and Test::Simple
629eb3a
- Fix package review issues:
629eb3a
- Source URL
629eb3a
- Resolves: bz#226264
629eb3a
33ba1b8
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.02-1.1
a2d6c29
- Correct license tag
a2d6c29
- Add BR: perl(ExtUtils::MakeMaker)
33ba1b8
e847dca
* Sat Dec 02 2006 Robin Norwood <rnorwood@redhat.com> - 1.02-1
e847dca
- Upgrade to latest CPAN version: 1.02
e847dca
7e7f983
* Mon Sep 18 2006 Warren Togami <wtogami@redhat.com> - 1.01-1
7e7f983
- 1.01 bug fixes (#206782)
7e7f983
aea3889
* Sun Aug 13 2006 Warren Togami <wtogami@redhat.com> - 0.998-1
aea3889
- 0.998 with more important fixes
aea3889
d6a2148
* Tue Aug 01 2006 Warren Togami <wtogami@redhat.com> - 0.994-1
d6a2148
- 0.994 important bugfixes (#200860)
d6a2148
f2aaba7
* Tue Jul 18 2006 Warren Togami <wtogami@redhat.com> - 0.991-1
f2aaba7
- 0.991
f2aaba7
722e930
* Wed Jul 12 2006 Warren Togami <wtogami@redhat.com> - 0.97-3
a2d6c29
- Import into FC6
722e930
722e930
* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.97-2
722e930
- Rebuild for FC5 (perl 5.8.8).
722e930
- Rebuild switch: "--with sessiontests".
722e930
722e930
* Mon Jul 18 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.97-1
722e930
- 0.97.
722e930
- Convert docs to UTF-8, drop some unuseful ones.
722e930
722e930
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.96-4
a2d6c29
- Rebuilt
722e930
722e930
* Tue Oct 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.96-3
722e930
- Disable session test suite even if Net::SSLeay >= 1.26 is available.
722e930
722e930
* Wed Jul  7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.96-0.fdr.2
722e930
- Bring up to date with current fedora.us Perl spec template.
722e930
- Include examples in docs.
722e930
722e930
* Sat May  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.96-0.fdr.1
722e930
- Update to 0.96.
722e930
- Reduce directory ownership bloat.
722e930
- Require perl(:MODULE_COMPAT_*).
722e930
722e930
* Fri Oct 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.95-0.fdr.1
722e930
- First build.