From: Arkadiusz Miśkiewicz Date: Thu, 16 Jan 2020 09:01:28 +0000 (+0100) Subject: - up to 8.0.19 X-Git-Tag: auto/th/python-mysql-connector-8.0.19-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fpython-mysql-connector.git;a=commitdiff_plain;h=b369dad5673ed6746587ee6d9876ad1f5e53b583 - up to 8.0.19 --- diff --git a/build.patch b/build.patch new file mode 100644 index 0000000..e6d3552 --- /dev/null +++ b/build.patch @@ -0,0 +1,16 @@ +--- mysql-connector-python-8.0.19/src/mysql_capi.c.org 2020-01-16 09:45:08.669095486 +0100 ++++ mysql-connector-python-8.0.19/src/mysql_capi.c 2020-01-16 09:47:23.166612870 +0100 +@@ -1224,11 +1224,13 @@ MySQL_connect(MySQL *self, PyObject *arg + mysql_options(&self->session, + MYSQL_OPT_SSL_CIPHER, ssl_cipher_suites); + } ++#if MYSQL_VERSION_ID >= 80016 + if (tls_cipher_suites != NULL) + { + mysql_options(&self->session, + MYSQL_OPT_TLS_CIPHERSUITES, tls_cipher_suites); + } ++#endif + } else { + // Make sure to not enforce SSL + #if MYSQL_VERSION_ID > 50703 && MYSQL_VERSION_ID < 50711 diff --git a/python-mysql-connector.spec b/python-mysql-connector.spec index 45fecc8..4200bf0 100644 --- a/python-mysql-connector.spec +++ b/python-mysql-connector.spec @@ -12,14 +12,15 @@ Summary(pl.UTF-8): Protokół kliencki MySQL zaimplementowany w Pythonie 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.18 -Release: 2 +Version: 8.0.19 +Release: 1 License: GPL v2 Group: Libraries/Python Source0: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}.zip -# Source0-md5: e9c473418b52bcae9687dddb0b69369f +# Source0-md5: 451d6604efa9dcab56d2658e7167898e Patch0: 32bit.patch Patch1: tests.patch +Patch2: build.patch URL: http://dev.mysql.com/doc/connector-python/en/ BuildRequires: mysql-devel BuildRequires: protobuf-devel @@ -75,6 +76,7 @@ biblioteki MySQL-a, ani żadna kompilacja. %setup -q -n mysql-connector-python-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build export MYSQLXPB_PROTOC=%{_bindir}/protoc