Skip to content

Commit 5bab6c6

Browse files
committed
WL#17048: Remove Python 3.9 support (fix build issues)
Change-Id: I1587c8cdc2ca2d3b10f686075002ddc6e123e02a
1 parent 9b8444f commit 5bab6c6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mysql-connector-python/cpydist/data/rpm/mysql-connector-python.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-
7575

7676
%{!?with_mysql_capi:BuildRequires: mysql-devel}
7777

78-
%if 0%{?rhel} == 8
78+
%if 0%{?rhel} < 10
7979
BuildRequires: python%{python3_pkgversion}-devel
8080
BuildRequires: python%{python3_pkgversion}-setuptools
81-
BuildRequires: python%{python3_pkgversion}-rpm-macros
8281
%endif
8382

8483
%description
@@ -111,7 +110,9 @@ Obsoletes: mysql-connector-python3-cext < %{version}-%{release}
111110
Provides: mysql-connector-python3-cext = %{version}-%{release}
112111
%endif
113112

113+
%if 0%{?rhel} < 10
114114
Requires: python3.12
115+
%endif
115116

116117
%description -n mysql-connector-python3%{?product_suffix}
117118
MySQL Connector/Python enables Python programs to access MySQL

mysqlx-connector-python/cpydist/data/rpm/mysql-connector-python.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ License: Copyright (c) 2015, %{current_year}, Oracle and/or its affiliates
6969
URL: https://dev.mysql.com/downloads/connector/python/
7070
Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python%{?product_suffix}-%{version}-src.tar.gz
7171

72-
%if 0%{?rhel} == 8
72+
%if 0%{?rhel} < 10
7373
BuildRequires: python%{python3_pkgversion}-devel
7474
BuildRequires: python%{python3_pkgversion}-setuptools
75-
BuildRequires: python%{python3_pkgversion}-rpm-macros
7675
%endif
7776

7877
%description
@@ -105,7 +104,9 @@ Obsoletes: mysqlx-connector-python3-cext < %{version}-%{release}
105104
Provides: mysqlx-connector-python3-cext = %{version}-%{release}
106105
%endif
107106

107+
%if 0%{?rhel} < 10
108108
Requires: python3.12
109+
%endif
109110

110111
%description -n mysqlx-connector-python3%{?product_suffix}
111112
MySQL Connector/Python enables Python programs to access MySQL

0 commit comments

Comments
 (0)