From 976807eeb410cd88c44128a1eaf97cd89e833373 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Tue, 26 Mar 2013 14:56:04 +0000 Subject: [PATCH] Retain EL-5 compatibility --- libssh2.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libssh2.spec b/libssh2.spec index 04b0f73..a24c2a0 100644 --- a/libssh2.spec +++ b/libssh2.spec @@ -7,6 +7,9 @@ %global noarch_docs_package 0 %endif +# Define %%{__isa_bits} for old releases +%{!?__isa_bits: %global __isa_bits %((echo '#include '; echo __WORDSIZE) | cpp - | grep -Ex '32|64')} + Name: libssh2 Version: 1.4.3 Release: 3%{?dist} @@ -62,8 +65,8 @@ developing applications that use libssh2. %prep %setup -q -# replace hard wired port number in the test suite to avoid collisions -# between 32bit and 64bit builds running on a single build-host +# Replace hard wired port number in the test suite to avoid collisions +# between 32-bit and 64-bit builds running on a single build-host sed -i s/4711/47%{?__isa_bits}/ tests/ssh2.{c,sh} # Make sure things are UTF-8...