[1315] | 1 | Name: perl-IO-Socket-SSL
|
---|
| 2 | Version: 2.056
|
---|
| 3 | Release: 1%{?dist}
|
---|
| 4 | Summary: Perl library for transparent SSL
|
---|
| 5 | License: GPL+ or Artistic
|
---|
| 6 | URL: http://search.cpan.org/dist/IO-Socket-SSL/
|
---|
| 7 | Vendor: bww bitwise works GmbH
|
---|
| 8 | Source0: http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-%{version}.tar.gz
|
---|
| 9 | BuildArch: noarch
|
---|
| 10 | # Module Build
|
---|
| 11 | BuildRequires: coreutils
|
---|
| 12 | BuildRequires: findutils
|
---|
| 13 | BuildRequires: make
|
---|
| 14 | BuildRequires: perl-generators
|
---|
| 15 | #BuildRequires: perl-interpreter
|
---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 17 | # Module Runtime
|
---|
| 18 | BuildRequires: openssl >= 0.9.8
|
---|
| 19 | BuildRequires: perl(Carp)
|
---|
| 20 | BuildRequires: perl(Config)
|
---|
| 21 | BuildRequires: perl(constant)
|
---|
| 22 | BuildRequires: perl(Errno)
|
---|
| 23 | BuildRequires: perl(Exporter)
|
---|
| 24 | BuildRequires: perl(HTTP::Tiny)
|
---|
| 25 | BuildRequires: perl(IO::Socket)
|
---|
| 26 | #BuildRequires: perl(IO::Socket::INET6) >= 2.62
|
---|
| 27 | BuildRequires: perl(Net::SSLeay) >= 1.46
|
---|
| 28 | BuildRequires: perl(Scalar::Util)
|
---|
| 29 | BuildRequires: perl(Socket)
|
---|
| 30 | #BuildRequires: perl(Socket6)
|
---|
| 31 | BuildRequires: perl(strict)
|
---|
| 32 | BuildRequires: perl(vars)
|
---|
| 33 | BuildRequires: perl(warnings)
|
---|
| 34 | # Test Suite
|
---|
| 35 | BuildRequires: perl(Data::Dumper)
|
---|
| 36 | BuildRequires: perl(File::Temp)
|
---|
| 37 | BuildRequires: perl(FindBin)
|
---|
| 38 | BuildRequires: perl(IO::Select)
|
---|
| 39 | BuildRequires: perl(IO::Socket::INET)
|
---|
| 40 | BuildRequires: perl(Test::More) >= 0.88
|
---|
| 41 | BuildRequires: perl(utf8)
|
---|
| 42 | #BuildRequires: procps
|
---|
| 43 | # Runtime
|
---|
| 44 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 45 | Requires: openssl >= 0.9.8
|
---|
| 46 | Requires: perl(Config)
|
---|
| 47 | Requires: perl(HTTP::Tiny)
|
---|
| 48 |
|
---|
| 49 | # no IPV6 on OS/2
|
---|
| 50 | %if 0
|
---|
| 51 | # Use IO::Socket::IP for IPv6 support where available, else IO::Socket::INET6
|
---|
| 52 | %if 0%{?fedora} > 15 || 0%{?rhel} > 6
|
---|
| 53 | BuildRequires: perl(IO::Socket::IP) >= 0.20, perl(Socket) >= 1.95
|
---|
| 54 | Requires: perl(IO::Socket::IP) >= 0.20, perl(Socket) >= 1.95
|
---|
| 55 | %else
|
---|
| 56 | Requires: perl(IO::Socket::INET6) >= 2.62, perl(Socket6)
|
---|
| 57 | %endif
|
---|
| 58 | %endif
|
---|
| 59 |
|
---|
| 60 | # IDN back-ends: URI::_idna (from URI 1.50) is preferred
|
---|
| 61 | # but Net::IDN::Encode (next pref) and Net::LibIDN are also tested
|
---|
| 62 | %if 0
|
---|
| 63 | BuildRequires: perl(Net::IDN::Encode)
|
---|
| 64 | BuildRequires: perl(Net::LibIDN)
|
---|
| 65 | %endif
|
---|
| 66 | %if 0%{?fedora:1} || 0%{?rhel} > 6 || 0%{?os2:1}
|
---|
| 67 | BuildRequires: perl(URI::_idna)
|
---|
| 68 | Requires: perl(URI::_idna)
|
---|
| 69 | %else
|
---|
| 70 | Requires: perl(Net::IDN::Encode)
|
---|
| 71 | %endif
|
---|
| 72 |
|
---|
| 73 | %description
|
---|
| 74 | This module is a true drop-in replacement for IO::Socket::INET that
|
---|
| 75 | uses SSL to encrypt data before it is transferred to a remote server
|
---|
| 76 | or client. IO::Socket::SSL supports all the extra features that one
|
---|
| 77 | needs to write a full-featured SSL client or server application:
|
---|
| 78 | multiple SSL contexts, cipher selection, certificate verification, and
|
---|
| 79 | SSL version selection. As an extra bonus, it works perfectly with
|
---|
| 80 | mod_perl.
|
---|
| 81 |
|
---|
| 82 | %prep
|
---|
| 83 | %setup -q -n IO-Socket-SSL-%{version}
|
---|
| 84 |
|
---|
| 85 | %build
|
---|
| 86 | NO_NETWORK_TESTING=1 perl Makefile.PL INSTALLDIRS=vendor
|
---|
| 87 | make %{?_smp_mflags}
|
---|
| 88 | make manifypods
|
---|
| 89 |
|
---|
| 90 | %install
|
---|
| 91 | make pure_install DESTDIR=%{buildroot}
|
---|
| 92 | find %{buildroot} -type f -name .packlist -delete
|
---|
| 93 | %{_fixperms} -c %{buildroot}
|
---|
| 94 |
|
---|
| 95 | %check
|
---|
| 96 | #make test
|
---|
| 97 |
|
---|
| 98 | %files
|
---|
| 99 | %doc BUGS Changes README docs/ certs/ example/
|
---|
| 100 | %dir %{perl_vendorlib}/IO/
|
---|
| 101 | %dir %{perl_vendorlib}/IO/Socket/
|
---|
| 102 | %doc %{perl_vendorlib}/IO/Socket/SSL.pod
|
---|
| 103 | %{perl_vendorlib}/IO/Socket/SSL.pm
|
---|
| 104 | %{perl_vendorlib}/IO/Socket/SSL/
|
---|
| 105 | %{_mandir}/man3/IO.Socket.SSL.3*
|
---|
| 106 | %{_mandir}/man3/IO.Socket.SSL.Intercept.3*
|
---|
| 107 | %{_mandir}/man3/IO.Socket.SSL.PublicSuffix.3*
|
---|
| 108 | %{_mandir}/man3/IO.Socket.SSL.Utils.3*
|
---|
| 109 |
|
---|
| 110 | %changelog
|
---|
| 111 | * Fri Feb 23 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.056-1
|
---|
| 112 | - initial version
|
---|