1cf11562 |
Summary: Perl extension for using OpenSSL
Name: perl-Net-SSLeay |
af96e9e3 |
Version: 1.85 |
1530757e |
Release: 3%{?dist} |
1cf11562 |
License: Perl Artistic License 2.0
Group: Development/Libraries |
78a75439 |
URL: http://search.cpan.org/~mikem/Net-SSLeay-%{version}/ |
af96e9e3 |
Source: https://cpan.metacpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz
%define sha1 Net-SSLeay=5f1c7b6ccac81efd5b78b1e076c694f96ca5c439 |
aac331d9 |
%if 0%{?with_fips:1}
Source100: openssl-fips-2.0.9-lin64.tar.gz
%define sha1 openssl-fips=e834d3678fb190f9483f48f037fb17041abba6a1
%endif |
1cf11562 |
Vendor: VMware, Inc.
Distribution: Photon |
af96e9e3 |
Requires: perl >= 5.28.0 |
1cf11562 |
Requires: openssl |
af96e9e3 |
BuildRequires: perl >= 5.28.0 |
1cf11562 |
BuildRequires: openssl-devel
%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)
* There is also 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 Net-SSLeay-%{version}
%build |
aac331d9 |
%if 0%{?with_fips:1}
tar xf %{SOURCE100} --no-same-owner -C ..
# Do not package it to src.rpm
:> %{SOURCE100}
cp ../openssl-fips-2.0.9/include/openssl/fips.h /usr/include/openssl/
%endif |
1cf11562 |
env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install |
78a75439 |
rm -rf %{buildroot} |
1cf11562 |
make pure_install DESTDIR=%{buildroot} |
78a75439 |
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -empty -delete |
1cf11562 |
%check |
1530757e |
# Install required modules for test - Test::Pod, Test::Exception, Test::Warn and Test::NoWarnings
export PERL_MM_USE_DEFAULT=1
echo "yes" | cpan -a
cpan -i Test::Pod Test::Exception Test::Warn Test::NoWarnings |
1cf11562 |
make test
%files
%{perl_vendorlib}/*
%{_mandir}/man?/*
%changelog |
1530757e |
* Mon Dec 03 2018 Dweep Advani <dadvani@vmware.com> 1.85-3
- Fixing makecheck tests |
aac331d9 |
* Wed Oct 17 2018 Alexey Makhalov <amakhalov@vmware.com> 1.85-2
- Move fips logic to spec file |
af96e9e3 |
* Fri Sep 21 2018 Dweep Advani <dadvani@vmware.com> 1.85-1
- Update to version 1.85 |
cee736b5 |
* Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 1.81-2
- Remove BuildArch |
78a75439 |
* Wed Apr 05 2017 Robert Qi <qij@vmware.com> 1.81-1
- Update version to 1.81 |
cee736b5 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.72-2
- GA - Bump release of all rpms
* Mon Mar 28 2016 Mahmoud Bassiouny <mbassiounu@vmware.com> 1.72-1
- Initial version. |