From 1d84d0bf9dc331d565cf333d12ebdb3f0bab5073 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 12 Jan 2015 23:15:34 +0100 Subject: [PATCH] Require mysql and mysql-compat-client only when providing them, since otherwise we cannot be sure there is such a package in the repo --- community-mysql.spec | 5 +++++ 1 file changed, 5 insertions(+) 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