diff --git a/openssl-allow-arch.diff b/openssl-allow-arch.diff new file mode 100644 index 0000000..20533c9 --- /dev/null +++ b/openssl-allow-arch.diff @@ -0,0 +1,17 @@ +--- + Configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: openssl-0.9.8k/Configure +=================================================================== +--- openssl-0.9.8k.orig/Configure ++++ openssl-0.9.8k/Configure +@@ -857,7 +857,7 @@ PROCESS_ARGS: + } + else + { +- die "target already defined - $target (offending arg: $_)\n" if ($target ne ""); ++ warn "target already defined - $target (offending arg: $_)\n" if ($target ne ""); + $target=$_; + } + diff --git a/openssl.changes b/openssl.changes index 8523929..3ddf680 100644 --- a/openssl.changes +++ b/openssl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 5 01:24:55 UTC 2010 - jengelh@medozas.de + +- build openssl for sparc64 + ------------------------------------------------------------------- Mon Dec 14 16:11:11 CET 2009 - jengelh@medozas.de diff --git a/openssl.spec b/openssl.spec index f1087fe..48b18ff 100644 --- a/openssl.spec +++ b/openssl.spec @@ -32,7 +32,7 @@ Obsoletes: openssl-64bit %endif # Version: 0.9.8k -Release: 4 +Release: 5 Summary: Secure Sockets and Transport Layer Security Url: http://www.openssl.org/ Source: http://www.%{name}.org/source/%{name}-%{version}.tar.bz2 @@ -53,6 +53,7 @@ Patch8: func-parm-err.patch Patch9: disable-optimization-for-s390x.diff %endif Patch10: bug-526319_openssl-0.9.8k-no-extssl.patch +Patch11: openssl-allow-arch.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -194,6 +195,7 @@ Authors: %patch9 %endif %patch10 -p1 +%patch -P 11 -p1 cp -p %{S:10} . # lib64 installation fixes for i in Makefile.org engines/Makefile; do @@ -264,7 +266,12 @@ $RPM_OPT_FLAGS \ # LD_LIBRARY_PATH=`pwd` make rehash # LD_LIBRARY_PATH=`pwd` make test #%else - ./config $config_flags + ./config \ +%ifarch sparc64 +# OpenSSL relies on uname -m (not good). Thus this hack. + linux64-sparcv9 \ +%endif + $config_flags make depend make LD_LIBRARY_PATH=`pwd` make rehash