--- /dev/null
+--- mysql-connector-python-2.1.3/lib/cpy_distutils.py~
++++ mysql-connector-python-2.1.3/lib/cpy_distutils.py
+@@ -131,7 +131,7 @@ def unix_lib_is64bit(lib_file):
+ stdout = prc.communicate()[0]
+ stdout = stdout.split(':')[1]
+ log.debug("# lib_file {0} stdout: {1}".format(lib_file, stdout))
+- if 'x86_64' in stdout or 'x86-64' in stdout or '32-bit' not in stdout:
++ if 'x86_64' in stdout or 'x86-64' in stdout and '32-bit' not in stdout:
+ return True
+
+ return False
+@@ -213,7 +213,7 @@
+ "be executed: {0}".format(str(exc)))
+
+ if stdout:
+- if '64' in stdout:
++ if '64' in stdout and not '32-bit' in stdout:
+ info['arch'] = "x86_64"
+ else:
+ info['arch'] = "i386"
Group: Libraries/Python
Source0: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}.zip
# Source0-md5: 710479afc4f7895207c8f96f91eb5385
+Patch0: 32bit.patch
URL: http://dev.mysql.com/doc/connector-python/en/
BuildRequires: mysql-devel
BuildRequires: python-devel
%prep
%setup -q -n mysql-connector-python-%{version}
+%patch0 -p1
%build
%{__python} setup.py build