ef0a049
Name:		perl-Net-SSLeay
3271923
Version:	1.48
3271923
Release:	1%{?dist}
ef0a049
Summary:	Perl extension for using OpenSSL
ef0a049
Group:		Development/Libraries
ef0a049
License:	OpenSSL
ef0a049
URL:		http://search.cpan.org/dist/Net-SSLeay/
1e2b5d5
Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz
e042be3
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
4297dde
BuildRequires:	openssl, openssl-devel
056ddeb
BuildRequires:	perl(AutoLoader)
5af1726
BuildRequires:	perl(Carp)
056ddeb
BuildRequires:	perl(Exporter)
7c6314a
BuildRequires:	perl(ExtUtils::MakeMaker)
6a58efa
BuildRequires:	perl(MIME::Base64)
056ddeb
BuildRequires:	perl(Socket)
7c6314a
BuildRequires:	perl(Test::Exception)
7c6314a
# Test::Kwalitee => Module::CPANTS::Analyze => Net::HTTP => IO::Socket::SSL => Net::SSLeay
21741bc
# Net::SSLeay in RHEL-7 cannot BR: Test::Kwalitee from EPEL-7
21741bc
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
7c6314a
BuildRequires:	perl(Test::Kwalitee)
7c6314a
%endif
7c6314a
BuildRequires:	perl(Test::NoWarnings)
7c6314a
BuildRequires:	perl(Test::Pod)
f27f8d1
BuildRequires:	perl(Test::Pod::Coverage)
6a58efa
BuildRequires:	perl(Test::Warn)
7c6314a
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fa1d7f7
a3bb1c6
# Don't "provide" private Perl libs or the redundant unversioned perl(Net::SSLeay) provide
a3bb1c6
%global __provides_exclude ^(perl\\(Net::SSLeay\\)$|SSLeay\\.so)
6a59982
fa1d7f7
%description
1d8b1e5
This module offers some high level convenience functions for accessing
fa1d7f7
web pages on SSL servers (for symmetry, same API is offered for
fa1d7f7
accessing http servers, too), a sslcat() function for writing your own
7c63ac1
clients, and finally access to the SSL API of SSLeay/OpenSSL package
fa1d7f7
so you can write servers or clients for more complicated applications.
fa1d7f7
fa1d7f7
%prep
ef0a049
%setup -q -n Net-SSLeay-%{version}
fab18de
3271923
# Fix permissions in examples to avoid bogus doc-file dependencies
e042be3
chmod -c 644 examples/*
fa1d7f7
a3bb1c6
# Remove redundant unversioned provide if we don't have rpm 4.9 or later
a3bb1c6
%global provfilt /bin/sh -c "%{__perl_provides} | grep -Fvx 'perl(Net::SSLeay)'"
a3bb1c6
%define __perl_provides %{provfilt}
a3bb1c6
fa1d7f7
%build
e042be3
PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
4941c92
	INSTALLDIRS=vendor \
4941c92
	OPTIMIZE="%{optflags}"
e042be3
make %{?_smp_mflags}
fa1d7f7
fa1d7f7
%install
e042be3
rm -rf %{buildroot}
056ddeb
make pure_install DESTDIR=%{buildroot}
e042be3
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
e042be3
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
056ddeb
%{_fixperms} %{buildroot}
fa1d7f7
7c63ac1
# Remove script we don't want packaged
7c63ac1
rm -f %{buildroot}%{perl_vendorarch}/Net/ptrtstrun.pl
7c63ac1
fa1d7f7
%check
48ad409
make test
fa1d7f7
fa1d7f7
%clean
e042be3
rm -rf %{buildroot}
fa1d7f7
fa1d7f7
%files
4297dde
%doc Changes Credits QuickRef README examples/
fa1d7f7
%{perl_vendorarch}/auto/Net/
f27f8d1
%dir %{perl_vendorarch}/Net/
f27f8d1
%{perl_vendorarch}/Net/SSLeay/
f27f8d1
%{perl_vendorarch}/Net/SSLeay.pm
f27f8d1
%doc %{perl_vendorarch}/Net/SSLeay.pod
f27f8d1
%{_mandir}/man3/Net::SSLeay.3pm*
f27f8d1
%{_mandir}/man3/Net::SSLeay::Handle.3pm*
fa1d7f7
fa1d7f7
%changelog
3271923
* Wed Apr 25 2012 Paul Howarth <paul@city-fan.org> - 1.48-1
3271923
- update to 1.48
3271923
  - removed unneeded Debian_CPANTS.txt from MANIFEST
3271923
  - fixed incorrect documentation about the best way to call CTX_set_options
3271923
  - fixed problem that caused "Undefined subroutine utf8::encode" in
3271923
    t/local/33_x509_create_cert.t (on perl 5.6.2)
3271923
  - in examples and pod documentation, changed #!/usr/local/bin/perl to
3271923
    #!/usr/bin/perl
3271923
  - t/local/06_tcpecho.t now tries a number of ports to bind to until
3271923
    successful
3271923
- no longer need to fix shellbangs in examples
3271923
21741bc
* Thu Apr 19 2012 Paul Howarth <paul@city-fan.org> - 1.47-3
21741bc
- simplify Test::Kwalitee conditional
21741bc
e2b5365
* Thu Apr 19 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.47-2
e2b5365
- make module Kwalitee conditional
e2b5365
2bbbe67
* Wed Apr  4 2012 Paul Howarth <paul@city-fan.org> - 1.47-1
2bbbe67
- update to 1.47
2bbbe67
  - fixed overlong lines and spelling errors in pod
2bbbe67
  - fixed extra "garbage" files in 1.46 tarball
2bbbe67
  - fixed incorrect fail reports on some 64 bit platforms
2bbbe67
  - fix to avoid FAIL reports from cpantesters with missing openssl
2bbbe67
  - use my_snprintf from ppport.h to prevent link failures with perl 5.8 and
2bbbe67
    earlier when compiled with MSVC
2bbbe67
4297dde
* Tue Apr  3 2012 Paul Howarth <paul@city-fan.org> - 1.46-1
4297dde
- update to 1.46 (see Changes file for details)
4297dde
- BR: openssl as well as openssl-devel, needed for building
4297dde
- no longer need help to find openssl
4297dde
- upstream no longer shipping TODO
4297dde
- drop %%defattr, redundant since rpm 4.4
4297dde
f27f8d1
* Sat Feb 25 2012 Paul Howarth <paul@city-fan.org> - 1.45-1
f27f8d1
- update to 1.45 (see Changes file for full details)
f27f8d1
  - added thread safety and dynamic locking, which should complete thread
f27f8d1
    safety work, making Net::SSLeay completely thread-safe
f27f8d1
  - lots of improved documentation
f27f8d1
- BR: perl(Test::Pod::Coverage)
f27f8d1
- install Net/SSLeay.pod as %%doc
f27f8d1
056ddeb
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.42-2
f27f8d1
- use DESTDIR rather than PERL_INSTALL_ROOT
f27f8d1
- use %%{_fixperms} macro rather than our own chmod incantation
056ddeb
- BR: perl(AutoLoader), perl(Exporter), perl(Socket)
056ddeb
1173552
* Mon Oct  3 2011 Paul Howarth <paul@city-fan.org> - 1.42-1
1173552
- update to 1.42
1173552
  - fixed incorrect documentation of how to enable CRL checking
1173552
  - fixed incorrect letter in Sebastien in Credits
1173552
  - changed order of the Changes file to be reverse chronological
1173552
  - fixed a compile error when building on Windows with MSVC6
1173552
- drop UTF8 patch, no longer needed
1173552
5af1726
* Sun Sep 25 2011 Paul Howarth <paul@city-fan.org> - 1.41-1
5af1726
- update to 1.41
5af1726
  - fixed incorrect const signatures for 1.0 that were causing warnings; now
5af1726
    have clean compile with 0.9.8a through 1.0.0
5af1726
- BR: perl(Carp)
5af1726
df7ee41
* Fri Sep 23 2011 Paul Howarth <paul@city-fan.org> - 1.40-1
df7ee41
- update to 1.40
df7ee41
  - fixed incorrect argument type in call to SSL_set1_param
df7ee41
  - fixed a number of issues with pointer sizes; removed redundant pointer cast
df7ee41
    tests from t/
df7ee41
  - added Perl version requirements to SSLeay.pm
df7ee41
e9fab83
* Wed Sep 21 2011 Paul Howarth <paul@city-fan.org> - 1.39-1
e9fab83
- update to 1.39
e9fab83
  - downgraded Module::Install to 0.93 since 1.01 was causing problems in the
e9fab83
    Makefile
e9fab83
8024750
* Fri Sep 16 2011 Paul Howarth <paul@city-fan.org> - 1.38-1
8024750
- update to 1.38
8024750
  - fixed a problem with various symbols that only became available in OpenSSL
8024750
    0.9.8 such as X509_VERIFY_PARAM and X509_POLICY_NODE, causing build
8024750
    failures with older versions of OpenSSL (CPAN RT#71013)
8024750
1e2b5d5
* Fri Sep 16 2011 Paul Howarth <paul@city-fan.org> - 1.37-1
1e2b5d5
- update to 1.37
1e2b5d5
  - added X509_get_fingerprint
1e2b5d5
  - added support for SSL_CTX_set1_param, SSL_set1_param and selected
1e2b5d5
    X509_VERIFY_PARAM_* OBJ_* functions
1e2b5d5
  - fixed the prototype for randomize()
1e2b5d5
  - fixed an uninitialized value warning in $Net::SSLeay::proxyauth
1e2b5d5
  - allow net-ssleay to compile if SSLV2 is not present
1e2b5d5
  - fixed a problem where sslcat (and possibly other functions) expect RSA
1e2b5d5
    keys and will not load DSA keys for client certificates
1e2b5d5
  - removed SSL_CTX_v2_new and SSLv2_method() for OpenSSL 1.0 and later
1e2b5d5
  - added CTX_use_PKCS12_file
1e2b5d5
- this release by MIKEM => update source URL
1e2b5d5
Petr Sabata f385203
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.36-7
Petr Sabata f385203
- Perl mass rebuild
Petr Sabata f385203
e042be3
* Thu Jul 14 2011 Paul Howarth <paul@city-fan.org> - 1.36-6
7c6314a
- BR: perl(Test::Kwalitee) if we're not bootstrapping
7c6314a
- explicitly BR: pkgconfig
74f72ac
- use a patch rather than a scripted iconv to fix the character encoding
a3bb1c6
- modernize provides filter
48ad409
- stop running the tests in verbose mode
e042be3
- nobody else likes macros for commands
e042be3
27ce80b
* Wed Jul 13 2011 Iain Arnell <iarnell@gmail.com> - 1.36-5
6a58efa
- drop obsolete BRs Array::Compare, Sub::Uplevel, Tree::DAG_Node
6a58efa
cd4e1ff
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-4
27ce80b
- rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cd4e1ff
9b57934
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.36-3
27ce80b
- rebuild to fix problems with vendorarch/lib (#661697)
9b57934
d265de2
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.36-2
27ce80b
- mass rebuild with perl-5.12.0
d265de2
1ff4cef
* Sun Jan 31 2010 Paul Howarth <paul@city-fan.org> - 1.36-1
1ff4cef
- update to 1.36 (see Changes for details)
1ff4cef
- drop svn patches
1ff4cef
7fb48d7
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.35-8
7fb48d7
- rebuild against perl 5.10.1
7fb48d7
fab18de
* Sat Aug 22 2009 Paul Howarth <paul@city-fan.org> - 1.35-7
fab18de
- update to svn trunk (rev 252), needed due to omission of MD2 functionality
fab18de
  from OpenSSL 1.0.0 (CPAN RT#48916)
fab18de
4669061
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.35-6
4669061
- rebuilt with new openssl
4669061
6a3726a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.35-5
fab18de
- rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6a3726a
6a59982
* Sun Mar  8 2009 Paul Howarth <paul@city-fan.org> - 1.35-4
6a59982
- filter out unwanted provides for perl shared objects
6a59982
- run tests in verbose mode
6a59982
c2fa66e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.35-3
6a59982
- rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c2fa66e
f52b578
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.35-2
f52b578
- rebuild with new openssl
f52b578
4941c92
* Mon Jul 28 2008 Paul Howarth <paul@city-fan.org> - 1.35-1
4941c92
- update to 1.35
4941c92
- drop flag and patch for enabling/disabling external tests - patch now upstream
4941c92
- external hosts patch no longer needed as we don't do external tests
4941c92
- filter out unversioned provide for perl(Net::SSLeay)
4941c92
- use the distro openssl flags rather than guessing them
4941c92
92260f5
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.32-5
6a59982
- rebuild for perl 5.10 (again)
92260f5
20cf7e5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.32-4
6a59982
- autorebuild for GCC 4.3
20cf7e5
feb2b1c
* Thu Jan 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.32-3
feb2b1c
- rebuild for new perl
feb2b1c
f6165e9
* Wed Dec  5 2007 Paul Howarth <paul@city-fan.org> - 1.32-2
f6165e9
- rebuild with new openssl
f6165e9
ef0a049
* Wed Nov 28 2007 Paul Howarth <paul@city-fan.org> - 1.32-1
ef0a049
- update to 1.32, incorporate new upstream URLs
ef0a049
- cosmetic spec changes suiting new maintainer's preferences
ef0a049
- fix argument order for find with -depth
ef0a049
- remove patch for CVE-2005-0106, fixed upstream in 1.30 (#191351)
ef0a049
  (http://rt.cpan.org/Public/Bug/Display.html?id=19218)
ef0a049
- remove test patch, no longer needed
ef0a049
- re-encode Credits as UTF-8
ef0a049
- include TODO as %%doc
ef0a049
- add buildreqs perl(Array::Compare), perl(MIME::Base64), perl(Sub::Uplevel),
ef0a049
  perl(Test::Exception), perl(Test::NoWarnings), perl(Test::Pod),
ef0a049
  perl(Test::Warn), perl(Tree::DAG_Node)
ef0a049
- add patch needed to disable testsuite non-interactively
ef0a049
- run test suite but disable external tests by default; external tests can be
ef0a049
  enabled by using rpmbuild --with externaltests
ef0a049
- add patch to change hosts connected to in external tests
ef0a049
paragn 8ab436b
* Fri Nov 16 2007 Parag Nemade <panemade@gmail.com> - 1.30-7
ef0a049
- Merge Review (#226272) Spec cleanup
paragn 8ab436b
1d8b1e5
* Tue Nov  6 2007 Stepan Kasal <skasal@redhat.com> - 1.30-6
ef0a049
- fix a typo in description (#231756, #231757)
1d8b1e5
e32a7c6
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.30-5.1
e32a7c6
- correct license tag
e32a7c6
- add BR: perl(ExtUtils::MakeMaker)
e32a7c6
0a67d9d
* Tue Aug 21 2007 Warren Togami <wtogami@redhat.com> - 1.30-5
0a67d9d
- rebuild
0a67d9d
fa1d7f7
* Fri Jul 14 2006 Warren Togami <wtogami@redhat.com> - 1.30-4
fa1d7f7
- import into FC6
fa1d7f7
fa1d7f7
* Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-3
fa1d7f7
- Rebuild for FC5 (perl 5.8.8).
fa1d7f7
fa1d7f7
* Fri Jan 27 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-2
fa1d7f7
- CVE-2005-0106: patch from Mandriva
fa1d7f7
  http://wwwnew.mandriva.com/security/advisories?name=MDKSA-2006:023
fa1d7f7
fa1d7f7
* Sun Jan 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.30-1
fa1d7f7
- 1.30.
fa1d7f7
- Optionally run the test suite during build with "--with tests".
fa1d7f7
fa1d7f7
* Wed Nov  9 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.26-3
fa1d7f7
- Rebuild for new OpenSSL.
fa1d7f7
- Cosmetic cleanups.
fa1d7f7
fa1d7f7
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.26-2
fa1d7f7
- rebuilt
fa1d7f7
fa1d7f7
* Mon Dec 20 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-1
fa1d7f7
- Drop fedora.us release prefix and suffix.
fa1d7f7
fa1d7f7
* Mon Oct 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-0.fdr.2
fa1d7f7
- Convert manual page to UTF-8.
fa1d7f7
fa1d7f7
* Tue Oct 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.26-0.fdr.1
fa1d7f7
- Update to unofficial 1.26 from Peter Behroozi, adds get1_session(),
fa1d7f7
  enables session caching with IO::Socket::SSL (bug 1859, bug 1860).
fa1d7f7
- Bring outdated test14 up to date (bug 1859, test suite still not enabled).
fa1d7f7
fa1d7f7
* Sun Jul 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.4
fa1d7f7
- Rename to perl-Net-SSLeay, provide perl-Net_SSLeay for compatibility
fa1d7f7
  with the rest of the world.
fa1d7f7
fa1d7f7
* Wed Jul  7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.3
fa1d7f7
- Bring up to date with current fedora.us Perl spec template.
fa1d7f7
- Include examples in docs.
fa1d7f7
fa1d7f7
* Sun Feb  8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.2
fa1d7f7
- Reduce directory ownership bloat.
fa1d7f7
fa1d7f7
* Fri Oct 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.25-0.fdr.1
fa1d7f7
- First build.