---- 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):
+--- mysql-connector-python-8.0.16/lib/cpy_distutils.py~ 2019-04-26 06:57:29.000000000 +0200
++++ mysql-connector-python-8.0.16/lib/cpy_distutils.py 2019-04-26 06:58:18.098036824 +0200
+@@ -183,7 +183,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:
++ 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"
Name: python-%{pname}
# check documentation to see which version is GA (we don't want devel releases)
# https://dev.mysql.com/downloads/connector/python/
-Version: 8.0.15
+Version: 8.0.16
Release: 1
License: GPL v2
Group: Libraries/Python
Source0: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}.zip
-# Source0-md5: d8d385202f83d12a371593cbe00a60ba
+# Source0-md5: bff33ea1f7edb97c9e691cfd149d9a14
Patch0: 32bit.patch
Patch1: tests.patch
URL: http://dev.mysql.com/doc/connector-python/en/