Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)
This commit is contained in:
parent
75743f4a16
commit
a16de53dba
12
Net-SSLeay-1.55-OBJ_cmp.patch
Normal file
12
Net-SSLeay-1.55-OBJ_cmp.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: t/local/36_verify.t
|
||||
===================================================================
|
||||
--- t/local/36_verify.t (revision 387)
|
||||
+++ t/local/36_verify.t (working copy)
|
||||
@@ -60,6 +60,6 @@
|
||||
my $asn_object2 = Net::SSLeay::OBJ_txt2obj('1.2.3.4', 0);
|
||||
ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) == 0, 'OBJ_cmp');
|
||||
$asn_object2 = Net::SSLeay::OBJ_txt2obj('1.2.3.5', 0);
|
||||
-ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) == 1, 'OBJ_cmp');
|
||||
+ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) != 0, 'OBJ_cmp');
|
||||
|
||||
ok(1, 'Finishing up');
|
||||
@ -1,11 +1,12 @@
|
||||
Name: perl-Net-SSLeay
|
||||
Version: 1.55
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Perl extension for using OpenSSL
|
||||
Group: Development/Libraries
|
||||
License: OpenSSL
|
||||
URL: http://search.cpan.org/dist/Net-SSLeay/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz
|
||||
Patch2: Net-SSLeay-1.55-OBJ_cmp.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildRequires: openssl, openssl-devel
|
||||
# =========== Module Build ===========================
|
||||
@ -52,6 +53,9 @@ so you can write servers or clients for more complicated applications.
|
||||
%prep
|
||||
%setup -q -n Net-SSLeay-%{version}
|
||||
|
||||
# Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)
|
||||
%patch2
|
||||
|
||||
# Fix permissions in examples to avoid bogus doc-file dependencies
|
||||
chmod -c 644 examples/*
|
||||
|
||||
@ -92,6 +96,9 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man3/Net::SSLeay::Handle.3pm*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 6 2013 Paul Howarth <paul@city-fan.org> - 1.55-6
|
||||
- Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)
|
||||
|
||||
* Sun Dec 1 2013 Paul Howarth <paul@city-fan.org> - 1.55-5
|
||||
- Drop the kwalitee test for now as it's too fussy for the current code
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user