1
0
perl-Net-SSLeay/perl-Net-SSLeay.spec
Pedro Monreal Gonzalez 90e235cd32 Accepting request 867078 from home:dirkmueller:branches:devel:languages:perl
- update to 1.90:
  - New stable release incorporating all changes from developer releases
      1.89_01 to 1.89_05.
  - Summary of major changes since version 1.88:
      - Formalised libssl version support policy: all stable versions of OpenSSL
	in the 0.9.8 - 1.1.1 branches (with the exception of 0.9.8 - 0.9.8b) and
	all stable releases of LibreSSL in the 2.0 - 3.1 series are supported.
	The LibreSSL 3.2 series is not yet fully supported because its TLSv1.3
	implementation is not currently libssl-compatible.
      - Added support for LibreSSL on Windows when built with Visual C++.
      - Exposed P_X509_CRL_add_extensions, several SSL_CIPHER functions, and
	several stack functions.
      - Fixed crashes in the callback functions CTX_set_next_proto_select_cb and
	CTX_set_alpn_select_cb.
      - The test suite is now compatible with OpenSSL 1.1.1e onwards, as well as
	OpenSSL security level 2 (the default on many Linux distributions).

OBS-URL: https://build.opensuse.org/request/show/867078
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-SSLeay?expand=0&rev=48
2021-01-27 08:41:11 +00:00

80 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Net-SSLeay
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Net-SSLeay
Name: perl-Net-SSLeay
Version: 1.90
Release: 0
Summary: Perl extension for using OpenSSL
License: Artistic-2.0
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHRISN/%{cpan_name}-%{version}.tar.gz
BuildRequires: libopenssl-devel
BuildRequires: openssl
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: zlib-devel
%{perl_requires}
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Warn)
%description
Net::SSLeay module contains perl bindings to openssl (http://www.openssl.org) library.
Net::SSLeay module basically comprise of:
High level functions for accessing web servers (by using HTTP/HTTPS)
Low level API (mostly mapped 1:1 to openssl's C functions)
Convenience functions (related to low level API but with more perl friendly interface)
%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 "%{_prefix}/local/bin/perl" {} \; ); do
sed -i -e "s@%{_prefix}/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" < /dev/null
make %{?_smp_mflags}
%check
%if ! 0%{?qemu_user_space_build}
make %{?_smp_mflags} test
%endif
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%license LICENSE
%doc Changes Credits QuickRef README examples
%changelog