From 0878280bf1914484af10952a886e1cb40d08d91a Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Jan 12 2015 22:15:34 +0000 Subject: Require mysql and mysql-compat-client only when providing them, since otherwise we cannot be sure there is such a package in the repo --- diff --git a/community-mysql.spec b/community-mysql.spec index 845ccaf..456e1a8 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -236,7 +236,12 @@ Summary: The MySQL server and related files Group: Applications/Databases # note: no version here = %%{sameevr} +%if %{with mysql_names} +Requires: mysql-compat-client%{?_isa} Requires: mysql%{?_isa} +%else +Requires: %{name}%{?_isa} +%endif Requires: %{name}-common%{?_isa} = %{sameevr} Requires: %{_sysconfdir}/my.cnf Requires: %{_sysconfdir}/my.cnf.d