Skip to content

Commit 7e76ac0

Browse files
committed
Adding python%{python3_pkgversion}-rpm-macros back into the RPM spec file
The `pythonXY-rpm-macros` RPM package "controls" which python version is supported in the build. Change-Id: I6e15de964ee44ec4a1d6cb917aa77e7839d8b52d
1 parent 396fb25 commit 7e76ac0

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
@@ -76,8 +76,9 @@ Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-
7676
%{!?with_mysql_capi:BuildRequires: mysql-devel}
7777

7878
%if 0%{?rhel} == 8
79-
BuildRequires: python39-devel
80-
BuildRequires: python39-setuptools
79+
BuildRequires: python%{python3_pkgversion}-devel
80+
BuildRequires: python%{python3_pkgversion}-setuptools
81+
BuildRequires: python%{python3_pkgversion}-rpm-macros
8182
%endif
8283

8384
%description

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ URL: https://dev.mysql.com/downloads/connector/python/
7171
Source0: https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python%{?product_suffix}-%{version}-src.tar.gz
7272

7373
%if 0%{?rhel} == 8
74-
BuildRequires: python39-devel
75-
BuildRequires: python39-setuptools
74+
BuildRequires: python%{python3_pkgversion}-devel
75+
BuildRequires: python%{python3_pkgversion}-setuptools
76+
BuildRequires: python%{python3_pkgversion}-rpm-macros
7677
%endif
7778

7879
%description

0 commit comments

Comments
 (0)