]> git.pld-linux.org Git - packages/perl-Net-SSLeay.git/blame - perl-Net-SSLeay.spec
Release 4 (by relup.sh)
[packages/perl-Net-SSLeay.git] / perl-Net-SSLeay.spec
CommitLineData
898d1980 1#
2# Conditional build:
f89153ff 3%bcond_with tests # perform "make test"
898d1980 4#
893144ba 5Summary: Net::SSLeay - Perl extension for using OpenSSL or SSLeay
f4eb8062 6Summary(pl.UTF-8): Net::SSLeay - rozszerzenie Perla do używania OpenSSL lub SSLeay
52074e6b 7Name: perl-Net-SSLeay
73fae370 8Version: 1.92
7a0f4e55 9Release: 4
bcac4d2f 10License: Artistic v2.0
52074e6b 11Group: Development/Languages/Perl
06aa4a60 12Source0: http://www.cpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz
73fae370 13# Source0-md5: 9e928bc6f430a874a1a2185f84a0ae88
06aa4a60 14Patch0: %{name}-no_zlib.patch
77a922d0 15URL: https://metacpan.org/release/Net-SSLeay
c222a71a
JP
16BuildRequires: openssl-devel >= 0.9.8
17BuildRequires: openssl-tools >= 0.9.8
d83281a2 18BuildRequires: perl-devel >= 1:5.8.0
4a04154d 19BuildRequires: rpm-perlprov >= 4.1-13
77a922d0 20BuildRequires: rpmbuild(macros) >= 1.745
06aa4a60
JB
21%if %{with tests}
22BuildRequires: perl-MIME-Base64
23BuildRequires: perl-Test-Simple >= 0.60_01
24%endif
c222a71a 25Requires: openssl >= 0.9.8
af86cfc8 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52074e6b 27
28%description
67033d73
JB
29This module offers some high level convinience functions for accessing
30web pages on SSL servers, a sslcat() function for writing your own
31clients, and finally access to the SSL api of SSLeay/OpenSSL package
32so you can write servers or clients for more complicated applications.
33
e148820e
JR
34%description -l pl.UTF-8
35Ten moduł oferuje kilka wygodnych funkcji wysokiego poziomu służących
36do dostępu do stron WWW na serwerach SSL, funkcję sslcat() do pisania
37własnych klientów, oraz dostęp do API SSL pakietu SSLeay/OpenSSL, co
38pozwala na pisanie serwerów lub klientów dla bardziej skomplikowanych
67033d73 39aplikacji.
52074e6b 40
41%prep
73610985 42%setup -q -n Net-SSLeay-%{version}
9bf6eecd 43%patch0 -p1
52074e6b 44
45%build
73610985 46echo "n" | %{__perl} Makefile.PL %{_prefix} \
92a2c89f 47 INSTALLDIRS=vendor
a7798ded 48%{__make} \
80d0c332 49 CC="%{__cc}" \
a7798ded 50 OPTIMIZE="%{rpmcflags}"
52074e6b 51
73610985 52%{?with_tests:echo "n" | %{__make} test}
898d1980 53
52074e6b 54%install
55rm -rf $RPM_BUILD_ROOT
ec7586da 56install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52074e6b 57
be73148f 58%{__make} pure_install \
a7798ded 59 DESTDIR=$RPM_BUILD_ROOT
be73148f 60
6963e3f1 61cp -p examples/*.{pl,conf} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52074e6b 62
06aa4a60
JB
63%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Net/SSLeay.pod
64
52074e6b 65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
e9b3d670 70%doc Changes Credits LICENSE QuickRef README
4a04154d 71%{perl_vendorarch}/Net/SSLeay.pm
72%{perl_vendorarch}/Net/SSLeay
4a04154d 73%dir %{perl_vendorarch}/auto/Net/SSLeay
74%{perl_vendorarch}/auto/Net/SSLeay/autosplit.ix
75%{perl_vendorarch}/auto/Net/SSLeay/*.al
06aa4a60
JB
76%attr(755,root,root) %{perl_vendorarch}/auto/Net/SSLeay/SSLeay.so
77%{_mandir}/man3/Net::SSLeay*.3pm*
ec7586da 78%{_examplesdir}/%{name}-%{version}
This page took 0.132201 seconds and 4 git commands to generate.