From a57c80de1815673aff0ca19ab6e65ef4c680bc88 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Jul 11 2007 21:52:15 +0000 Subject: - Try to fix build on Alpha Resolves: #246828 --- diff --git a/m2crypto.spec b/m2crypto.spec index 9909d44..b9b1d2a 100644 --- a/m2crypto.spec +++ b/m2crypto.spec @@ -1,9 +1,12 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +# Keep this value in sync with the definition in openssl.spec. +%define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 + Summary: Support for using OpenSSL in python scripts Name: m2crypto Version: 0.17 -Release: 2 +Release: 3 Source0: http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/m2crypto-%{version}.tar.gz Patch0: m2crypto-0.17-timeouts.patch Patch1: m2crypto-0.17-Py_ssize_t.patch @@ -33,7 +36,9 @@ basearch=%{_arch} %ifarch %{ix86} basearch=i386 %endif +%ifarch %{multilib_arches} sed -i -e "s/opensslconf/opensslconf-${basearch}/" SWIG/_ec.i +%endif %build CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS @@ -73,6 +78,10 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/M2Crypto %changelog +* Wed Jul 11 2007 Miloslav Trmač - 0.17-3 +- Try to fix build on Alpha + Resolves: #246828 + * Fri Apr 27 2007 Miloslav Trmac - 0.17-2 - Make m2xmlrpclib work with Python 2.5 Resolves: #237902