--- Python-3.3.1/configure.ac.orig 2013-04-18 16:31:07.244030129 +0200
+++ Python-3.3.1/configure.ac 2013-04-18 17:30:31.800622500 +0200
-@@ -769,6 +768,42 @@
+@@ -769,6 +768,45 @@
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
AC_SUBST(MULTIARCH)
+powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+ LIB="lib64"
+ ;;
++x86_64:no)
++ LIB="libx32"
++ ;;
+*:*)
+ LIB="lib"
+ ;;
$(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
--- Python-3.2.1.orig/Modules/getpath.c 2011-07-09 07:58:54.000000000 +0100
+++ Python-3.2.1/Modules/getpath.c 2011-07-12 22:21:48.000000000 +0100
-@@ -121,9 +121,17 @@
+@@ -121,9 +121,21 @@
#define EXEC_PREFIX PREFIX
#endif
+#ifndef LIB_PYTHON
+#if defined(__x86_64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__powerpc64__) || defined(__s390x__)
++#if defined(__ILP32__)
++#define LIB_PYTHON "libx32/python"
++#else
+#define LIB_PYTHON "lib64/python"
++#endif
+#else
+#define LIB_PYTHON "lib/python"
+#endif
%{?with_info:BuildRequires: tetex-makeindex}
%{?with_tkinter:BuildRequires: tix-devel >= 1:8.1.4-4}
%{?with_tkinter:BuildRequires: tk-devel >= 8.4.3}
+BuildRequires: xz-devel
BuildRequires: zlib-devel
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__autoconf}
%configure \
+ CC="%{__cc}" \
OPT="%{rpmcflags} -fno-caller-saves" \
CPPFLAGS="%{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \