Skip to content

Commit 72e8bc4

Browse files
committed
Most of the linux distros except fedora got older version of python3-protobuf.
1 parent 1cc82c7 commit 72e8bc4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,13 @@ Requires: %{scl}-runtime
170170
Requires: python38
171171
%endif
172172

173-
# There is no new enough python3-protobuf on some older Linux distros
174-
%if ! ( 0%{?rhel} == 7 || 0%{?suse_version} == 1315 )
175-
Requires: python3-protobuf >= %{requires_py_protobuf_version}
176-
%endif
177-
178173
# Some operations requires DNSPYTHON but this is not a strict
179174
# requirement for the RPM install as currently few RPM platforms has
180175
# the required version as RPMs. Users need to install using PIP.
176+
# Most of the linux distros except fedora got older version of python3-protobuf.
181177
%if 0%{?fedora}
182178
Requires: python3-dns >= %{wants_py_dnspython_version}
179+
Requires: python3-protobuf >= %{requires_py_protobuf_version}
183180
%endif
184181

185182
%description -n mysql-connector-python3%{?product_suffix}

0 commit comments

Comments
 (0)