]>
Commit | Line | Data |
---|---|---|
898d1980 | 1 | # |
2 | # Conditional build: | |
f89153ff | 3 | %bcond_with tests # perform "make test" |
898d1980 | 4 | # |
52074e6b | 5 | %include /usr/lib/rpm/macros.perl |
893144ba | 6 | Summary: Net::SSLeay - Perl extension for using OpenSSL or SSLeay |
f4eb8062 | 7 | Summary(pl.UTF-8): Net::SSLeay - rozszerzenie Perla do używania OpenSSL lub SSLeay |
52074e6b | 8 | Name: perl-Net-SSLeay |
be73148f | 9 | Version: 1.30 |
57ba84fd | 10 | Release: 2 |
9506710a | 11 | # same as openssl |
12 | License: Apache-style License | |
52074e6b | 13 | Group: Development/Languages/Perl |
e1821606 | 14 | Source0: http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-%{version}.tar.gz |
be73148f | 15 | # Source0-md5: b0cd6c1681bbc0695d81be5cd852d1d0 |
ec7586da | 16 | Patch0: %{name}-paths.patch |
049ff34f | 17 | URL: http://search.cpan.org/dist/Net_SSLeay.pm/ |
259c50d9 | 18 | BuildRequires: openssl-devel >= 0.9.7d |
19 | BuildRequires: openssl-tools >= 0.9.7d | |
d83281a2 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
4a04154d | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
af86cfc8 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52074e6b | 23 | |
24 | %description | |
67033d73 JB |
25 | This module offers some high level convinience functions for accessing |
26 | web pages on SSL servers, a sslcat() function for writing your own | |
27 | clients, and finally access to the SSL api of SSLeay/OpenSSL package | |
28 | so you can write servers or clients for more complicated applications. | |
29 | ||
e148820e JR |
30 | %description -l pl.UTF-8 |
31 | Ten moduł oferuje kilka wygodnych funkcji wysokiego poziomu służących | |
32 | do dostępu do stron WWW na serwerach SSL, funkcję sslcat() do pisania | |
33 | własnych klientów, oraz dostęp do API SSL pakietu SSLeay/OpenSSL, co | |
34 | pozwala na pisanie serwerów lub klientów dla bardziej skomplikowanych | |
67033d73 | 35 | aplikacji. |
52074e6b | 36 | |
37 | %prep | |
38 | %setup -q -n Net_SSLeay.pm-%{version} | |
9bf6eecd | 39 | %patch0 -p1 |
52074e6b | 40 | |
41 | %build | |
4a04154d | 42 | %{__perl} Makefile.PL %{_prefix} \ |
92a2c89f | 43 | INSTALLDIRS=vendor |
a7798ded | 44 | %{__make} \ |
45 | OPTIMIZE="%{rpmcflags}" | |
52074e6b | 46 | |
f89153ff | 47 | %{?with_tests:%{__make} test} |
898d1980 | 48 | |
52074e6b | 49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
ec7586da | 51 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
52074e6b | 52 | |
be73148f | 53 | %{__make} pure_install \ |
a7798ded | 54 | DESTDIR=$RPM_BUILD_ROOT |
be73148f | 55 | |
4860b30a | 56 | install examples/*.{pl,conf} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
52074e6b | 57 | |
52074e6b | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
898d1980 | 63 | %doc Changes Credits README |
4a04154d | 64 | %{perl_vendorarch}/Net/SSLeay.pm |
65 | %{perl_vendorarch}/Net/SSLeay | |
66 | %{perl_vendorarch}/Net/ptrtstrun.pl | |
67 | %dir %{perl_vendorarch}/auto/Net/SSLeay | |
68 | %{perl_vendorarch}/auto/Net/SSLeay/autosplit.ix | |
69 | %{perl_vendorarch}/auto/Net/SSLeay/*.al | |
70 | %{perl_vendorarch}/auto/Net/SSLeay/*.bs | |
71 | %attr(755,root,root) %{perl_vendorarch}/auto/Net/SSLeay/*.so | |
52074e6b | 72 | %{_mandir}/man3/* |
ec7586da | 73 | %{_examplesdir}/%{name}-%{version} |