3 %bcond_with tests # perform "make test" - needs network connection
6 %define pnam Socket-SSL
7 Summary: IO::Socket::SSL - nearly transparent SSL encapsulation for IO::Socket::INET
8 Summary(pl.UTF-8): IO::Socket::SSL - prawie przezroczysta obudowa SSL dla IO::Socket::INET
9 Name: perl-IO-Socket-SSL
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4fb67fc8c4817dce8116f2eb7878fd9c
18 URL: https://metacpan.org/release/IO-Socket-SSL
20 BuildRequires: perl-Net-SSLeay >= 1.46
21 BuildRequires: perl-Scalar-List-Utils
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: rpmbuild(macros) >= 1.745
26 # actually Net::SSLeay using openssl >= 0.9.8
27 Requires: openssl >= 0.9.8
28 Suggests: perl-Mozilla-CA
29 Suggests: perl-Net-IDN-Encode
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This module is a true drop-in replacement for IO::Socket::INET that
35 uses SSL to encrypt data before it is transferred to a remote server
36 or client. IO::Socket::SSL supports all the extra features that one
37 needs to write a full-featured SSL client or server application:
38 multiple SSL contexts, cipher selection, certificate verification, and
39 SSL version selection. As an extra bonus, it works perfectly with
42 %description -l pl.UTF-8
43 Ten moduł jest prawdziwym zamiennikiem dla IO::Socket::INET,
44 używającym SSL do kodowania danych przed przesyłaniem do zdalnego
45 serwera lub klienta. IO::Socket::SSL wspiera wszystkie dodatkowe
46 rzeczy potrzebne do napisania w pełni funkcjonalnego klienta lub
47 serwera SSL: wiele kontekstów SSL, wybór szyfru, weryfikacja
48 certyfikatu, wybór wersji SSL. Ponadto wspaniale działa z mod_perlem.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 %{?with_tests:%{__make} test}
62 rm -rf $RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT
67 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/IO/Socket/SSL.pod
69 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 cp -pr example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
77 %doc Changes README docs/*
78 %{perl_vendorlib}/IO/Socket/SSL.pm
79 %{perl_vendorlib}/IO/Socket/SSL
80 %{_mandir}/man3/IO::Socket::SSL*.3pm*
81 %{_examplesdir}/%{name}-%{version}