363cb16689
1.63 2014-05-19 Fixed error in version number in META.yml 1.62 2014-05-19 Improvements to OCSP support: It turns out that some CA (like Verisign) sign the OCSP response with the CA we have in the trust store and don't attach this certifcate in the response. But OpenSSL by itself only considers the certificates included in the response and SSL_OCSP_response_verify added the certificates in the chain too. Now, we also add the trusted CA from the store which signed the lowest chain certificate, at least if we could not verify the OCSP response without doing it. Patch from Steffen Ullrich. Thanks. Fixed some compiler warnings. 1.61 2014-05-12 Changes calloc to Newx and free to Safefree, otherwise there might be problems because calloc is done from a different memory pool than free (depends on the build options for perl, but seen on Windows). Patch from Steffen Ullrich. Thanks. 1.60 2014-05-10 Fixed a typo in an error message. Patch from gregor herrmann. Thanks. Fixed a problem with building with openssl that does not support OCSP. Also fixed some newly introduced warnings if compiled with -Wall. Patch from Steffen Ullrich. Thanks. fix build-failure on most Debian architectures: SSLeay.xs: In function 'XS_Net__SSLeay_OCSP_response_results': SSLeay.xs:5602:3: error: format not a string literal and no format arguments. Patch from gregor herrmann. 1.59 2014-05-10 Fixed local/30_error.t, so that tests do not fail if diagnostics are OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-SSLeay?expand=0&rev=25
85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-SSLeay
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_with test
|
|
|
|
Name: perl-Net-SSLeay
|
|
Version: 1.63
|
|
Release: 0
|
|
%define cpan_name Net-SSLeay
|
|
Summary: Perl extension for using OpenSSL
|
|
License: OpenSSL
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Net-SSLeay/
|
|
Source: http://www.cpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz
|
|
BuildRequires: openssl
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
%if %{with test}
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
BuildRequires: perl(Test::Warn)
|
|
%endif
|
|
#
|
|
|
|
%description
|
|
There is a related module called Net::SSLeay::Handle included in this
|
|
distribution that you might want to use instead. It has its own pod
|
|
documentation.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
# replace rest of /usr/local/bin/perl with /usr/bin/perl
|
|
for f in $(find . -type f -exec grep -l "/usr/local/bin/perl" {} \; ); do
|
|
sed -i -e "s@/usr/local/bin/perl@perl@g" $f
|
|
done
|
|
# delete .orig files created by patches
|
|
find . -type f -name "*.orig" -delete
|
|
# fix perm
|
|
pushd examples
|
|
chmod 0644 *.pl
|
|
popd
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -Wall"
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
%if ! 0%{?qemu_user_space_build}
|
|
make test
|
|
%endif
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes Credits QuickRef README examples
|
|
|
|
%changelog
|