]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" - needs network connection | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir IO | |
7 | %define pnam Socket-SSL | |
8 | Summary: IO::Socket::SSL - nearly transparent SSL encapsulation for IO::Socket::INET | |
9 | Summary(pl.UTF-8): IO::Socket::SSL - prawie przezroczysta obudowa SSL dla IO::Socket::INET | |
10 | Name: perl-IO-Socket-SSL | |
11 | Version: 2.024 | |
12 | Release: 1 | |
13 | Epoch: 1 | |
14 | # same as perl | |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
17 | Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz | |
18 | # Source0-md5: 9d1be9159475fe67afa5f2e238808086 | |
19 | URL: http://search.cpan.org/dist/IO-Socket-SSL/ | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Net-SSLeay >= 1.46 | |
22 | BuildRequires: perl-Scalar-List-Utils | |
23 | %endif | |
24 | BuildRequires: perl-devel >= 1:5.8.0 | |
25 | BuildRequires: rpm-perlprov >= 4.1-13 | |
26 | Suggests: perl-Net-IDN-Encode | |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | This module is a true drop-in replacement for IO::Socket::INET that | |
32 | uses SSL to encrypt data before it is transferred to a remote server | |
33 | or client. IO::Socket::SSL supports all the extra features that one | |
34 | needs to write a full-featured SSL client or server application: | |
35 | multiple SSL contexts, cipher selection, certificate verification, and | |
36 | SSL version selection. As an extra bonus, it works perfectly with | |
37 | mod_perl. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Ten moduł jest prawdziwym zamiennikiem dla IO::Socket::INET, | |
41 | używającym SSL do kodowania danych przed przesyłaniem do zdalnego | |
42 | serwera lub klienta. IO::Socket::SSL wspiera wszystkie dodatkowe | |
43 | rzeczy potrzebne do napisania w pełni funkcjonalnego klienta lub | |
44 | serwera SSL: wiele kontekstów SSL, wybór szyfru, weryfikacja | |
45 | certyfikatu, wybór wersji SSL. Ponadto wspaniale działa z mod_perlem. | |
46 | ||
47 | %prep | |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
49 | ||
50 | %build | |
51 | echo "n" | \ | |
52 | %{__perl} Makefile.PL \ | |
53 | INSTALLDIRS=vendor | |
54 | %{__make} | |
55 | ||
56 | %{?with_tests:%{__make} test} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/IO/Socket/SSL.pod | |
65 | ||
66 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
67 | install example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc Changes README docs/* | |
75 | %{perl_vendorlib}/IO/Socket/SSL.pm | |
76 | %{perl_vendorlib}/IO/Socket/SSL | |
77 | %{_mandir}/man3/IO::Socket::SSL*.3pm* | |
78 | %{_examplesdir}/%{name}-%{version} |