# Conditional build:
%bcond_without tests # Do not perform "make test"
#
-%include /usr/lib/rpm/macros.perl
%define pdir Crypt
%define pnam SSLeay
Summary: Crypt::SSLeay - OpenSSL glue that provides LWP HTTPS support
Summary(zh_CN.UTF-8): Crypt::SSLeay - 提供 LWP HTTPS 支持的 OpenSSL 胶水
Summary(zh_TW.UTF-8): Crypt::SSLeay - 提供 LWP HTTPS 支援的 OpenSSL glue。
Name: perl-Crypt-SSLeay
-Version: 0.64
-Release: 3
+Version: 0.72
+Release: 15
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 4812f14d6e8c71714a26c0ad733666dc
+# Source0-md5: 77d955c9056dbb12413d95d8852a9cdf
+Patch0: no-dot-in-inc.patch
+Patch1: openssl.patch
URL: http://search.cpan.org/dist/Crypt-SSLeay/
BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: perl-ExtUtils-CBuilder >= 0.280205
+BuildRequires: perl-Path-Class >= 0.35
%if %{with tests}
BuildRequires: perl-Test-Simple >= 0.88
-BuildRequires: perl-Try-Tiny >= 0.09
+BuildRequires: perl-Try-Tiny >= 0.19
%endif
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+Conflicts: perl-LWP-Protocol-https < 6.02
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+%patch1 -p1
%build
yes "" | %{__perl} Makefile.PL \
%{perl_vendorarch}/Net/SSL.pm
%dir %{perl_vendorarch}/auto/Crypt/SSLeay
%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/SSLeay/SSLeay.so
-%{_mandir}/man3/Crypt::SSLeay.3pm*
+%{_mandir}/man3/Crypt::SSLeay*.3pm*
%{_mandir}/man3/Net::SSL.3pm*