From a80a3e8ccc96a9bb2755386557409670faaf4cca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 17 Jan 2020 09:14:23 +0100 Subject: [PATCH] - relax python-protobuf deps --- proto.patch | 8 ++++++++ python-mysql-connector.spec | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 proto.patch diff --git a/proto.patch b/proto.patch new file mode 100644 index 0000000..9696c54 --- /dev/null +++ b/proto.patch @@ -0,0 +1,8 @@ +--- mysql-connector-python-8.0.19/setupinfo.py~ 2019-12-17 13:31:58.000000000 +0100 ++++ mysql-connector-python-8.0.19/setupinfo.py 2020-01-17 09:13:36.186606351 +0100 +@@ -139,4 +139,4 @@ + 'Topic :: Software Development :: Libraries :: Application Frameworks', + 'Topic :: Software Development :: Libraries :: Python Modules' + ] +-install_requires = ["protobuf==3.6.1", "dnspython==1.16.0"] ++install_requires = ["protobuf>=3.6.1", "dnspython==1.16.0"] diff --git a/python-mysql-connector.spec b/python-mysql-connector.spec index 4200bf0..4b1f93a 100644 --- a/python-mysql-connector.spec +++ b/python-mysql-connector.spec @@ -13,7 +13,7 @@ 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.19 -Release: 1 +Release: 2 License: GPL v2 Group: Libraries/Python Source0: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}.zip @@ -21,6 +21,7 @@ Source0: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python- Patch0: 32bit.patch Patch1: tests.patch Patch2: build.patch +Patch3: proto.patch URL: http://dev.mysql.com/doc/connector-python/en/ BuildRequires: mysql-devel BuildRequires: protobuf-devel @@ -77,6 +78,7 @@ biblioteki MySQL-a, ani żadna kompilacja. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build export MYSQLXPB_PROTOC=%{_bindir}/protoc -- 2.44.0