]> git.pld-linux.org Git - packages/perl-IO-Socket-SSL.git/blame - perl-IO-Socket-SSL.spec
up to 2.076
[packages/perl-IO-Socket-SSL.git] / perl-IO-Socket-SSL.spec
CommitLineData
1b56fd53 1#
2# Conditional build:
b63fc453 3%bcond_with tests # perform "make test" - needs network connection
c18e0f34 4#
6000d045 5%define pdir IO
6%define pnam Socket-SSL
ef40482c 7Summary: IO::Socket::SSL - nearly transparent SSL encapsulation for IO::Socket::INET
ab161b65 8Summary(pl.UTF-8): IO::Socket::SSL - prawie przezroczysta obudowa SSL dla IO::Socket::INET
51fa02bf 9Name: perl-IO-Socket-SSL
9585aaf8 10Version: 2.076
145fa727 11Release: 1
85d8312c 12Epoch: 1
eb6f1a1d 13# same as perl
14License: GPL v1+ or Artistic
51fa02bf 15Group: Development/Languages/Perl
a03764b1 16Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz
9585aaf8 17# Source0-md5: 257995236a3ee5deaa9fe046b7d568f9
3eafb91a 18Patch0: IO-Socket-SSL-2.068-use-system-default-SSL-version.patch
638003d6 19URL: https://metacpan.org/release/IO-Socket-SSL
902f2f05 20%if %{with tests}
92233708 21BuildRequires: perl-Net-SSLeay >= 1.46
6ab9db17 22BuildRequires: perl-Scalar-List-Utils
902f2f05 23%endif
c7ef29f3 24BuildRequires: perl-devel >= 1:5.8.0
457bc30f 25BuildRequires: rpm-perlprov >= 4.1-13
b0526b6c 26BuildRequires: rpmbuild(macros) >= 1.745
552bfad9
JB
27# actually Net::SSLeay using openssl >= 0.9.8
28Requires: openssl >= 0.9.8
128e916d 29Suggests: perl-Mozilla-CA
8f48c370 30Suggests: perl-Net-IDN-Encode
52ab1a6f 31BuildArch: noarch
1536a10f 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51fa02bf 33
34%description
11427a56
JB
35This module is a true drop-in replacement for IO::Socket::INET that
36uses SSL to encrypt data before it is transferred to a remote server
37or client. IO::Socket::SSL supports all the extra features that one
38needs to write a full-featured SSL client or server application:
39multiple SSL contexts, cipher selection, certificate verification, and
40SSL version selection. As an extra bonus, it works perfectly with
41mod_perl.
42
2ca91bcc
JR
43%description -l pl.UTF-8
44Ten moduł jest prawdziwym zamiennikiem dla IO::Socket::INET,
45używającym SSL do kodowania danych przed przesyłaniem do zdalnego
11427a56 46serwera lub klienta. IO::Socket::SSL wspiera wszystkie dodatkowe
2ca91bcc
JR
47rzeczy potrzebne do napisania w pełni funkcjonalnego klienta lub
48serwera SSL: wiele kontekstów SSL, wybór szyfru, weryfikacja
49certyfikatu, wybór wersji SSL. Ponadto wspaniale działa z mod_perlem.
51fa02bf 50
51%prep
ef6840f9 52%setup -q -n %{pdir}-%{pnam}-%{version}
d393768d 53%patch0 -p0
51fa02bf 54
55%build
034770f2 56echo "n" | \
457bc30f 57%{__perl} Makefile.PL \
6973d60a 58 INSTALLDIRS=vendor
a76e1938 59%{__make}
51fa02bf 60
b63fc453 61%{?with_tests:%{__make} test}
1b56fd53 62
51fa02bf 63%install
64rm -rf $RPM_BUILD_ROOT
51fa02bf 65
bbe78fbf 66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
51fa02bf 68
aebfe8ba
JB
69%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/IO/Socket/SSL.pod
70
85d8312c 71install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
638003d6 72cp -pr example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51fa02bf 73
51fa02bf 74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
05b702b4 79%doc Changes README docs/*
457bc30f 80%{perl_vendorlib}/IO/Socket/SSL.pm
05b702b4
JB
81%{perl_vendorlib}/IO/Socket/SSL
82%{_mandir}/man3/IO::Socket::SSL*.3pm*
e718c871 83%{_examplesdir}/%{name}-%{version}
This page took 0.160626 seconds and 4 git commands to generate.