4084ca1
Name:		perl-IO-Socket-SSL
f7be345
Version:	1.65
90348cd
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
5caac13
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
4084ca1
BuildArch:	noarch
99c05d2
BuildRequires:	perl(Carp)
8d02977
BuildRequires:	perl(constant)
8d02977
BuildRequires:	perl(Exporter)
99c05d2
BuildRequires:	perl(ExtUtils::MakeMaker)
8d02977
BuildRequires:	perl(IO::Socket)
99c05d2
BuildRequires:	perl(IO::Socket::INET6)
99c05d2
BuildRequires:	perl(Net::LibIDN)
99c05d2
BuildRequires:	perl(Net::SSLeay) >= 1.21
408353c
BuildRequires:	procps
5caac13
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}
722e930
722e930
%build
5caac13
perl Makefile.PL INSTALLDIRS=vendor
5caac13
make %{?_smp_mflags}
722e930
722e930
%install
5caac13
rm -rf %{buildroot}
fa689fe
make pure_install DESTDIR=%{buildroot}
5caac13
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
a551f76
%{_fixperms} %{buildroot}
722e930
722e930
%check
5caac13
make test
722e930
722e930
%clean
5caac13
rm -rf %{buildroot}
722e930
722e930
%files
722e930
%doc BUGS Changes README docs/ certs/ example/ util/
722e930
%{perl_vendorlib}/IO/
a50dfc8
%{_mandir}/man3/IO::Socket::SSL.3pm*
722e930
722e930
%changelog
f7be345
* Mon Apr 16 2012 Paul Howarth <paul@city-fan.org> - 1.65-1
f7be345
- Update to 1.65
f7be345
  - added NPN (Next Protocol Negotiation) support (CPAN RT#76223)
f7be345
126ee08
* Sat Apr  7 2012 Paul Howarth <paul@city-fan.org> - 1.64-1
126ee08
- Update to 1.64
126ee08
  - ignore die from within eval to make tests more stable on Win32
126ee08
    (CPAN RT#76147)
126ee08
  - clarify some behavior regarding hostname verfication
126ee08
- Drop patch for t/dhe.t, no longer needed
126ee08
25ec101
* Wed Mar 28 2012 Paul Howarth <paul@city-fan.org> - 1.62-1
25ec101
- Update to 1.62
25ec101
  - small fix to last version
25ec101
c823e4f
* Tue Mar 27 2012 Paul Howarth <paul@city-fan.org> - 1.61-1
c823e4f
- Update to 1.61
c823e4f
  - call CTX_set_session_id_context so that server's session caching works with
c823e4f
    client certificates too (CPAN RT#76053)
c823e4f
8d02977
* Tue Mar 20 2012 Paul Howarth <paul@city-fan.org> - 1.60-1
8d02977
- Update to 1.60
8d02977
  - don't make blocking readline if socket was set nonblocking, but return as
8d02977
    soon no more data are available (CPAN RT#75910)
8d02977
  - fix BUG section about threading so that it shows package as thread safe
8d02977
    as long as Net::SSLeay ≥ 1.43 is used (CPAN RT#75749)
8d02977
- BR: perl(constant), perl(Exporter) and perl(IO::Socket)
8d02977
3e7b01b
* Thu Mar  8 2012 Paul Howarth <paul@city-fan.org> - 1.59-1
3e7b01b
- Update to 1.59
3e7b01b
  - if SSLv2 is not supported by Net::SSLeay set SSL_ERROR with useful message
3e7b01b
    when attempting to use it
3e7b01b
  - modify constant declarations so that 5.6.1 should work again
3e7b01b
- Drop %%defattr, redundant since rpm 4.4
3e7b01b
99c05d2
* Mon Feb 27 2012 Paul Howarth <paul@city-fan.org> - 1.58-1
99c05d2
- Update to 1.58
99c05d2
  - fix t/dhe.t for openssl 1.0.1 beta by forcing TLSv1, so that it does not
99c05d2
    complain about the too small RSA key, which it should not use anyway; this
99c05d2
    workaround is not applied for older openssl versions, where it would cause
99c05d2
    failures (CPAN RT#75165)
99c05d2
- Add patch to fiddle the openssl version number in the t/dhe.t workaround
99c05d2
  because the OPENSSL_VERSION_NUMBER cannot be trusted in Fedora
99c05d2
- One buildreq per line for readability
99c05d2
- Drop redundant buildreq perl(Test::Simple)
99c05d2
- Always run full test suite
99c05d2
fa689fe
* Wed Feb 22 2012 Paul Howarth <paul@city-fan.org> - 1.56-1
fa689fe
- Update to 1.56
fa689fe
  - add automatic or explicit (via SSL_hostname) SNI support, needed for
fa689fe
    multiple SSL hostnames with the same IP (currently only supported for the
fa689fe
    client)
fa689fe
- Use DESTDIR rather than PERL_INSTALL_ROOT
fa689fe
- No need to delete empty directories from buildroot
fa689fe
4ac7986
* Mon Feb 20 2012 Paul Howarth <paul@city-fan.org> - 1.55-1
4ac7986
- Update to 1.55
4ac7986
  - work around IO::Socket's work around for systems returning EISCONN etc. on
4ac7986
    connect retry for non-blocking sockets by clearing $! if SUPER::connect
4ac7986
    returned true (CPAN RT#75101)
4ac7986
5ceb5a1
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 1.54-1
5ceb5a1
- Update to 1.54
5ceb5a1
  - return 0 instead of undef in SSL_verify_callback to fix uninitialized
5ceb5a1
    warnings (CPAN RT#73629)
5ceb5a1
f032fb5
* Mon Dec 12 2011 Paul Howarth <paul@city-fan.org> - 1.53-1
f032fb5
- Update to 1.53
f032fb5
  - kill child in t/memleak_bad_handshake.t if test fails (CPAN RT#73146)
f032fb5
f26c71c
* Wed Dec  7 2011 Paul Howarth <paul@city-fan.org> - 1.52-1
f26c71c
- Update to 1.52
f26c71c
  - fix for t/nonblock.t hangs on AIX (CPAN RT#72305)
f26c71c
  - disable t/memleak_bad_handshake.t on AIX, because it might hang
f26c71c
    (CPAN RT#72170)
f26c71c
  - fix syntax error in t/memleak_bad_handshake.t
f26c71c
edb47ab
* Fri Oct 28 2011 Paul Howarth <paul@city-fan.org> - 1.49-1
edb47ab
- Update to 1.49
edb47ab
  - another regression for readline fix: this time it failed to return lines
edb47ab
    at EOF that don't end with newline - extended t/readline.t to catch this
edb47ab
    case and the fix for 1.48
edb47ab
fa11cf0
* Wed Oct 26 2011 Paul Howarth <paul@city-fan.org> - 1.48-1
fa11cf0
- Update to 1.48
fa11cf0
  - further fix for readline fix in 1.45: if the pending data were false (like
fa11cf0
    '0'), it failed to read the rest of the line (CPAN RT#71953)
fa11cf0
771cc6e
* Fri Oct 21 2011 Paul Howarth <paul@city-fan.org> - 1.47-1
771cc6e
- Update to 1.47
771cc6e
  - fix for 1.46 - check for mswin32 needs to be /i
771cc6e
a5d7b7b
* Tue Oct 18 2011 Paul Howarth <paul@city-fan.org> - 1.46-1
a5d7b7b
- Update to 1.46
a5d7b7b
  - skip signals test on Windows
a5d7b7b
90348cd
* Thu Oct 13 2011 Paul Howarth <paul@city-fan.org> - 1.45-1
90348cd
- Update to 1.45
90348cd
  - fix readline to continue when getting interrupt waiting for more data
90348cd
- BR: perl(Carp)
90348cd
Petr Sabata 4a6b2a4
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.44-2
Petr Sabata 4a6b2a4
- Perl mass rebuild
Petr Sabata 4a6b2a4
13f80c7
* Fri May 27 2011 Paul Howarth <paul@city-fan.org> - 1.44-1
13f80c7
- Update to 1.44
13f80c7
  - fix invalid call to inet_pton in verify_hostname_of_cert when identity
13f80c7
    should be verified as ipv6 address because it contains a colon
13f80c7
33f897d
* Wed May 11 2011 Paul Howarth <paul@city-fan.org> - 1.43-1
33f897d
- Update to 1.43
33f897d
  - add SSL_create_ctx_callback to have a way to adjust context on creation
33f897d
    (CPAN RT#67799)
33f897d
  - describe problem of fake memory leak because of big session cache and how
33f897d
    to fix it (CPAN RT#68073)
33f897d
  - fix t/nonblock.t
33f897d
  - stability improvements for t/inet6.t
33f897d
546e8d9
* Tue May 10 2011 Paul Howarth <paul@city-fan.org> - 1.41-1
546e8d9
- Update to 1.41
546e8d9
  - fix issue in stop_SSL where it did not issue a shutdown of the SSL
546e8d9
    connection if it first received the shutdown from the other side
546e8d9
  - try to make t/nonblock.t more reliable, at least report the real cause of
546e8d9
    SSL connection errors
546e8d9
- No longer need to re-code docs to UTF-8
546e8d9
5caac13
* Mon May  2 2011 Paul Howarth <paul@city-fan.org> - 1.40-1
5caac13
- Update to 1.40
5caac13
  - fix in example/async_https_server
5caac13
  - get IDN support from URI (CPAN RT#67676)
5caac13
- Nobody else likes macros for commands
5caac13
099a308
* Thu Mar  3 2011 Paul Howarth <paul@city-fan.org> - 1.39-1
099a308
- Update to 1.39
099a308
  - fixed documentation of http verification: wildcards in cn is allowed
099a308
e2b100e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38-2
e2b100e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e2b100e
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.