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